Re: [exim] ldap lookup only

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Andreas Pettersson
Fecha:  
A: exim-users
Asunto: Re: [exim] ldap lookup only
Ah, seems like i got som hang on this now.

config:

  local_parts=\
    ldap; ldap:://domino.domain1.com/o=org?cn?\
    sub?(&(objectClass=inetOrgPerson)(|(uid=$local_part)
(cn=$local_part)(mail=$local_part@???)))


test result:

# exim -d+deliver -bv testuser@???
...
Start search
ldap_result loop
LDAP entry loop
LDAP attr loop cn:Test User
LDAP attr loop cn:alias1
LDAP attr loop cn:alias2
search ended by ldap_result yielding 101
ldap_parse_result: 0
ldap_parse_result yielded 0: Success
LDAP search: returning: Test User, alias1, alias2
...

When trying with an illegal address i get this:

# exim -d+deliver -bv illegaluser@???
...
Start search
search ended by ldap_result yielding 101
ldap_parse_result: 0
ldap_parse_result yielded 0: Success
LDAP search: no results
lookup failed
...

That should do it, shouldn't it?
I'm still working in a test environment..


Regards,
Andreas



----Ursprungligt meddelande----
Från: andpet@???
Datum: Jul 31, 2006 2:18:40 PM
Till: graeme@???, exim-users@???
Ärende: Re: [exim] ldap lookup only

Thanks, that gives me a bit more details.

--------> verify_user_router router <--------
local_part=testuser domain=domain1.com
checking domains
domain1.com in "domain1.com"? yes (matched "domain1.com")
checking local_parts
testuser in "ldap:://domino.domain1.com/o=org?cn?sub?(&
(uid=testuser))"? no (end of list)
verify_user_router router skipped: local_parts mismatch

testuser is a correct uid, so there seems to be some problem here..
Any ideas?

Regards,
Andreas

(sorry for top-posting, but this webmail I'm using right now sucks)