[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: AW: Using exim director with LDAP



Brian Rosenberger wrote:
Brian Rosenberger wrote:


ldapuser:
 driver = smartuser
 local_parts = ${lookup
ldap{ldap://xxxx.xx:389/ou=SMTP%20Service,ou=Mailaccounts,dc=brutex,dc=n
et?(mail=${local_part}@${domain})}{${local_part}}}
 home_directory = ${lookup
ldap{ldap://xxxx.xx:389/ou=SMTP%20Service,ou=Mailaccounts,dc=brutex,dc=n
et?homeDirectory?(mail=${local_part}@${domain}}}{${value}}fail}
 transport = my_local_delivery

[...]

I suppose the ldap search string is wrong. However, the LDAP log says,
there is something going on.


I think so too. Seems the scope parameter is missing.

Something like this??

ldap://xxxx.xx:389/ou=SMTP%20Service,ou=Mailaccounts,dc=brutex,dc=n
 > et?sub?homeDirectory?(mail=${local_part}@${domain}}}{${value}}fail}
- Sandip



Umm, there is a problem with the URL that is sent. The ldap URL syntax is ldap://server:host/basedn?attr?scope?filter?extension

So the URL above should be
home_directory = ${lookup ldap{ldap://xxxx.xx:389/ou=SMTP%20Service,ou=Mailaccounts,dc=brutex,dc=net?homeDirectory?sub?(mail=${local_part}@${domain})
}{${value}}fail}

You had also missed the right parenthesis for the filter expression which I have added above.

- Sandip

--
Sandip Bhattacharya                        http://www.sandipb.net
sandip at puroga.com
Puroga Technologies Pvt. Ltd.
http://www.puroga.com



Reply to: