[Date Prev][Date Next] [Chronological] [Thread] [Top]

autofs problem



Title: Message
I have been using OpenLDAP for about a year and everything works except one - the automounter. I have:
 
SuSE 8,2
openldap2-2.1.12-44
autofs4-4.0.0pre10-493
I have created the ou=auto.master and ou=auto.home using the following LDIF:
 
dn: ou=auto.master,dc=cms,dc=livjm,dc=ac,dc=uk
objectClass: top
objectClass: automountMap
ou: auto.master
 
dn: cn=/home,ou=auto.master,dc=cms,dc=livjm,dc=ac,dc=uk
objectClass: top
objectClass: automount
cn: /home
automountInformation: ldap java.cms.livjm.ac.uk:ou=auto.home,dc=cms,dc=livjm,dc=ac,dc=uk
 
dn: ou=auto.home,dc=cms,dc=livjm,dc=ac,dc=uk
objectClass: top
objectClass: automountMap
ou: auto.home
 
dn: cn=cmstechs,ou=auto.home,dc=cms,dc=livjm,dc=ac,dc=uk
objectClass: automount
cn: cmstechs
automountInformation: -fstype=nfs kryten.cms.livjm.ac.uk:/export/cmstechs
 
I have /etc/nsswithch.conf
 
automount: files ldap
 
But when the automounter starts in /var/log/messages:
 
automount[1345]: lookup(ldap): query failed for (&(objectclass=automount)(cn=cmstechs))
 
But if I type the search in on the command line I get:
 
ldapsearch -x "(&(objectclass=automount)(cn=cmstechs))"
 
# extended LDIF
#
# LDAPv3
# base <> with scope sub
# filter: (&(objectclass=automount)(cn=cmstechs))
# requesting: ALL
#
 
# cmstechs, auto.home, cms.livjm.ac.uk
dn: cn=cmstechs,ou=auto.home,dc=cms,dc=livjm,dc=ac,dc=uk
objectClass: automount
cn: cmstechs
automountInformation: -fstype=nfs kryten.cms.livjm.ac.uk:/export/cmstechs
 
# search result
search: 2
result: 0 Success
 
# numResponses: 2
# numEntries: 1
 
So why can't the automounter find it ?
 
Many thanks

Dave Wynne
Senior Technical Officer
School of Computing and Maths
Liverpool John Moores University
Byrom Street
Liverpool L2 2AF
E-Mail: D.Wynne@livjm.ac.uk
Tel:0151-231-2108