[Dovecot] Spaces in DN with AD auth
Hi guys,
I'm back to fiddling with my Dovecot and AD intergation and I've noticed that if a DN contains spaces, dovecot doesn't bind to the AD server.
I'm running: dovecot-2.1.1 exim-4.72
on CentOS 6.3
Exim binds fine with the DNs containing spaces, it's just dovecot that exhibits the symptoms.
Chris Visser Linux/Network Infrastructure
================== Please read our Email Disclaimer : http://www.rtt.co.za/disclaimer.html
Den 2012-08-21 14:47, Chris Visser skrev:
I'm back to fiddling with my Dovecot and AD intergation and I've noticed that if a DN contains spaces, dovecot doesn't bind to the AD server.
that means you like to fix this in dovecot since its not AD that make the error in first place ?
Yes. Is it possible?
If I try bind with a dn like: CN=Chris Visser,OU=Users,DC=mydomain,DC=com then I can't make the bind to AD, even though I can do it using exim and ldapsearch.
Dovecot however binds if I use a dn like: CN=Chris,OU=Users,DC=mydomain,DC=com
Chris Visser Linux/Network Infrastructure
-----Original Message----- From: dovecot-bounces@dovecot.org [mailto:dovecot-bounces@dovecot.org] On Behalf Of Benny Pedersen Sent: Tuesday, August 21, 2012 2:53 PM To: dovecot@dovecot.org Subject: Re: [Dovecot] Spaces in DN with AD auth
Den 2012-08-21 14:47, Chris Visser skrev:
I'm back to fiddling with my Dovecot and AD intergation and I've noticed that if a DN contains spaces, dovecot doesn't bind to the AD server.
that means you like to fix this in dovecot since its not AD that make the error in first place ?
================== Please read our Email Disclaimer : http://www.rtt.co.za/disclaimer.html
On 21.8.2012, at 15.59, Chris Visser wrote:
Yes. Is it possible?
If I try bind with a dn like: CN=Chris Visser,OU=Users,DC=mydomain,DC=com then I can't make the bind to AD, even though I can do it using exim and ldapsearch.
Dovecot however binds if I use a dn like: CN=Chris,OU=Users,DC=mydomain,DC=com
Maybe the problem is simply that space isn't in auth_username_chars? If not, show doveconf -n, dovecot-ldap.conf and log output when auth_debug_passwords=yes (with a test user/pass).
participants (3)
-
Benny Pedersen
-
Chris Visser
-
Timo Sirainen