problem with autofs
Hello Evrybuddy,
I had configured Openldap and succesfully configured for authentication of users.I'm facing problem with autofs.
I'm using Rhel4.When i say service autofs start it says
No mount points defined.
I have written the correct entries in /etc/exports file.
I have sucessfully mounted directories using /etc/auto.master and indirect maps on the client side
But when i'm using the ldap maps it's giving me problems
How can i make my autofs service to read the auto.master from LDAP Ou= auto.master.
I have changed in the /etc/nsswitch.conf file to Automount: ldap but no use
when i use service autofs start it says "No mountpoints defined".
Are they any bugs with RHEL4?
Or am i going wrong somewhere?
Thanks in advance
Abdul.
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs
Ian Kent
maintainerQuoted 17 lines · Syed Khader
Hello Evrybuddy,
I had configured Openldap and succesfully configured for authentication of users.I'm facing problem with autofs.
I'm using Rhel4.When i say service autofs start it says
No mount points defined.
I have written the correct entries in
/etc/exportsfile.I have sucessfully mounted directories using
/etc/auto.masterand indirect maps on the client side
But when i'm using the ldap maps it's giving me problems How can i make my autofs service to read the auto.master from LDAP Ou=auto.master.
Quoted 7 lines
I have changed in the
/etc/nsswitch.conffile to Automount: ldap but no usewhen i use service autofs start it says "No mountpoints defined".
Are they any bugs with RHEL4?
Or am i going wrong somewhere?
You need to show us your maps.
Ian
==> 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
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
Quoted 38 lines · Jeff Moyer
==> 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 sayssyedk> No mount points defined.
syedk> I have written the correct entries in
/etc/exportsfile.syedk> I have sucessfully mounted directories using
/etc/auto.masterand 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.conffile to Automount: ldap but
syedk> no usesyedk> 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.conffile 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.
Quoted 4 lines
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
==> Regarding Re: [autofs] problem with autofs; "Syed Khader" <[email protected]> adds:
syedk> The ldif for master is like this.
syedk> dn: ou=auto.master,dc=testlab,dc=com
syedk> objectClass:top
syedk> objectClass:automountMap
syedk> ou:auto.master
syedk> dn: cn=/home,ou=auto.master,dc=testlab,dc=com
syedk> objectClass:automount
syedk> cn:/home
syedk> automountInformation: ldap server.testlab.com:ou=auto.home,dc=testlab,dc=com syedk> --timeout 60
syedk> Auto.Home
syedk> dn: ou=auto.home,dc=testlab,dc=com
syedk> objectClass:top
syedk> objectClass:automountMap
syedk> ou:auto.home
syedk> dn: cn=user1,ou=auto.home,dc=testlab,dc=com
syedk> objectClass: automount
syedk> cn:user1
syedk> automountInformation: -fstype=nfs,hard,intr server.testlab.com:/home/user1
This looks okay to me, at first glance.
syedk> I'm using 4.1.3-155 version of autofs
syedk> My problem is to tell autofs daemon to read the map from LDAP and syedk> not from files. My autofs reads from the file /etc/auto.master. If syedk> i give the entry
syedk> /home ldap:server.testlab.com:ou=auto.home,dc=testlab,dc=com
syedk> in the /etc/auto.master file and say Service autofs status
syedk> Then i see the mount point as the above.But when i try to login on the syedk> client side.Still it doesn't mount the user's home directory.
Well, for that problem we may need debug logs, but let's sort out your issue with reading the master map from LDAP, first.
syedk> I have changed the entry AUTOMOUNT:LDAP in /etc/nsswitch.conf file.
Every time you type this in, you change the case. Make sure that nsswitch.conf reads:
automount: ldap
It should all be lower-case, as otherwise the init script will not match it. If it is lower-case, then please send along the output from:
"sh -x /etc/init.d/autofs start"
It may also be useful to see the output from:
/usr/lib[64]/autofs/autofs-ldap-auto-master
Thanks,
Jeff
Ian Kent
maintainerQuoted 6 lines · Jeff Moyer
syedk> /home ldap:server.testlab.com:ou=auto.home,dc=testlab,dc=com
syedk> in the
/etc/auto.masterfile and say Service autofs statussyedk> Then i see the mount point as the above.But when i try to login on the syedk> client side.Still it doesn't mount the user's home directory.
You refer to "the client side", you do mean the client that is running autofs with the configuration you describe above, don't you?
Ian
Hi Jeff,
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
AND /usr/lib[64]/autofs/autofs-ldap-auto-master DOESn't give any ouput
Thanks,
Abdul
Quoted 6 lines · Ian Kent
Quoted 4 lines · Jeff Moyer
syedk> /home ldap:server.testlab.com:ou=auto.home,dc=testlab,dc=com
syedk> in the
/etc/auto.masterfile and say Service autofs status
Quoted 11 lines
Quoted 1 line
syedk> Then i see the mount point as the above.But when i try to login
on the
Quoted 1 line
syedk> client side.Still it doesn't mount the user's home directory.
You refer to "the client side", you do mean the client that is running autofs with the configuration you describe above, don't you?
Ian
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs
==> Regarding Re: [autofs] problem with autofs; "Syed Khader" <[email protected]> adds:
syedk> Hi Jeff,
syedk> AND /usr/lib[64]/autofs/autofs-ldap-auto-master DOESn't give any ouput
That's bad. What does the following show?
ldapsearch -x -s subtree '(&(objectclass=automountMap)(ou=auto.master))'
Is the ldap server configured to allow anonymous binds?
-Jeff
Hi Jeff,
Here's the output
dn:ou=auto.master,dc=testlab,dc=com
objectClass:top
objectClass:automountMap
ou:auto.master
I have configured to allow anonymous bind.No ACLS are given
Thanks,
Abdul
Quoted 8 lines · Jeff Moyer
==> Regarding Re: [autofs] problem with autofs; "Syed Khader" < [email protected]> adds:
syedk> Hi Jeff,
syedk> AND /usr/lib[64]/autofs/autofs-ldap-auto-master DOESn't give any ouput
Quoted 8 lines
That's bad. What does the following show?
ldapsearch -x -s subtree '(&(objectclass=automountMap)(ou=auto.master))'
Is the ldap server configured to allow anonymous binds?
-Jeff
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs
==> Regarding Re: [autofs] problem with autofs; "Syed Khader" <[email protected]> adds:
syedk> Hi Jeff,
syedk> Here's the output
Quoted 1 line
Quoted 1 line
ldapsearch -x -s subtree '(&(objectclass=automountMap)(ou=auto.master))'
syedk> dn:ou=auto.master,dc=testlab,dc=com
syedk> objectClass:top
syedk> objectClass:automountMap
syedk> ou:auto.master
syedk> I have configured to allow anonymous bind.No ACLS are given
OK, then what do you get with this:
ldapsearch -x -s subtree -b 'ou=auto.master,dc=testlab,dc=com' 'objectclass=automount'
-Jeff
Jeff,
It gives me
dn: cn=/home,dc=testlab,dc=com
and the automount information which i specified in the auto.home map.
I think Ldap entries are fine,but the problem is to make autofs read from the LDAP rather than files.
Thanks,
Abdul.
Quoted 15 lines · Jeff Moyer
==> Regarding Re: [autofs] problem with autofs; "Syed Khader" < [email protected]> adds:
syedk> Hi Jeff,
syedk> Here's the outputQuoted 1 line
Quoted 1 line
ldapsearch -x -s subtree '(&(objectclass=automountMap)(ou=auto.master
))'
syedk> dn:ou=auto.master,dc=testlab,dc=com
syedk> objectClass:top
syedk> objectClass:automountMap
syedk> ou:auto.master
Quoted 9 lines
syedk> I have configured to allow anonymous bind.No ACLS are given
OK, then what do you get with this:
ldapsearch -x -s subtree -b 'ou=auto.master,dc=testlab,dc=com' 'objectclass=automount'
-Jeff
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs
Ian Kent
maintainerQuoted 8 lines · Syed Khader
Jeff,
It gives medn: cn=/home,dc=testlab,dc=com
and the automount information which i specified in the auto.home map.I think Ldap entries are fine,but the problem is to make autofs read from the LDAP rather than files.
No. The problem right now is to understand why the autofs-ldap-auto-master program is not able to read the LDAP master map.
Quoted 31 lines
Thanks,
Abdul.On 11/8/06, Jeff Moyer <[email protected]> wrote:
==> Regarding Re: [autofs] problem with autofs; "Syed Khader" <[email protected]> adds:syedk> Hi Jeff,
syedk> Here's the output>> ldapsearch -x -s subtree '(&(objectclass=automountMap)(ou=auto.master))'
syedk> dn:ou=auto.master,dc=testlab,dc=com syedk> objectClass:top
syedk> objectClass:automountMap syedk> ou:auto.mastersyedk> I have configured to allow anonymous bind.No ACLS are given
OK, then what do you get with this:
ldapsearch -x -s subtree -b 'ou=auto.master,dc=testlab,dc=com' 'objectclass=automount'
-Jeff
Hi Kent,
I mean when i write the map in the /etc/auto.master also it doesn't make any difference when i login with the username on the client machine which is configured to use LDAP and autofs.
Thanks,
Abdul
Quoted 6 lines · Ian Kent
Quoted 4 lines · Jeff Moyer
syedk> /home ldap:server.testlab.com:ou=auto.home,dc=testlab,dc=com
syedk> in the
/etc/auto.masterfile and say Service autofs status
Quoted 11 lines
Quoted 1 line
syedk> Then i see the mount point as the above.But when i try to login
on the
Quoted 1 line
syedk> client side.Still it doesn't mount the user's home directory.
You refer to "the client side", you do mean the client that is running autofs with the configuration you describe above, don't you?
Ian
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs