Bug 3970 - autofs doesn't work if automounter maps are in LDAP
Summary: autofs doesn't work if automounter maps are in LDAP
Status: RESOLVED WORKSFORME
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: i586 Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Tomas Kindl
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2011-12-31 19:13 CET by David Walser
Modified: 2012-01-10 16:35 CET (History)
3 users (show)

See Also:
Source RPM: autofs-5.0.5-4.mga1.src.rpm
CVE:
Status comment:


Attachments
strace output from automount -vdf command (39.83 KB, application/octet-stream)
2012-01-10 16:16 CET, David Walser
Details

Description David Walser 2011-12-31 19:13:26 CET
I have automounter maps stored in LDAP on an LDAP server.  On a Mageia 1 client upgraded from MDV 2010.2, ldap and autofs config are the same; it worked on MDV 2010.2 and before, doesn't on Mageia 1.

This is what /etc/autofs/autofs.conf looks like:
TIMEOUT=300
BROWSE_MODE="yes"
MAP_OBJECT_CLASS="automountMap"
ENTRY_OBJECT_CLASS="automount"
MAP_ATTRIBUTE="ou"
ENTRY_ATTRIBUTE="cn"
VALUE_ATTRIBUTE="automountInformation"

Running automount -vdf shows the errors I'm getting.  Here's the end of the output:
bind_ldap_simple: lookup(ldap): Unable to bind to the LDAP server: (default), error Can't contact LDAP server
do_bind: lookup(ldap): ldap simple bind returned -1
do_bind: lookup(ldap): auth_required: 1, sasl_mech (null)
bind_ldap_simple: lookup(ldap): Unable to bind to the LDAP server: (default), error Can't contact LDAP server
do_bind: lookup(ldap): ldap simple bind returned -1
lookup(ldap): couldn't connect to server default
lookup(file): failed to read included master map auto.master
no mounts in table

Running an ldapsearch command to read other things from the LDAP server works fine.
David Walser 2011-12-31 22:21:18 CET

Severity: normal => critical

Comment 1 Manuel Hiebel 2012-01-01 00:45:02 CET
Hi, thanks for reporting this bug.
Assigned to the package maintainer.

(Please set the status to 'assigned' if you are working on it)

Keywords: (none) => Triaged
Assignee: bugsquad => supp

Manuel Hiebel 2012-01-01 00:47:24 CET

CC: (none) => bgmilne, bgmilne

Comment 2 Buchan Milne 2012-01-10 15:52:34 CET
Can you provide the logs from the LDAP server, running with at least the 'stats' logging level?
Comment 3 David Walser 2012-01-10 16:06:52 CET
When running with 'stats' logging level, I do get some log output when I do getent passwd on the client (which works).  I don't get any log output when I do automount -vdf on the client.
David Walser 2012-01-10 16:07:38 CET

CC: (none) => guillomovitch

Comment 4 David Walser 2012-01-10 16:16:18 CET
Created attachment 1357 [details]
strace output from automount -vdf command
Comment 5 David Walser 2012-01-10 16:35:32 CET
Configuring BASE and HOST in /etc/openldap/ldap.conf fixed it.  Strange.

Status: NEW => RESOLVED
Resolution: (none) => WORKSFORME


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