Re: [exim] Exim hangs on ldap search

Top Page
Delete this message
Reply to this message
Author: Alain Williams
Date:  
To: lbv
CC: exim-users
Subject: Re: [exim] Exim hangs on ldap search
On Fri, Jul 21, 2006 at 07:15:25AM -0700, lbv wrote:
>
> Ultimately I need to do an ldap auth against an AD ldap server, but I need to
> convert the username (lvasquez) to a cn (Lou Vasquez) before I can specify
> the user and this isn't working right. I do a basic ldap lookup to get the
> cn. Once I get the cn I will put that into the ldapauth, but the ldap is
> failing all by itself.
>
> I've reduced it to a plain ldap search inside an "if" and its simply hanging
> when it gets the cn. The pertinent config and d+all debug are pasted below.
> Exim is already running on port 25 separately and is restarted with each
> config change but that shouldn't be the problem as I can get this to
> authenticate just fine if I put the correct cn right into an ldapauth.
>
> Any help would be appreciated.
> ....


That looks like the problem that I had last week, it is trying to follow referrals
but cannot access the servers that it has been referred to. You need to give the option
    referrals=nofollow
as an ldap parameter (after user=... pass=...).


Since I only sent in the patch for the referrals option last week it is not in
main line exim (yet), so download the exim-snapshot from:

    ftp.exim.org:/pub/exim/Testing


Please let us know if it works and what your OS, etc, are.

Cheers

--
Alain Williams
Parliament Hill Computers Ltd.
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/

#include <std_disclaimer.h>