* autofs to load MAP from LDAP @ 2006-11-09 5:19 Syed Khader 2006-11-09 11:38 ` Ian Kent 2006-11-09 13:11 ` Stephen C. Rigler 0 siblings, 2 replies; 6+ messages in thread From: Syed Khader @ 2006-11-09 5:19 UTC (permalink / raw) To: autofs [-- Attachment #1.1: Type: text/plain, Size: 3910 bytes --] Hello Everybody, How to make autofs read map from ldap rather than files. I have changed the entries in nsswitch.conf file as LDAP. Gone through OPENLDAP FAQ for fixing the init scripts but nothing works. My ldap entries are as follows 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 and Rhel4 when i say service autofs restart it says no mount points defined but [OK] when i see STATUS it says no configured Mount points /usr/lib/autofs/autofs-ldap-auto-master DOESn't give any ouput Here's the ouput of sh -x \etc\init.d\autofs start + FLAGS='defaults 21' + DAEMON=/usr/sbin/automount ++ basename /usr/sbin/automount + prog=automount + initdir=/etc/rc.d/init.d + system=redhat + '[' redhat = redhat ']' + . /etc/rc.d/init.d/functions ++ TEXTDOMAIN=initscripts ++ umask 022 ++ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin ++ export PATH ++ '[' -z '' ']' ++ COLUMNS=80 ++ '[' -z '' ']' +++ /sbin/consoletype ++ CONSOLETYPE=pty ++ '[' -f /etc/sysconfig/i18n -a -z '' ']' ++ . /etc/sysconfig/i18n +++ LANG=en_US.UTF-8 +++ SUPPORTED=en_US.UTF-8:en_US:en +++ SYSFONT=latarcyrheb-sun16 ++ '[' pty '!=' pty ']' ++ '[' -n '' ']' ++ export LANG ++ '[' -z '' ']' ++ '[' -f /etc/sysconfig/init ']' ++ . /etc/sysconfig/init +++ BOOTUP=color +++ GRAPHICAL=yes +++ RES_COL=60 +++ MOVE_TO_COL='echo -en \033[60G' +++ SETCOLOR_SUCCESS='echo -en \033[0;32m' +++ SETCOLOR_FAILURE='echo -en \033[0;31m' +++ SETCOLOR_WARNING='echo -en \033[0;33m' +++ SETCOLOR_NORMAL='echo -en \033[0;39m' +++ LOGLEVEL=3 +++ PROMPT=yes ++ '[' pty = serial ']' ++ '[' color '!=' verbose ']' ++ INITLOG_ARGS=-q + test -e /usr/sbin/automount + '[' redhat = debian ']' + PATH=/sbin:/usr/sbin:/bin:/usr/bin + export PATH + LOCALOPTIONS= + DAEMONOPTIONS= + UNDERSCORETODOT=1 + DISABLE_DIRECT=1 + ONE_AUTO_MASTER=0 + DAEMON_EXIT_WAIT=34 + GHOSTDIRS= + . /etc/sysconfig/autofs ++ LOCALOPTIONS= ++ DAEMONOPTIONS=--timeout=60 ++ UNDERSCORETODOT=1 ++ DISABLE_DIRECT=1 ++ ONE_AUTO_MASTER=0 ++ GHOSTDIRS= + RETVAL=0 + '[' redhat = debian ']' + '[' redhat = redhat ']' + redhat start + case "$1" in + echo -n 'Starting automount: ' ++ mktemp /tmp/autofs.XXXXXX + TMP=/tmp/autofs.TGH486 + getmounts + local LC_ALL=C + export LC_ALL + knownmaps=' ' ++ echo '' ++ sed 's/ /\|/g' + ghostdirs= + getrawmounts ++ getschemes ++ grep '^automount:' /etc/nsswitch.conf + read dir map options + tee /tmp/autofs.TGH486 + WARN=0 + SUCCESS=0 + read cmd rest ++ sed -e 's/^.*://' -e 's/\[.*\]/ /g' + for scheme in '`getschemes`' + case "$scheme" in + '[' -z '' ']' ++ getldapmounts ++ '[' -x /usr/lib/autofs/autofs-ldap-auto-master ']' ++ /usr/lib/autofs/autofs-ldap-auto-master + LDAPMOUNTS= + '[' -n '' ']' + getldapmounts + '[' -x /usr/lib/autofs/autofs-ldap-auto-master ']' + /usr/lib/autofs/autofs-ldap-auto-master + ldapscheme=1 + export ldapscheme + '[' 0 = 0 ']' + exit 2 + RETVAL=2 + '[' -s /tmp/autofs.TGH486 ']' + echo -n 'No Mountpoints Defined' + success 'automount startup' + '[' -z '' ']' + initlog -q -n /etc/init.d/autofs -s 'automount startup' -e 1 + '[' color '!=' verbose -a -z '' ']' + echo_success + '[' color = color ']' + echo -en '\033[60G' + echo -n '[ ' + '[' color = color ']' + echo -en '\033[0;32m' + echo -n OK + '[' color = color ']' + echo -en '\033[0;39m' + echo -n ' ]' + echo -ne '\r' + return 0 + return 0 + rm -f /tmp/autofs.TGH486 + echo + exit 2 PLEASE HELP. Thanks, ABDUL. [-- Attachment #1.2: Type: text/html, Size: 4803 bytes --] [-- Attachment #2: Type: text/plain, Size: 140 bytes --] _______________________________________________ autofs mailing list autofs@linux.kernel.org http://linux.kernel.org/mailman/listinfo/autofs ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: autofs to load MAP from LDAP 2006-11-09 5:19 autofs to load MAP from LDAP Syed Khader @ 2006-11-09 11:38 ` Ian Kent 2006-11-09 13:11 ` Stephen C. Rigler 1 sibling, 0 replies; 6+ messages in thread From: Ian Kent @ 2006-11-09 11:38 UTC (permalink / raw) To: Syed Khader; +Cc: autofs On Thu, 2006-11-09 at 10:49 +0530, Syed Khader wrote: > > /usr/lib/autofs/autofs-ldap-auto-master DOESn't give any ouput As we established, we need to find out why this program (the one that reads the LDAP master map) is not receiving anything back from the LDAP server. You will need to either increase the debug level on the LDAP server to log packets or obtain a network packet dump of the network communication to the server from the client. Something like: tcpdump -w <file to save packets to> host <LDAP server name or IP> on the client should do it. Then we need to get hold of it somehow. Ian ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: autofs to load MAP from LDAP 2006-11-09 5:19 autofs to load MAP from LDAP Syed Khader 2006-11-09 11:38 ` Ian Kent @ 2006-11-09 13:11 ` Stephen C. Rigler 2006-11-10 4:33 ` Syed Khader 1 sibling, 1 reply; 6+ messages in thread From: Stephen C. Rigler @ 2006-11-09 13:11 UTC (permalink / raw) To: autofs [-- Attachment #1.1: Type: text/plain, Size: 1333 bytes --] 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 [-- Attachment #1.2: Type: text/html, Size: 2096 bytes --] [-- Attachment #2: Type: text/plain, Size: 140 bytes --] _______________________________________________ autofs mailing list autofs@linux.kernel.org http://linux.kernel.org/mailman/listinfo/autofs ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: autofs to load MAP from LDAP 2006-11-09 13:11 ` Stephen C. Rigler @ 2006-11-10 4:33 ` Syed Khader 2006-11-10 14:32 ` Stephen C. Rigler 2006-11-11 2:44 ` Ian Kent 0 siblings, 2 replies; 6+ messages in thread From: Syed Khader @ 2006-11-10 4:33 UTC (permalink / raw) To: Stephen C. Rigler; +Cc: autofs [-- Attachment #1.1: Type: text/plain, Size: 2245 bytes --] But in my ldap entries i don't have automountmapname. 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 What do i set LDAPAUTOMASTER to? Abdul. On 11/9/06, Stephen C. Rigler <srigler@marathonoil.com> wrote: > > 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 > autofs@linux.kernel.org > http://linux.kernel.org/mailman/listinfo/autofs > > > [-- Attachment #1.2: Type: text/html, Size: 3616 bytes --] [-- Attachment #2: Type: text/plain, Size: 140 bytes --] _______________________________________________ autofs mailing list autofs@linux.kernel.org http://linux.kernel.org/mailman/listinfo/autofs ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: autofs to load MAP from LDAP 2006-11-10 4:33 ` Syed Khader @ 2006-11-10 14:32 ` Stephen C. Rigler 2006-11-11 2:44 ` Ian Kent 1 sibling, 0 replies; 6+ messages in thread From: Stephen C. Rigler @ 2006-11-10 14:32 UTC (permalink / raw) To: Syed Khader; +Cc: autofs [-- Attachment #1.1: Type: text/plain, Size: 895 bytes --] On Fri, 2006-11-10 at 10:03 +0530, Syed Khader wrote: > But in my ldap entries i don't have automountmapname. Might not be an issue. Somebody else can confirm the behavior, but I do recall while looking at my LDAP server logs that autofs was looking up all possible combinations when search for the master map. You can verify either by looking at your server logs or running tcpdump or wireshark/ethereal on your client while autofs is starting up. > 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 Your automountinformation should probably be "ldap:ou=auto.home,dc=testlab,dc=com --timeout 60". > What do i set LDAPAUTOMASTER to? We set it because our auto.master has a different name. I don't think you'd need to if it's just "auto.master". -Steve [-- Attachment #1.2: Type: text/html, Size: 1519 bytes --] [-- Attachment #2: Type: text/plain, Size: 140 bytes --] _______________________________________________ autofs mailing list autofs@linux.kernel.org http://linux.kernel.org/mailman/listinfo/autofs ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: autofs to load MAP from LDAP 2006-11-10 4:33 ` Syed Khader 2006-11-10 14:32 ` Stephen C. Rigler @ 2006-11-11 2:44 ` Ian Kent 1 sibling, 0 replies; 6+ messages in thread From: Ian Kent @ 2006-11-11 2:44 UTC (permalink / raw) To: Syed Khader; +Cc: autofs On Fri, 2006-11-10 at 10:03 +0530, Syed Khader wrote: > But in my ldap entries i don't have automountmapname. Stephen said in his post that he is using a different schema. > > 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 > > What do i set LDAPAUTOMASTER to? > > Abdul. > > > > On 11/9/06, Stephen C. Rigler <srigler@marathonoil.com> wrote: > 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 > autofs@linux.kernel.org > http://linux.kernel.org/mailman/listinfo/autofs > > > > _______________________________________________ > autofs mailing list > autofs@linux.kernel.org > http://linux.kernel.org/mailman/listinfo/autofs ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-11-11 2:44 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-11-09 5:19 autofs to load MAP from LDAP Syed Khader 2006-11-09 11:38 ` Ian Kent 2006-11-09 13:11 ` Stephen C. Rigler 2006-11-10 4:33 ` Syed Khader 2006-11-10 14:32 ` Stephen C. Rigler 2006-11-11 2:44 ` Ian Kent
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.