freebsd-ports/security/sssd/files/patch-src__providers__ldap__sdap_access.c
Thomas Zander 148114425f - Update to upstream version 1.11.7
- Add non-default SMB (samba) option

PR:		194155
Submitted by:	syepes@gmail.com
Reviewed by:	lukas.slebodnik@intrak.sk (maintainer), riggs
Approved by:	lukas.slebodnik@intrak.sk (maintainer)
2015-01-31 13:53:54 +00:00

29 lines
1 KiB
C

diff --git src/providers/ldap/sdap_access.c src/providers/ldap/sdap_access.c
index 880735e..d349dcf 100644
--- src/providers/ldap/sdap_access.c
+++ src/providers/ldap/sdap_access.c
@@ -499,6 +499,7 @@ static bool nds_check_expired(const char *exp_time_str)
return true;
}
+ tzset();
expire_time = mktime(&tm);
if (expire_time == -1) {
DEBUG(SSSDBG_CRIT_FAILURE,
@@ -506,13 +507,11 @@ static bool nds_check_expired(const char *exp_time_str)
return true;
}
- tzset();
- expire_time -= timezone;
now = time(NULL);
DEBUG(SSSDBG_TRACE_ALL,
- "Time info: tzname[0] [%s] tzname[1] [%s] timezone [%ld] "
- "daylight [%d] now [%ld] expire_time [%ld].\n", tzname[0],
- tzname[1], timezone, daylight, now, expire_time);
+ "Time info: tzname[0] [%s] tzname[1] [%s] "
+ "now [%ld] expire_time [%ld].\n", tzname[0],
+ tzname[1], now, expire_time);
if (difftime(now, expire_time) > 0.0) {
DEBUG(SSSDBG_CONF_SETTINGS, "NDS account expired.\n");