Qmail-ldap already works great with ad. You just need to set the
appropriate attribute names in qmail-ldap.h.
Please give me a detailed example so I can test it. This is big news.
These are the basic attribute names I set in qmail-ldap.h:
#define LDAP_MAIL "mail" #define LDAP_MAILALTERNATE "otherMailbox" #define LDAP_QMAILUID "qmailUID" #define LDAP_QMAILGID "qmailGID" #define LDAP_MAILSTORE "name" #define LDAP_HOMEDIR "NOhomeDirectory" #define LDAP_QUOTA "mailQuota" #define LDAP_QUOTA_SIZE "qmailQuotaSize" #define LDAP_QUOTA_COUNT "qmailQuotaCount" #define LDAP_MAXMSIZE "qmailSizeMax" #define LDAP_FORWARDS "qmailForwardingAddress" #define LDAP_PROGRAM "qmailDeliveryProgramPath" #define LDAP_MAILHOST "mailHost" #define LDAP_MODE "qmailDeliveryMode" #define LDAP_REPLYTEXT "autoReplyMessage" #define LDAP_DOTMODE "qmailDotMode" #define LDAP_UID "name" #define LDAP_PASSWD "userPassword" #define LDAP_OBJECTCLASS "objectClass" #define LDAP_ISACTIVE "accountStatus" #define LDAP_PURGE "qmailAccountPurge"
The ones beginning with qmail- are my own schema modifications but they were only necessary for quota and group support. Basic stuff works without any changes to the server. 'name' might not be the best attribute for LDAP_UID as computer objects use it too, but with our naming conventions it doesn't matter so I've never bothered changing it.
pgp00000.pgp
Description: PGP signature
