This is the first step to return the password history
in order to avoid badPwdCount updates for failing
pre-authentication with passwords from the recent history.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14054
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
krb5_free_principal(NULL, s->principal);
sdb_keys_free(&s->keys);
+ sdb_keys_free(&s->old_keys);
+ sdb_keys_free(&s->older_keys);
krb5_free_principal(NULL, s->created_by.principal);
if (s->modified_by) {
krb5_free_principal(NULL, s->modified_by->principal);
krb5_principal principal;
unsigned int kvno;
struct sdb_keys keys;
+ struct sdb_keys old_keys;
+ struct sdb_keys older_keys;
struct sdb_event created_by;
struct sdb_event *modified_by;
time_t *valid_start;