search for: get_time_t_max

Displaying 2 results from an estimated 2 matches for "get_time_t_max".

2009 Jan 08
0
Wrong behaviour in pdb_get_set.c: pdb_get_pass_can_change_time?
...'s password from a windows box. And it's there that some strange things start to happen: It calls pdb_gat_pass_can_change_time to get the time, but before this time is checked, pdb_get_pass_can_change (passdb/pdb_get_set.c) is called. There, if sampass->pass_can_change_time is equal to get_time_t_max() (which is I think the maximum 32bit number, correct me if I'm wrong) and the time the password was last set (sampass->pass_last_set_time) is not nil, it refuses to change the password. So it seems there is the magic value 2147483648 (which results in around 3 o'clock in the morning of...
2003 Sep 23
0
[PATCH] tdb multiple format
...e/passdb/passdb.c Tue Sep 23 16:55:46 2003 @@ -78,6 +78,7 @@ user->private.pass_can_change_time = (time_t)0; user->private.logoff_time = user->private.kickoff_time = + user->private.lockout_time = (time_t)0; user->private.pass_must_change_time = get_time_t_max(); user->private.unknown_3 = 0x00ffffff; /* don't know */ user->private.logon_divs = 168; /* hours per week */ @@ -85,6 +86,7 @@ memset(user->private.hours, 0xff, user->private.hours_len); /* available at all hours */ user->private.unknown_5 = 0x00000000; /* don't k...