Roger,

Your questions suggest that perhaps you don't have a complete understanding of the workings of qmail-ldap. I recommend reading the documentation available at www.lifewithqmail.org, both in the "Life with Qmail" and "Life with Qmail-LDAP" sections. You will also want to read the QLDAPINSTALL file in the qmail source directory, as well as the openldap documentation at www.openldap.org. You have quite a bit of reading to do before you should attempt configuring LDAP.

1) what should the content of /var/qmail/control/defaultdomain be ? should they
contain client1.com and client2.com one entry per line ?

No. It should probably be yourdomain.com. This is a regular qmail configuration, unrelated to LDAP. If you're having trouble with this, LDAP is going to be quite a stretch.


2) what should the content of /var/qmail/control/ldapbasedn be ? should they
contain dc=client1,dc=com and dc=client2,dc=com one entry per line ?

No. It should probably be dc=yourdomain,dc=com, but must match your LDAP configuration.


3) what should the content of /var/qmail/control/ldaplogin be ? should they
contain cn=qmail,o=Administrators,dc=client1,dc=com and
cn=qmail,o=Administrators,dc=client2,dc=com one entry per line ?

No. It should probably be cn=qmail,o=Administrators,dc=yourdomain,dc=com.


4) what should the content of /usr/lib/courier/etc/authldaprc be ?
can i do it like this:

This is not a qmail-ldap file. Ask the courier list. Probably, you don't want to be using this file at all -- you want to be using auth_imap from the qmail-ldap package. If you need more help with your Courier configuration, you should ask the Courier mailing list.


5) my slapd.conf looks like:

It's hard to build 'access' statements in your slapd.conf until you have your ldap tables set up correctly. Use something close to the default first, and add in access statements to tighten security as you gain understading of what's going on.


Your current slapd.conf and LDAP configurations are pretty far from working.

- Jason Parsons



Reply via email to