Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 35 by
glanzm...@gmail.com: When creating shadow the password
field in passwd should be set to x
https://code.google.com/p/nsscache/issues/detail?id=35
What steps will reproduce the problem?
1. /etc/nsscache.conf
[DEFAULT]
source = ldap
cache = files
maps = passwd, group, shadow, sshkey
timestamp_dir = /var/lib/nsscache
ldap_uri = ldap://ldap1
ldap_base = dc=domain,dc=de
ldap_filter = (objectclass=posixAccount)
ldap_bind_dn = "cn=Manager,dc=domain,dc=de"
ldap_bind_password = "password"
nssdb_dir = /var/lib/misc
files_dir = /etc
files_cache_filename_suffix = cache
[passwd]
ldap_base = ou=People,dc=domain,dc=de
[group]
ldap_base = ou=Groups,dc=domain,dc=de
ldap_filter = (objectclass=posixGroup)
[shadow]
ldap_base = ou=People,dc=domain,dc=de
ldap_filter = (objectclass=shadowAccount)
[sshkey]
ldap_base = ou=People,dc=domain,dc=de
ldap_filter = (objectclass=ldapPublicKey)
2. Run nsscache update -f
What is the expected output? What do you see instead?
Expected:
(mm1) [~] getent passwd thglanzm
thglanzm:x:10074:10074:Thomas Glanzmann:/home/thglanzm:/bin/bash
Instead:
(mm1) [~] getent passwd thglanzm
thglanzm:*:10074:10074:Thomas Glanzmann:/home/thglanzm:/bin/bash
What version of the product are you using? On what operating system?
The issue happens only with git head, but not with the last release
because there the passwd password field was hard coded to 'x'. But that has
changed.
Please provide any additional information below.
I wrote a small patch which sets the password field in the passwd to 'x'
with a userPassword exists and begins with {crypt}
Attachments:
0001-Set-the-password-field-of-passwd-to-x-if-userPasswor.patch 1.7 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings