Description of problem: autofs can't use an automount LDAP DN using the l (localityName) attribute. With Entry in /etc/auto.master: /home ldap:automountMapName=auto_home,l=sanjose,ou=labs,dc=example,dc=com Version-Release number of selected component (if applicable): autofs-5.0.1-0.rc2.102 How reproducible: Always Steps to Reproduce: 1. Add an automount map to LDAP using the localityName attribute 2. Point an entry in /etc/auto.master to your DN Additional info: With LOGGING set to debug, I see the following in /var/log/messages regarding the LDAP DN with localityName : Feb 18 00:18:03 redhat automount[2838]: lookup_nss_read_master: reading master files auto.master Feb 18 00:18:03 redhat automount[2838]: parse_init: parse(sun): init gathered global options: (null) Feb 18 00:18:03 redhat automount[2838]: lookup_read_master: lookup(file): read entry /misc Feb 18 00:18:03 redhat automount[2838]: lookup_read_master: lookup(file): read entry /net Feb 18 00:18:03 redhat automount[2838]: lookup_read_master: lookup(file): read entry /home Feb 18 00:18:03 redhat automount[2838]: syntax error in map near [ l ]
I have built a package with a patch that might resolve this issue. It can be found at: http://people.redhat.com/~ikent/autofs-5.0.1-0.rc2.140.bz566481.1.el5 I haven't tested the change at all but if you want to test it out on a test machine please do, otherwise you'll need to wait until I get time to setup a test environment and do some tests.
(In reply to comment #1) > I have built a package with a patch that might resolve this > issue. It can be found at: > http://people.redhat.com/~ikent/autofs-5.0.1-0.rc2.140.bz566481.1.el5 The test RPM works in my test environment. The syntax error is gone and I now have a working automounter - thanks!
(In reply to comment #2) > (In reply to comment #1) > > I have built a package with a patch that might resolve this > > issue. It can be found at: > > http://people.redhat.com/~ikent/autofs-5.0.1-0.rc2.140.bz566481.1.el5 > > The test RPM works in my test environment. The syntax error is gone and I now > have a working automounter - thanks! Thanks, I'll do some testing, when I get a chance, to see if it breaks anything else.
Created attachment 402177 [details] Patch - add locality as valid ldap master map attribute
Created attachment 402178 [details] Patch - add locality as valid ldap master map attribute fix
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
Ian, seems like this one should be fixed? Did this land in RHEL5? Thanks!
(In reply to comment #8) > Ian, seems like this one should be fixed? Did this land in RHEL5? Yes, should be included in 5.7.
This bug is verified in autotest(https://beaker.engineering.redhat.com/jobs/81648) , which uses distro(RHEL5.7-Server-20110504.0.n).
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-1079.html