Bug 566481

Summary: RFE: Add locality LDAP attribute to
Product: Red Hat Enterprise Linux 5 Reporter: David Cole <blimus>
Component: autofsAssignee: Ian Kent <ikent>
Status: CLOSED ERRATA QA Contact: Jian Li <jiali>
Severity: low Docs Contact:
Priority: low    
Version: 5.3CC: blimus, ikent, jiali, nmurray, qcai, rwheeler
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: autofs-5.0.1-0.rc2.150.el5 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 574303 577099 (view as bug list) Environment:
Last Closed: 2011-07-21 08:43:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 577099    
Attachments:
Description Flags
Patch - add locality as valid ldap master map attribute
none
Patch - add locality as valid ldap master map attribute fix none

Description David Cole 2010-02-18 15:30:46 UTC
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 ]

Comment 1 Ian Kent 2010-02-25 15:48:34 UTC
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.

Comment 2 David Cole 2010-02-25 17:40:14 UTC
(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!

Comment 3 Ian Kent 2010-02-26 01:57:33 UTC
(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.

Comment 4 Ian Kent 2010-03-24 02:16:10 UTC
Created attachment 402177 [details]
Patch - add locality as valid ldap master map attribute

Comment 5 Ian Kent 2010-03-24 02:21:22 UTC
Created attachment 402178 [details]
Patch - add locality as valid ldap master map attribute fix

Comment 7 RHEL Program Management 2010-08-09 18:28:30 UTC
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.

Comment 8 Ric Wheeler 2011-02-01 18:14:05 UTC
Ian, seems like this one should be fixed? Did this land in RHEL5?

Thanks!

Comment 9 Ian Kent 2011-02-02 02:35:03 UTC
(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.

Comment 14 Jian Li 2011-05-06 02:07:32 UTC
This bug is verified in autotest(https://beaker.engineering.redhat.com/jobs/81648) , which uses distro(RHEL5.7-Server-20110504.0.n).

Comment 15 errata-xmlrpc 2011-07-21 08:43:06 UTC
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

Comment 16 errata-xmlrpc 2011-07-21 12:33:03 UTC
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