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