Re: [exim] Exim with LDAP

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Nigel Wade
Datum:  
To: exim-users
Betreff: Re: [exim] Exim with LDAP
Sachin Sharma wrote:
> Hi,
>
> I am running Exim with Mysql and now planning to configure with LDAP. I
> like to confirm, is LDAP would improve performance. As i believe
> LDAP lookups are faster comparatively Mysql.


I've never used MySQL for lookups so I can't comment on the relative speeds.
But, have you actually profiled the performance of your current configuration to
demonstrate that the MySQL lookups are really a bottleneck? It would be a real
waste of effort if those lookups where not causing a performance problem...

The performance of the directory lookups may well depend critically on which
backend database you use to index the directory, and also which directory
attributes you choose to index.

>
> Also i find bit difficult while writing LDAP lookups. Can some one
> provide me some url's where i can understand how to write LDAP lookups.


Only the Exim documentation.

http://www.exim.org/exim-html-4.63/doc/html/spec_html/ch09.html#SECTldap

I don't know of any others.

> This would very helpful if someone can write some basic things to keep
> in mind while writing LDAP lookup. As till now i am strugling much to
> convert my mysql lookup to LDAP.
>
> Thanks !!


There isn't that much to consider regarding lookups. Offhand I can only think of
one, there needs to be an entry in the LDAP directory which Exim can bind to in
order to perform the lookups. This must be taken into consideration when you
build the directory and assign access rights to users. I find it useful to test
specific queries using ldapsearch (if you are using OpenLDAP) so you get the
syntax of the query correct before you try to embed that in a Exim lookup.

What exactly are you having problems with? If you have a particular question,
please ask and I'll do my best to answer.

-- 
Nigel Wade, System Administrator, Space Plasma Physics Group,
             University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw@???
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555