On Thu, 2006-11-09 at 10:49 +0530, Syed Khader wrote:
Hello Everybody,

How to make autofs read map from ldap rather than files.


Syed,

We run a mixed environment of Irix, Solaris and Linux machines.  To keep the Solaris machines happy, we use their schema (keys are "automountkey" rather than "cn", etc).  With autofs-4, Linux needs a different master map, but with version 5 it looks like we'll be able to use the same map as the other platforms.

To point the Linux machines at your master map set "LDAPAUTOMASTER" in /etc/sysconfig/autofs to the name of the map (the name, not the dn).

Our master map looks like:

dn: automountMapName=auto.master_linux,dc=example,dc=com
automountMapName: auto.master_linux
objectClass: top
objectClass: automountMap

dn: automountkey=/home,automountmapname=auto.master_linux,dc=example,dc=com
objectClass: automount
objectClass: top
automountKey: /home
automountInformation: ldap:automountmapname=auto_home,dc=example,dc=com

auto_home looks like:

dn: automountMapName=auto_home,dc=example,dc=com
automountMapName: auto_home
objectClass: top
objectClass: automountMap

dn: automountkey=someuser,automountmapname=auto_home,dc=example,dc=com
objectClass: automount
objectClass: top
automountKey: someuser
automountInformation: -rw    server:/export/home/&

Hope this helps.

-Steve

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to