From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Stephen C. Rigler" Subject: Re: autofs to load MAP from LDAP Date: Thu, 09 Nov 2006 07:11:47 -0600 Message-ID: <1163077907.9612.18.camel@houuc8> References: <29c5cd460611082119u63dcc765j56c58c07f6ccd072@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7872380987377030805==" Return-path: In-Reply-To: <29c5cd460611082119u63dcc765j56c58c07f6ccd072@mail.gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: autofs@linux.kernel.org --===============7872380987377030805== Content-Type: multipart/alternative; boundary="=-Ed7UMYk0MBFdNi64cYVx" --=-Ed7UMYk0MBFdNi64cYVx Content-Type: text/plain Content-Transfer-Encoding: 7bit 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 --=-Ed7UMYk0MBFdNi64cYVx Content-Type: text/html; charset=utf-8 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

--=-Ed7UMYk0MBFdNi64cYVx-- --===============7872380987377030805== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ autofs mailing list autofs@linux.kernel.org http://linux.kernel.org/mailman/listinfo/autofs --===============7872380987377030805==--