Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 156819 - autofs complains about objectclass but works using ldap
Summary: autofs complains about objectclass but works using ldap
Alias: None
Product: Fedora
Classification: Fedora
Component: autofs
Version: 3
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Chris Feist
QA Contact: Brock Organ
Depends On:
TreeView+ depends on / blocked
Reported: 2005-05-04 14:22 UTC by Paul Gienger
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2006-04-19 21:06:41 UTC

Attachments (Terms of Use)

Description Paul Gienger 2005-05-04 14:22:52 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2

Description of problem:
Using what appears to be a RH/Fedora standard ldap automount map, every mount attempt gives a similar error to the following:

May  4 09:00:26 gold automount[6374]: lookup(ldap): got answer, but no first entry for (&(objectclass=nisObject)(cn=pgienger))

Regardless of the error, the mount is successful and things go happily on their way.  The relevant LDIF information is below for this particular entry.  It doesn't make much sense that a fully working system should error so consistantly.

I don't believe there are any other relevant system configuration changes to the  client or the server.  The latest server was a fresh install/patched stock FC3 machine and exhibits the behavior as soon as it is configured as an LDAP client and autofs is restarted.

LDIF follows

dn: ou=auto.master,ou=AutomountMaps,dc=ae-solutions,dc=com
objectClass: automountMap
objectClass: top
ou: auto.master
structuralObjectClass: automountMap

dn: cn=/home,ou=auto.master,ou=AutomountMaps,dc=ae-solutions,dc=com
objectClass: automount
objectClass: top
cn: /home
automountInformation: ldap:ou=auto_home,ou=AutomountMaps,dc=ae-solutions,dc=co
 m soft,bg,rsize=32768,wsize=32768
structuralObjectClass: automount

dn: ou=auto_home,ou=AutomountMaps,dc=ae-solutions,dc=com
objectClass: automountMap
objectClass: top
ou: auto_home
structuralObjectClass: automountMap

dn: cn=pgienger,ou=auto_home,ou=AutomountMaps,dc=ae-solutions,dc=com
objectClass: automount
objectClass: top
cn: pgienger
structuralObjectClass: automount

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. configure LDAP client
2. (re)start autofs
3. change to an automounted directory

Actual Results:  Directory was mounted, error logged

Expected Results:  Directory mounted, no errors on client side except maybe a notification of the directory being mounted.

Additional info:

Comment 1 Chris Feist 2005-10-04 16:19:13 UTC
This is caused because of the support for extra ldap schemas.  Those errors can
be safely ignored and should only be present when logging debug messages in FC-5.

Comment 2 George 2005-10-04 16:37:08 UTC
Could you specify the extra schemas that caused problem? Thanks.

Comment 3 Chris Feist 2005-10-04 16:52:59 UTC
Initially autofs would only look for objectClass=nisObject, the autofs in FC-3
adds support for objectClass=nisObject & objectClass=automount.  Because autofs
checks for both types of maps it prints an error when it looks for maps in the
schema that the site is not using, but it will still succeed if it finds maps in
the other schema.

Comment 4 Jeff Moyer 2006-04-19 21:06:41 UTC
new packages should suppress this warning.

Comment 5 George 2006-04-19 21:13:31 UTC
Could you specify the packages? I am using RHEL 3 & 4, and will be very happy to
see the problem be fixed on those OS versions too.

Comment 6 Jeff Moyer 2006-04-19 21:18:48 UTC
This bug has been fixed in autofs-4.1.3-158 and later.

Note You need to log in before you can comment on or make changes to this bug.