search for: pdb_get_pass_can_change_time

Displaying 3 results from an estimated 3 matches for "pdb_get_pass_can_change_time".

2009 Jan 08
0
Wrong behaviour in pdb_get_set.c: pdb_get_pass_can_change_time?
...e the password. So it seems there is the magic value 2147483648 (which results in around 3 o'clock in the morning of the 19th January 2038) that can be set to refuse password changes out flat. After that, back in change_oem_password it's checked if can_change_time, which has the result of pdb_get_pass_can_change_time stored, is not nil, and if the actual time is smaller than can_change_time. So there is another magic value that can prevent password changes: 0. Why are there two such values at all?! But let's continue on: I now had a look at pdb_get_can_change_time, which I think behaves improperly: First...
2002 Jul 17
0
user password expiration patch (Samba 2.2.4/2.2.5 PDC with LDAP)
...) diff -ur --new-file samba.org/source/passdb/pdb_ldap.c samba-2.2.4/source/passdb/pdb_ldap.c --- samba.org/source/passdb/pdb_ldap.c Fri May 3 03:03:26 2002 +++ samba-2.2.4/source/passdb/pdb_ldap.c Fri Jun 7 14:39:10 2002 @@ -608,7 +608,7 @@ slprintf (temp, sizeof (temp) - 1, "%li", pdb_get_pass_can_change_time(sampass)); make_a_mod(mods, ldap_state, "pwdCanChange", temp); - slprintf (temp, sizeof (temp) - 1, "%li", pdb_get_pass_must_change_time(sampass)); + slprintf (temp, sizeof (temp) - 1, "%li", time(NULL)+lp_user_password_expiration()); make_a_mod(mods, ldap_sta...
2003 Sep 23
0
[PATCH] tdb multiple format
...ame; const char *domain; @@ -1500,6 +1542,7 @@ logon_time = (uint32)pdb_get_logon_time(sampass); logoff_time = (uint32)pdb_get_logoff_time(sampass); kickoff_time = (uint32)pdb_get_kickoff_time(sampass); + lockout_time = (uint32)pdb_get_lockout_time(sampass); pass_can_change_time = (uint32)pdb_get_pass_can_change_time(sampass); pass_must_change_time = (uint32)pdb_get_pass_must_change_time(sampass); pass_last_set_time = (uint32)pdb_get_pass_last_set_time(sampass); @@ -1598,10 +1641,11 @@ if (munged_dial) munged_dial_len = strlen(munged_dial) +1; else - munged_dial_len = 0; - + munged_dial_len = 0;...