1. Install courier-authlib first.
Installed and running (woohoo!)
2. Configure and set up courier-authlib to read your LDAP records. Using
the authtest tool in the courier-authlib package you should be able to
verify that the library can see your accounts, and validate the account
passwords.
Using the authtest tool I get results. Unfortunately the results are
error messages.
Aug 22 16:56:30 mailtest last message repeated 3 times
Aug 22 16:57:03 mailtest authdaemond.ldap: ldap_simple_bind_s failed:
Protocol error
Aug 22 16:56:30 mailtest last message repeated 3 times
Aug 22 16:57:03 mailtest authdaemond.ldap: ldap_simple_bind_s failed:
Protocol error
Temporary authentication failure from module authdaemon
Authentication FAILED!
I found similar problems to this in the archive but it was related to
ldap v2 vs v3 issue. I've tried hand setting both OpenLDAP and
authdaemon to use v2 as a test, but it didn't change anything. I'm
making progress. Slow progress, but progress nonetheless.
here is my authldaprc file:
LDAP_SERVER mailtest.horvitznewspapers.net
LDAP_BASEDN ou=dc=horvitznewspapers,dc=net
LDAP_BINDDN dc=horvitznewspapers,dc=net
LDAP_BINDPW secret
LDAP_MAIL mail
LDAP_FILTER (objectclass=inetorgperson)
LDAP_HOMEDIR homeDirectory
LDAP_MAILDIR mailbox
LDAP_MAILDIRQUOTA quota
LDAP_CLEARPW userPassword
LDAP_UID uidNumber
LDAP_GID gidNumber