Bugzilla – Bug 117297
autofs ldap failure to separate on colon breaks compatibility
Last modified: 2006-02-01 16:41:38 UTC
This was also a problem in SUSE 9.3. If you have an an entries like in LDAP for auto.master: dn: nisMapName=auto.master,dc=canadaequity,dc=com objectClass: top objectClass: nisMap nisMapName: auto.master dn: cn=/mounts/tea,nisMapName=auto.master,dc=canadaequity,dc=com objectClass: top objectClass: nisObject cn: /mounts/tea nisMapName: auto.master nisMapEntry: ldap:nisMapName=auto.tea,dc=canadaequity,dc=com You will the SUSE autofs does not break on the ldap:nisMapName=auto.tea,dc=canadaequity,dc=com part of each nisMapEntry so when you start the automounter you get something like this in /var/log/messages: linux automount[18208]: cannot open lookup module ldap:nisMapName=auto.tea (/usr/lib/autofs/lookup_ldap:nisMapName=auto.tea.so: cannot open shared object file: No such file or directory) The status on autofs will show: /usr/sbin/automount /mounts/tea ldap:nisMapName=auto.tea,dc=canadaequity,dc=com "" Instead of what it should look like: /usr/sbin/automount /mounts/tea ldap nisMapName=auto.tea,dc=canadaequity,dc=com The work-around is to change the nisMapEntry lines to have a space instead of a colon like this: nisMapEntry: ldap nisMapName=auto.tea,dc=canadaequity,dc=com However, doing so seems to break support for autofs on other systems that expect the colon (so far seen with RHEL 4 SP1). I will attach a full ldif of the broken configuration that works for other clients, but not for SUSE.
Created attachment 50063 [details] ldif of a broken under SUSE but working under Red Hat autofs ldap entries
Created attachment 50065 [details] ldif of work-around so we can have same entries for both SUSE and Red Hat This is ugly, but allows both the SUSE and Red Hat clients to mount the same directories. This also demonstrates the subtle difference. This LDIF is only of the auto.master entries, as nothing else changes.
Ralf, please take care
i have the same problem using opensuse 10.0, with debian woody and sarge the automout maps (similar to them mentioned in the first post) are working without problems. as a work-around i modified the function "getmounts_ldap()" in /etc/init.d/autofs (added the line starting with "+"): ------- # # Get list of ldap mounts. # function getmounts_ldap() { /usr/lib/autofs/autofs-ldap-auto-master | ( while read dir prog map; do + prog=$( echo "$prog" | sed "s/:/ /" ) echo "$DAEMON $daemonoptions $dir $prog \"$map\"" done ) } ------ it's not "nice" but it's working, a fix would be much appreciated!
Fixed for 10.1.