[Date Prev][Date Next] [Chronological] [Thread] [Top]

unknow user with pam_ldap



I want to use LDAP with PAM to log in, but it doesn't work ...
I can see the following in the system log :

May 21 17:01:06 falke slapd[26750]: daemon: conn=31 fd=13 connection from
IP=127.0.0.1:2483 (IP=0.0.0.0:34049) accepted. 
May 21 17:01:06 falke slapd[26755]: conn=31 op=0 BIND dn="" method=128 
May 21 17:01:06 falke slapd[26755]: conn=31 op=0 RESULT tag=97 err=0 text= 
May 21 17:01:06 falke slapd[26753]: conn=31 op=1 SRCH base="dc=mindmatics,dc=de"
scope=2 filter="(uid=test)" 
May 21 17:01:06 falke slapd[26753]: conn=31 op=1 SEARCH RESULT tag=101 err=0
text= 
May 21 17:01:06 falke slapd[26754]: conn=31 op=2 BIND
dn="UID=TEST,OU=PEOPLE,DC=MINDMATICS,DC=DE" method=128 
May 21 17:01:06 falke slapd[26754]: conn=31 op=2 RESULT tag=97 err=0 text= 
May 21 17:01:06 falke slapd[26755]: conn=31 op=3 BIND dn="" method=128 
May 21 17:01:06 falke slapd[26755]: conn=31 op=3 RESULT tag=97 err=0 text= 
May 21 17:01:06 falke login: User not known to the underlying authentication
module
May 21 17:01:06 falke slapd[26753]: conn=31 op=4 UNBIND 
May 21 17:01:06 falke slapd[26753]: conn=-1 fd=13 closed 

The user was created with the normal tools, then I used the migration tools to
convert /etc/passwd and /etc/group to ldif files. Those were imported into the
database ...

ldapsearch "uid=test" gives the following 

version: 2

#
# filter: uid=test
# requesting: ALL
#

# test, People, mindmatics, de
dn: uid=test,ou=People,dc=mindmatics,dc=de
uid: test
cn: test
sn: test
mail: test@mindmatics.de
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword:: e2NyeXB0fUhtY3gxcGlBN0ZkYlE=
shadowLastChange: 11789
shadowMax: 99999
shadowWarning: 7
loginShell: /bin/bash
uidNumber: 500
gidNumber: 100
homeDirectory: /home/test

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1


What have I missed ?