diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2011-11-30 21:51:06 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2011-11-30 21:51:06 +0000 |
commit | 57ee450dcf199e05bf774f08c98a7858035deae3 (patch) | |
tree | 254e964fff060af3642c3fa145eda73581eff0dd | |
parent | fd57baf6917a6b4e5754de3eb6e00126f2f1fb6c (diff) |
ensure that /etc/nsswitch.conf is only loaded once after start-up
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1557 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r-- | nslcd/passwd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nslcd/passwd.c b/nslcd/passwd.c index 9eba10c..73dd9f5 100644 --- a/nslcd/passwd.c +++ b/nslcd/passwd.c @@ -424,8 +424,9 @@ static inline int shadow_uses_ldap(void) { if (cached_shadow_uses_ldap==CACHED_UNKNOWN) { - log_log(LOG_INFO,"(re)loading %s",NSSWITCH_FILE); /* FIXME: check if this is correct */ + log_log(LOG_INFO,"(re)loading %s",NSSWITCH_FILE); cached_shadow_uses_ldap=nsswitch_db_uses_ldap(NSSWITCH_FILE,"shadow"); + cached_shadow_lastcheck=time(NULL); } return cached_shadow_uses_ldap; } |