[dev] [slock] Issue with shadow passwords and NIS

From: Ben Secrest <blsecres_AT_gmail.com>
Date: Fri, 6 Apr 2012 23:45:41 -0400

I've run into an issue with slock on a system with both local and
remote users. The default config works with the local users because
the getpw() function queries password information though NSS and then
the shadow system. In the case of remote users, the appropriate
information is retrieved from NIS but slock dies when no information
is retrieved from the shadow system.

I'm not sure the best way to differentiate between the shadow vs. NIS
situation. One guess is that when shadow information is present, the
pw_passwd field of the passwd struct will contain 'x', '*', or
whatever the system uses as a placeholder in /etc/passwd.

Received on Sat Apr 07 2012 - 05:45:41 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 07 2012 - 05:48:08 CEST