The ldif for master is like this.
dn: ou=auto.master,dc=testlab,dc=com
objectClass:top
objectClass:automountMap
ou:auto.master
dn: cn=/home,ou=auto.master,dc=testlab,dc=com
objectClass:automount
cn:/home
automountInformation: ldap server.testlab.com:ou=auto.home,dc=testlab,dc=com --timeout 60
Auto.Home
dn: ou=auto.home,dc=testlab,dc=com
objectClass:top
objectClass:automountMap
ou:auto.home
dn: cn=user1,ou=auto.home,dc=testlab,dc=com
objectClass: automount
cn:user1
automountInformation: -fstype=nfs,hard,intr server.testlab.com:/home/user1
I'm using 4.1.3-155 version of autofs
My problem is to tell autofs daemon to read the map from LDAP and not from files.
My autofs reads from the file /etc/auto.master.
If i give the entry
/home ldap:server.testlab.com:ou=auto.home,dc=testlab,dc=com
in the /etc/auto.master file and say Service autofs status
Then i see the mount point as the above.But when i try to login on the client side.Still it doesn't mount the user's home directory.
I have changed the entry AUTOMOUNT:LDAP in /etc/nsswitch.conf file.
Thanks,
Abdul
On 11/7/06, Jeff Moyer <[EMAIL PROTECTED]> wrote:
==> Regarding [autofs] problem with autofs; "Syed Khader" < [EMAIL PROTECTED]> adds:
syedk> Hello Evrybuddy,
syedk> I had configured Openldap and succesfully configured for authentication of
syedk> users.I'm facing problem with autofs
syedk> I'm using Rhel4.When i say service autofs start it says
syedk> No mount points defined.
syedk> I have written the correct entries in /etc/exports file.
syedk> I have sucessfully mounted directories using /etc/auto.master and
syedk> indirect maps on the client side But when i'm using the ldap maps
syedk> it's giving me problems How can i make my autofs service to read the
syedk> auto.master from LDAP Ou= auto.master.
syedk> I have changed in the /etc/nsswitch.conf file to Automount: ldap but
syedk> no use
syedk> when i use service autofs start it says "No mountpoints defined".
syedk> Are they any bugs with RHEL4?
Bugs? In software? Nooo, none here. ;)
syedk> Or am i going wrong somewhere?
Since you can authenticate users using ldap, I'm guessing that your
/etc/openldap/ldap.conf file points to the right server with the right base
DN. If that is the case, then we'll need to see the ldif for your master
map, as Ian noted in his reply.
What version of autofs are you using? What LDAP schema are you using?
-Jeff
_______________________________________________ autofs mailing list [email protected] http://linux.kernel.org/mailman/listinfo/autofs
