Re: [Exim] exim and ldap

Etusivu
Poista viesti
Vastaa
Lähettäjä: Mike Richardson
Päiväys:  
Vastaanottaja: mohammad.meskarian
Kopio: exim-users
Aihe: Re: [Exim] exim and ldap
On Wed, Sep 04, 2002 at 10:00:54AM -0700, mohammad.meskarian wrote:
> Dears
> Thanks about your help in before for EXIM SMTP authentication
> As you know exim use /etc/exim/passwd file copy of /etc/shadow
> For authentication data base. Is there any body know about ldap
> Because ldap doesn?t use shadow file.


Lovie,

We use something like:

${lookup ldap {user=\"${lookup ldapdn{ldap:///o=ac,c=uk?sn?sub?(&(uid=$2))}{$value}{no}}\" pass=$3 ldap:///o=ac,c=uk?sn?sub?(&(uid=$2))}{yes}{no}}

in server_condition for LDAP SMTP Auth.

Mike
--
-----Plain text only please - attachments stripped on arrival.------
Copyright 2002       Mike Richardson, Room G98, Manchester Computing
University of Manchester, M13 9PL     doctor@???    Int: 56009
Left through main doors.         Right then left at end of corridor.
First door on left.   URL http://kira.mcc.ac.uk/  Ext: 0161 275 6009
--------------------------------------------------------------------
"If I want your opinion, I'll beat it out of you!" - Chuck Norris
"If anything happens to my daughter I have a 45 and shovel" Clueless