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.
Severity: normal => critical
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) => TriagedAssignee: bugsquad => supp
CC: (none) => bgmilne, bgmilne
Can you provide the logs from the LDAP server, running with at least the 'stats' logging level?
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.
CC: (none) => guillomovitch
Created attachment 1357 [details] strace output from automount -vdf command
Configuring BASE and HOST in /etc/openldap/ldap.conf fixed it. Strange.
Status: NEW => RESOLVEDResolution: (none) => WORKSFORME