1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

r1392: Added password history code to tdbsam backend. Not yet tested (ie. may

core dump) but compiles and links correctly. I will run the full set of
tests on the ldap sam and the tdb sam for password history tomorrow.
Jeremy.
(This used to be commit ac846420d0ef2c60d2dc71319b24401c73699249)
This commit is contained in:
Jeremy Allison 2004-07-08 06:39:22 +00:00 committed by Gerald (Jerry) Carter
parent 76cf406197
commit 10f0c34a2a
3 changed files with 419 additions and 418 deletions

View File

@ -936,7 +936,7 @@ int smbldap_search(struct smbldap_state *ldap_state,
ZERO_STRUCT(tval);
GetTimeOfDay(&tval);
tdiff = usec_time_diff(&tval, &ldap_state->last_rebind.tv_sec);
tdiff = usec_time_diff(&tval, &ldap_state->last_rebind);
tdiff /= 1000; /* Convert to milliseconds. */
sleep_time = lp_ldap_replication_sleep()-(int)tdiff;

File diff suppressed because it is too large Load Diff

View File

@ -37,7 +37,7 @@ static int tdbsam_debug_level = DBGC_ALL;
#endif
#define TDBSAM_VERSION 1 /* Most recent TDBSAM version */
#define TDBSAM_VERSION 2 /* Most recent TDBSAM version */
#define TDBSAM_VERSION_STRING "INFO/version"
#define PASSDB_FILE_NAME "passdb.tdb"
#define USERPREFIX "USER_"
@ -125,6 +125,9 @@ static BOOL tdbsam_convert(TDB_CONTEXT *pdb_tdb, tdbsamver_t from)
case 1:
ret = init_sam_from_buffer_v1(user, (uint8 *)data.dptr, data.dsize);
break;
case 2:
ret = init_sam_from_buffer_v2(user, (uint8 *)data.dptr, data.dsize);
break;
default:
/* unknown tdbsam version */
ret = False;