[Dovecot] LDAP authentication via PAM

Luis Meléndez luism at uco.es
Sun Apr 9 13:56:25 EEST 2006


Oscar A. Valdez wrote:
> I've configured dovecot to authenticate against a Fedora Directory
> Server. The mail server on which dovecot is installed has the
> nss_ldap and pam_ldap packages installed, and /etc/dovecot.conf has the
> following two lines:
> 
> auth_userdb = ldap /etc/dovecot-ldap.conf
> auth_passdb = pam
> ...
> Is it possible to access the user database through PAM (auth_userdb =
> pam)? Since I'm running the nss_ldap and pam_ldap modules, it'd really
> be an LDAP query for users, and a query in /etc/passwd and /etc/group
> for dovecot (since it's a local user and group on the mail server).

If you are using nss_ldap and have edited /etc/nsswitch.conf
accordingly, you should get it done with:

auth_userdb = passwd

It doesn't mean to use /etc/passwd, but the O.S. nss mechanism.

Regards.

-- 
+----------------------------------------------^-----------------------+
| Luis Meléndez Aganzo                         ^  Email: luism at uco.es  |
| Servicio de Informática                      ^  Tlf: 34-(9)57-211022 |
| Área de Sistemas                             ^  Fax: 34-(9)57-218116 |
| Universidad de Córdoba (SPAIN)               ^  http://www.uco.es    |
+----------------------------------------------^-----------------------+


More information about the dovecot mailing list