hi all,
after having read tons of papers about ldap+linux+solaris+autofs+pam+samba I
got my ldap
server and some unix/linux to communicate in a suiteable manner (login and
authentification works
fine).
what i despair of is ldap and automount. most of the docs i read tell me to
setup this constellation
as described here:
my ldap root:
dc=bl,dc=majox,dc=de
nfs home exports are to be mounted from:
theseus.bl.majox.de:/vol1/users/home/[username]
nfs homes should be mounted (locally) to:
/home/[username]
================================================== =============
LDAP server ldif export:
----------------------------------------------------------------------------
--------------------------------------------------
dn: ou=Services,dc=bl,dc=majox,dc=de
ou: Services
objectClass: top
objectClass: organizationalUnit
dn: nisMapName=auto.master,ou=Services,dc=bl,dc=majox, dc=de
objectClass: top
objectClass: nisMap
nisMapName: auto.master
dn: cn=/home,nisMapName=auto.master,ou=Services,dc=bl,dc=m ajox,dc=de
nisMapName: auto.master
objectClass: top
objectClass: nisObject
nisMapEntry:
ldap:theseus.bl.majox.de:nismapname=auto.home,ou=S ervices,dc=bl,dc=majox,dc=
de
cn: /home
dn: nisMapName=auto.home,ou=Services,dc=bl,dc=majox,dc =de
objectClass: top
objectClass: nisMap
nisMapName: auto.home
dn: cn=/,nisMapName=auto.home,ou=Services,dc=bl,dc=majox,d c=de
objectClass: nisObject
cn: /
nisMapName: auto.home
nisMapEntry: theseus.bl.majox.de:/vol1/users/home/&
================================================== =============
================================================== =============
my /etc/nsswitch.conf (extract):
----------------------------------------------------------------------------
--------------------------------------------------
automount: ldap
================================================== =============
================================================== =============
when running /etc/init.d/autofs status i get:
Configured Mount Points:
------------------------
/usr/sbin/automount /home ldap
theseus.bl.majox.de:nismapname=auto.home,ou=Servic es,dc=bl,dc=majox,dc=de
Active Mount Points:
--------------------
================================================== =============
so that looks ok for me, local automount searches within ldap tree and find
my home mount entry
================================================== =============
but when starting auomount (it doesn't matter if i start automount using the
init scripts or typing the command automount itself shows above) i get from
"tail -f /var/log/slapd.log /var/log/messages":
----------------------------------------------------------------------------
--------------------------------------------------
Mar 6 13:43:22 theseus slapd[4363]: daemon: conn=384 fd=13 connection from
IP=127.0.0.1:38257 (IP=0.0.0.0:389) accepted.
Mar 6 13:43:22 theseus slapd[4363]: conn=384 op=0 BIND dn="" method=128
Mar 6 13:43:22 theseus slapd[4363]: conn=384 op=0 RESULT tag=97 err=0 text=
Mar 6 13:43:22 theseus slapd[4363]: daemon: conn=385 fd=14 connection from
IP=127.0.0.1:38258 (IP=0.0.0.0:389) accepted.
Mar 6 13:43:22 theseus slapd[4363]: conn=384 op=1 UNBIND
Mar 6 13:43:22 theseus slapd[4363]: conn=-1 fd=13 closed
Mar 6 13:43:22 theseus slapd[4363]: conn=385 op=0 BIND dn="" method=128
Mar 6 13:43:22 theseus slapd[4363]: conn=385 op=0 RESULT tag=97 err=0 text=
Mar 6 13:43:22 theseus slapd[4363]: conn=385 op=1 RESULT tag=101 err=34
text=invalid DN
Mar 6 13:43:22 theseus slapd[4363]: daemon: conn=386 fd=13 connection from
IP=127.0.0.1:38259 (IP=0.0.0.0:389) accepted.
Mar 6 13:43:22 theseus slapd[4363]: conn=386 op=0 BIND dn="" method=128
Mar 6 13:43:22 theseus slapd[4363]: conn=386 op=0 RESULT tag=97 err=0 text=
Mar 6 13:43:22 theseus slapd[4363]: deferring operation
Mar 6 13:43:22 theseus slapd[4363]: conn=386 op=1 RESULT tag=101 err=34
text=invalid DN
Mar 6 13:43:22 theseus slapd[4363]: conn=-1 fd=13 closed
==> /var/log/messages <==
Mar 6 13:43:22 theseus automount[16754]: starting automounter version
4.1.0, path = /home, maptype = ldap, mapname =
theseus.bl.majox.de:nisMapName=auto.home,ou=Servic es,dc=bl,dc=majox,dc=de
Mar 6 13:43:22 theseus automount[16754]: using kernel protocol version 3.00
Mar 6 13:43:22 theseus automount[16754]: using timeout 300 seconds; freq 75
secs
Mar 6 13:43:22 theseus automount[16754]: lookup(ldap): query failed for
(&(objectclass=nisObject))
Mar 6 13:43:22 theseus automount[16754]: lookup(ldap): query failed for
(&(objectclass=automount))
Mar 6 13:43:22 theseus automount[16754]: failed to load map, exiting
Mar 6 13:43:22 theseus automount[16754]: failed to remove dir
`^W^E^H°&]·^P: No such file or directory
==> /var/log/slapd.log <==
Mar 6 13:43:22 theseus slapd[4363]: conn=-1 fd=14 closed
================================================== =============
the lines i that attract attention to are thos ones with:
conn=385 op=1 RESULT tag=101 err=34 text=invalid DN
lookup(ldap): query failed for (&(objectclass=nisObject))
lookup(ldap): query failed for (&(objectclass=automount))
failed to remove dir `^W^E^H°&]·^P: No such file or directory
but i just can't find my error...
i would appreciate any help or ideas !
thanks in advance
cu
joerg