Re: [Exim] LDAP authentication in Exim 4.0.5

Pàgina inicial
Delete this message
Reply to this message
Autor: Douglas Gray Stephens
Data:  
A: David L. Harfst
CC: Exim Users
Assumpte: Re: [Exim] LDAP authentication in Exim 4.0.5
David,

At 15:13 (GMT-0500) on 10-July-2002, David L. Harfst wrote:
> Okay, I feel like beating my head against the wall.
>
> I'm trying to do LDAP authentication in Exim 4.0.5
>
> Here's my authenticators:
>
 > # Authentication for PLAIN (Netscape)
 > plain:
 >   driver = plaintext
 >   public_name = PLAIN
 >   server_condition = ${if ldapauth \
 >     { user="uid=${quote_ldap:$2},ou=People,ou=Email,o=CMS,c=US" pass="$3" \
 >       ldap:///} {yes} {no} }
 >   server_set_id= uid=$1,ou=People,ou=Email,o=CMS,c=US

>
 > # Authentication for LOGIN (Outlook)
 > login:
 >   driver = plaintext
 >   public_name = LOGIN
 >   server_prompts = Username:: : Password::
 >   server_condition = ${if ldapauth \
 >     { user="uid=${quote_ldap:$1},ou=People,ou=Email,o=CMS,c=US" \
 >       pass="$2" \
 >       ldap:///}  {yes} {no} }
 >   server_set_id= uid=$1,ou=People,ou=Email,o=CMS,c=US

>
>
> I've tried both of these, using Netscape 6.2.3 and Outlook Express
> respectively.
>
> Running the exim server with the debug flag shows that the
> server condition expands to "no", however, my LDAP server does
> not show any attempt at a connection. What am I doing
> wrong?


have you set an LDAP host in your configuration file (i.e. set
ldap_default_servers)?

In the debugging, you should see something like

LDAP parameters: ......
perform_ldap_search: ldapm URL ="ldap:///uid=xxx,ou=People,ou=Email,o=CMS,c=US?......
Initialized connection with LDAP server SOME_HOST_NAME
LDAP_OPT_X_TLS_TRY ....
Binding with user=..... password=....
Initialized connection with LDAP server SOME_HOST_NAME

and this will tell you which LDAP server log to go and check.

Douglas.

--

================================
Douglas GRAY STEPHENS
Technical Architect (Directories)
Schlumberger Cambridge Research
High Cross,
Madingley Road,
Cambridge.
CB3 0EL
ENGLAND

Phone  +44 1223 325295
Mobile +44 773 0051628
Fax    +44 1223 311830
Email DGrayStephens@???
================================