Description of problem: autofs fails to load ldap maps. it erronously adds yp to the string in the init script Version-Release number of selected component (if applicable): autofs-4.1.3-28 and autofs-4.1.3-99 both have this How reproducible: always, as easy as setting up a ldap server Steps to Reproduce: 1. create ldap server 2. add autofs maps 3. restart autofs Actual results: init script calls "/usr/sbin/automount --timeout=60 /data yp ldap blip.internal.datastacks.com:ou=auto.data,dc=dsmouse,dc=net " which is obvously bunk. gets this message in log: Mar 8 17:10:38 localhost automount[10216]: lookup(yp): map ldap: Local domain name not set Expected results: it to actually mount at the right place :) Additional info: patch to fix it attached
Created attachment 111795 [details] patch to /etc/init.d/autofs this is a patch to autofs-4.1.3-28; -99 works too, but line numbers change.
Created attachment 111796 [details] same patch, not filterd through bash. :(
Could you post your /etc/auto.master (or auto_master) file?
Created attachment 111828 [details] auto.master
all the autofs files are unmodified from the rpm. The only way autofs knows to use ldap is the "automount: files ldap" in nsswitch.conf (as generated by authconfig)
Can you post the results from the following command: /usr/lib/autofs/autofs-ldap-auto-master
/data ldap blip.internal.datastacks.com:ou=auto.data,dc=dsmouse,dc=net
Thanks, Can you post the maps that you loaded into ldap? Could you also post the output from the following command: ldapsearch -x -b 'ou=auto.master,dc=dsmouse,dc=net'
[root@localhost ~]# ldapsearch -x -b 'ou=auto.master,dc=dsmouse,dc=net' # extended LDIF # # LDAPv3 # base <ou=auto.master,dc=dsmouse,dc=net> with scope sub # filter: (objectclass=*) # requesting: ALL # # auto.master, dsmouse.net dn: ou=auto.master,dc=dsmouse,dc=net ou: auto.master objectClass: top objectClass: automountMap # /data, auto.master, dsmouse.net dn: cn=/data,ou=auto.master,dc=dsmouse,dc=net objectClass: automount automountInformation: ldap blip.internal.datastacks.com:ou=auto.data,dc=dsmous e,dc=net cn: /data # search result search: 2 result: 0 Success # numResponses: 3 # numEntries: 2
also, because you're going to ask for this next: ]# ldapsearch -x -b 'ou=auto.data,dc=dsmouse,dc=net' # extended LDIF # # LDAPv3 # base <ou=auto.data,dc=dsmouse,dc=net> with scope sub # filter: (objectclass=*) # requesting: ALL # # auto.data, dsmouse.net dn: ou=auto.data,dc=dsmouse,dc=net ou: auto.data objectClass: top objectClass: automountMap # home, auto.data, dsmouse.net dn: cn=home,ou=auto.data,dc=dsmouse,dc=net objectClass: automount automountInformation: -fstype=nfs,hard,intr,nodev,nosuid starfish:/ldata/home cn: home
Ok, so the problem you're having is caused because you've got a slight error in your auto.master ldap map. Your automountInformation line reads like this: automountInformation: ldap blip.internal.datastacks.com:ou=auto.data,dc=dsmouse,dc=net It should read like this: ldap://blip.internal.datastacks.com:ou=auto.data,dc=dsmouse,dc=net You can use the /usr/share/doc/autofs-4.1.3/ldap-automount-auto.master file for reference. Can you make that change and let me know if everything works?
That didn't work, but ldap:blip.... did... I added a extra "getmounts" on line 474 to see what it was doing, and it was trying "/usr/sbin/automount --timeout=60 /data ldap //blip.internal.datastacks.com:ou=auto.data,dc=dsmouse,dc=net" I removed the // to get it to work...
What error do you get when you include the "//". This *should* work. Can you also try using autofs-4.1.3-107? This is the latest FC autofs. http://download.fedora.redhat.com/pub/fedora/linux/core/development/i386/Fedora/RPMS/autofs-4.1.3-107.i386.rpm
No response recieved, closing as WORKSFORME. Please re-open this bug if the problem persists.