Cyrus Configuration

If you have already installed pam_ldap and nss_ldap, then you simply need to configure cyrus to use ldap to authenticate. Configure your imapd.conf, pam files and ldap.conf

Here is a sample /etc/imapd.conf

configdirectory: /var/imap
partition-default: /var/spool/imap
sasl_pwcheck_method: pam
admins: cyrus
sievedir: /usr/sieve
Note that the user cyrus is defined as the admin user. This user should be the same what you configured in ISPMan as the cyrus admin. The user "cyrus" and its corresponding password will be used to create mailboxes for other users.
The password of this user is defined in the LDAP directory under
uid=cyrus, ou=admins, o=ispman

Insure that you have files /etc/pam.d/imap and /etc/pam.d/pop if you want to enable both. Here is a sample:
#%PAM-1.0
auth       sufficient   /lib/security/pam_ldap.so
account    sufficient   /lib/security/pam_ldap.so
You may also need to make a symlink from your ldap.conf to /etc/ldap.conf

Here is an example of /etc/ldap.conf
host localhost
base o=ispman
pam_login_attribute uid