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

AutoFS LDAP Help



Hi,



I am trying to setup the LDAP autofs using Redhat 8.0. I have two Redhat
machine one is LDAP/NFS server, another is just client.

Here is my configuration:

192.168.1.110 is LDAP/Server

192.168.1.8  is Client



Using LDAP Authentication I was able to login into 192.168.1.8. Now I want
to share 192.168.1.110 home directory to  the clients.

In the server I shared the home directory.

# cat /etc/exports

/home

192.168.1.8(rw,insecure,sync,insecure_locks,no_root_squash)



Client side I modified /etc/nsswitch.conf :

automount:  files

#cat /etc/auto.master

#

# directories listed in /etc/auto_home is mounted under /home

/home           auto_home

[root@localhost root]# cat /etc/auto_home

# Export all the users home directory in Server

·         192.168.1.110:/home/&



With this configuration automount works.

I want to store this information in LDAP,  My sample ldif file configuration
looks like this.

[root@localhost work]# cat au.ldif

dn: ou=auto.master, dc=percipia, dc=com

objectClass: top

objectClass: automountMap

ou: auto.master



dn: cn=/home, ou=auto.master, dc=percipia, dc=com

objectClass: automount

cn: /home

automountInformation: ldap 192.168.1.110:ou=auto.home,dc=percipia,dc=com



dn: ou=auto.home, dc=percipia, dc=com

objectClass: top

objectClass: automountMap

ou: auto.home



dn: cn=ravi, ou=auto.home, dc=percipia, dc=com

objectClass: automount

cn: ravi

automountInformation: 192.168.1.110:/home/ravi



dn: cn=sundaram, ou=auto.home, dc=percipia, dc=com

objectClass: automount

cn: sundaram

automountInformation: 192.168.1.110:/home/sundaram



On the client side I modified /etc/nsswitch.conf :

automount:   ldap

[root@localhost root]# service  autofs restart

Stopping automount:                                        [  OK  ]

Starting automount:                                        [  OK  ]



[root@localhost root]# ls /home/sundaram

ls: /home/sundaram: No such file or directory

[root@localhost root]# service  autofs status Configured Mount Points:

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

/usr/sbin/automount /home yp ldap

192.168.1.110:ou=auto.home,dc=percipia,dc=com



Active Mount Points:

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

[root@localhost root]#



I don't know what I am doing wrong here. I used the following refrence.

http://www.openldap.org/faq/index.cgi?_highlightWords=autofs&file=599

http://www.openldap.org/lists/openldap-software/200106/msg00355.html



Thanks

·         SR