[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

autofs+ldap (without /etc/auto.master)



Hello,

i'm trying to get autofs pull everything from ldap (even auto.master)

Now the situation is the following having an auto.master as below and
nsswitch.conf with !automount: files" pulls the map from ldap (because
auto.master says to...), but nsswitch.conf with "automount: ldap"
doesn't do anything. Although the initscript tries to parse wether we
use file or ldap (the default etch initscript, just trying to
investigate)

I atteched the info i have below, unfortunately the log stays quite
upon restarting the auomount daemon even though i set -d -v for the
daemonopts...

# /etc/init.d/autofs restart
Stopping automounter: done.
Starting automounter: no automount maps defined.

auto.master: (if used)
/data           ldap:backend.example.com:ou=autofs,dc=example,dc=com

nsswitch.conf:
automount:    ldap

/etc/default/autofs:
TIMEOUT=300
DISABLE_DIRECT=0
LDAPURI=ldap://backend.example.com/
LDAPBASE=ou=autofs,dc=example,dc=com

the ldap entries:
dn: ou=autofs,dc=example,dc=com
objectClass: automountMap
objectClass: top
ou: autofs

dn: ou=data,ou=autofs,dc=example,dc=com
objectClass: organizationalUnit
objectClass: top
ou: data

dn: cn=/data,ou=autofs,dc=example,dc=com
objectClass: automount
objectClass: top
automountinformation: ldap:backend.example.com:ou=data,ou=autofs,dc=exampl
e,dc=com
cn: /data

dn: cn=management,ou=data,ou=autofs,dc=example,dc=com
objectClass: automount
objectClass: top
automountinformation: -fstype=nfs,hard,intr,rsize=8192,wsize=8192 shares:/sr
v/nfs/management
cn: management

dn: cn=example,ou=data,ou=autofs,dc=example,dc=com
objectClass: automount
objectClass: top
automountinformation: -fstype=nfs,hard,intr,rsize=8192,wsize=8192 shares:/sr
v/nfs/example
cn: example




--
Martin Marcher
martin.marcher@gmail.com
http://www.mycorners.com
https://www.xing.com/profile/Martin_Marcher
http://www.linkedin.com/in/martinmarcher
http://www.studivz.net/profile.php?ids=9f83ea8c5996b8ec
http://www.amazon.de/gp/registry/wishlist/3KDAGCL2NKOIM/ref=reg_hu-wl_goto-registry/302-4432803-5146435?ie=UTF8&sort=date-added



Reply to: