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

autofs + ldap



dear list,

I have a lot of problems with autofs-3.1.7-239 & openldap-2.1.8

on the nfs-automount-client I got the following config files :

/etc/auto.master
/home   ldap ldapserver:ou=auto.home,dc=aldi,dc=de

/etc/nsswitch.conf
automount: files

/etc/ldap.conf
host ldapserver
base dc=aldi,dc=de


cd /home/bert or when trying to log in "Could not chdir to home directory /home/bert: No such file or directory"

I get this error message in /var/log/messages (still on the nfs-client)

Jan 6 08:32:18 automount[2594]: attempting to mount entry /home/bert
Jan 6 08:32:18 automount[15016]: lookup(ldap): got answer, but no first entry for (&(objectclass=automount)(cn=/))



slapd.log says :

conn=3 op=1 SRCH base="ou=auto.home,dc=aldi,dc=de" scope=2 filter="(&(objectClass=automount)(cn=bert))"
<= bdb_equality_candidates: index_param failed (18)
ber_flush: 14 bytes to sd 12
conn=3 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=


conn=3 op=2 SRCH base="ou=auto.home,dc=aldi,dc=de" scope=2 filter="(&(objectClass=automount)(cn=/))"
<= bdb_equality_candidates: index_param failed (18)
ber_flush: 14 bytes to sd 12
conn=3 op=2 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=3 fd=12 closed



nentries=0 !!???


---------------

/usr/local/openldap-2.1.8/bin/ldapsearch -b ou=auto.home,dc=aldi,dc=de -D cn=xxx,dc=aldi,dc=de -h ldapserver -W -x -ZZ -LLL '(&(objectclass=automount)(cn=/))'
Enter LDAP Password:


dn: cn=/,ou=auto.home,dc=aldi,dc=de
objectClass: top
objectClass: automount
description: generic home directory
cn: /
automountInformation: -rw,soft nfsserver:/home/&


slapd.log says :
conn=1 op=2 SRCH base="ou=auto.home,dc=aldi,dc=de" scope=2 filter="(&(objectClass=automount)(cn=/))"
<= bdb_equality_candidates: index_param failed (18)
ber_flush: 188 bytes to sd 12
ber_flush: 14 bytes to sd 12
conn=1 op=2 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=1 op=3 UNBIND
conn=1 fd=12 closed



nentries=1 so this is really OK !


standard autofs works fine. It is not my nfs-server which is doing all that mess.



What's wrong in this config ? Anyone knows ?



best regards,


Jan