Bug 199188
| Summary: | OpenLDAP with Linux Authentication - shadowMax variable not handled properly | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 4 | Reporter: | Michael Romero <mike.l.romero> |
| Component: | nss_ldap | Assignee: | Nalin Dahyabhai <nalin> |
| Status: | CLOSED NOTABUG | QA Contact: | Jay Turner <jturner> |
| Severity: | urgent | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.0 | CC: | jplans, srevivo |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2006-07-17 22:52:10 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: | |||
|
Description
Michael Romero
2006-07-17 20:47:48 UTC
Can you post the output of "getent shadow username" for an affected user? This sounds as though pam_ldap isn't able to read all of the details from the directory via nss_ldap, and is behaving strangely as a result... hehe you were onto something when you asked that.. I hadn't used that "getent shadow <username>" command before and when I ran it initially, I got back.. <username>:x::0:13348:7:::0 I saw that it was only seeing the shadowMax value and not shadowLastChange. I then realized that I set the userPassword and shadowLastChange values up with a special ACL. I had... access to attrs=userPassword,shadowLastChange by self write by anonymous auth by * none access to * by * read This allowed the passwd command to write to the shadowLastChange attribute whenever a password was changed but it turns out was blocking the system from reading that value if it wasn't that user.. I changed it to this.. access to attrs=userPassword by self write by anonymous auth by * none access to attrs=shadowLastChange by self write by * read access to * by * read The output of "getent shadow <username>" now showed up with... <username>:x:13317:0:30:7:::0 Tested expiration and it works as expected. Thanks :) Excellent! I'll mark this as not-a-bug then. Thanks! |