[Techtalk] netatalk pam and ldap

Wim De Smet kromagg at gmail.com
Tue Aug 21 14:50:54 UTC 2007

On 8/21/07, Maria McKinley <maria at shadlen.org> wrote:
> Hello,
> I am having a hard time getting netatalk to work. When I try to use it,
> I am told unknown username:
> Aug 20 16:53:29 maude afpd[9927]: uams_dhx_pam.c: unknown username
> So it seems to be using the pam module ok to contact an ldap database.
> But, if I use ldapsearch, using the default ldap server, I have no
> problem finding the username. Can pam be trying to use a different ldap
> database than ldapsearch? I don't see how this is possible, but nothing
> else makes sense either...
> Anybody have a deeper understanding of how pam and ldap interact that
> could give me some troubleshooting pointers?

If I remember correctly pam_ldap gets the default ldap server from the
file /etc/pam_ldap.conf in debian (or something similar to that) while
ldapsearch will look at /etc/ldap.conf (or something like that, could
be /etc/ldap/ldap.conf). So if it is using two different servers, this
is where your stumbling block might be?


More information about the Techtalk mailing list