Networking Forums

Networking Forums > Computer Networking > Linux Networking > linux + openldap + automount

Reply
Thread Tools Display Modes

linux + openldap + automount

 
 
joerg mauz
Guest
Posts: n/a

 
      03-06-2004, 12:48 PM
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



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NIS, automount and offline Ole Jacob Taraldset Linux Networking 0 02-24-2006 05:50 PM
linux automount using nis maps from solaris anon Linux Networking 4 10-01-2004 10:52 PM
Linux NFS automount, Sun Solaris NIS YP, auto.direct Philip Sheng Linux Networking 7 07-22-2004 01:09 AM
Autofs/Automount on RedHat Linux Kernal 2.4.20-8 (Release 9) on i686 Murali Kanaga Linux Networking 0 10-17-2003 12:36 AM
Re: nested amd automount yuhl Linux Networking 0 06-30-2003 09:47 AM



1 2 3 4 5 6 7 8 9 10 11