Dovecot 1.0.10 - Authenticate against LDAP with multiple sub-trees

Daniel Heitepriem info at lpcom.de
Thu Oct 1 11:25:26 UTC 2015


Hi guys,

I'm using Dovecot 1.0.10 with LDAP authentication. Below is my 
dovecot-ldap.conf

{
hosts = *IP of LDAP server*
auth_bind = yes
auth_bind_userdn = uid=%u,ou=people,dc=*something*,dc=com
ldap_version = 3
base = %u,ou=people,dc=*something*,dc=com
deref = never
scope = subtree
user_filter = (&(objectClass=person)(uid=%u))
}

And the current structure:

Base
   |
   |-- people
         |
         |  *user entries*
         |


Now I want to update to a LDAP server with the following structure:

Base
   |
   |-- people
         |
         |-- staff
              |
              | *user entries*
              |-- other location
                      |
                      | *user entries*
                      |

How can I keep my "auth_bind_userdn" using this new structure? Hopefully 
somebody can help me :)

Regards,
Daniel


More information about the dovecot mailing list