Over a weekend myself and my CoWorker decided to create a mail system using ActiveDirectory as a backend database for authentication of usernames.
This allows us a single central database for users names/passwords.
Software Configuration:
to be continued...
Put this in your directors section of the exim config file.
driver = aliasfile search_type = ldapm query = "user=\"cn=james,ou=Admins,ou=Accounts,dc=clonedm,dc=regent,dc=ac,dc=nz\" pass=\"Secret12\" \
ldap://achor.clonedm.regent.ac.nz:389/dc=clonedm,dc=regent,dc=ac,dc=nz?sAMAccountName?sub?sAMAccountName=$local_part)"
expand transport = local_delivery_cyrus
This will search the LDAP server (in this case, achor.clonedm.regent.ac.nz) for entries that match sAMAccountName=$local_part and return the sAMAccountName, the sub? is important and instructs ldap to do a recursive (sublevel) search.
2 pages link to ActiveDirectoryMail: