summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2004-12-10 10:42:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:35 -0500
commita03aa0956813998dbbc3c68f6bc5214fd720cdb2 (patch)
treeda3fb3775d7c8797a6f5835baf0c7ab7c87c81ab /source
parent7256771dd01029ed103896c0825bb91b88757015 (diff)
downloadsamba-a03aa0956813998dbbc3c68f6bc5214fd720cdb2.tar.gz
samba-a03aa0956813998dbbc3c68f6bc5214fd720cdb2.tar.xz
samba-a03aa0956813998dbbc3c68f6bc5214fd720cdb2.zip
r4130: add bad_password_count and logon_count to vampire (inspired by a patch
from Lars Mueller <lmuelle@suse.de>), just for completeness. Note that though we have logon_count implemented in all pdb-backends but never (for good reason!) update the counter. Guenther
Diffstat (limited to 'source')
-rw-r--r--source/utils/net_rpc_samsync.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/utils/net_rpc_samsync.c b/source/utils/net_rpc_samsync.c
index e5778dfc7c3..d7af528ff1c 100644
--- a/source/utils/net_rpc_samsync.c
+++ b/source/utils/net_rpc_samsync.c
@@ -355,8 +355,11 @@ sam_account_from_delta(SAM_ACCOUNT *account, SAM_ACCOUNT_INFO *delta)
pdb_set_logon_divs(account, delta->logon_divs, PDB_CHANGED);
/* TODO: logon hours */
- /* TODO: bad password count */
- /* TODO: logon count */
+ if (pdb_get_bad_password_count(account) != delta->bad_pwd_count)
+ pdb_set_bad_password_count(account, delta->bad_pwd_count, PDB_CHANGED);
+
+ if (pdb_get_logon_count(account) != delta->logon_count)
+ pdb_set_logon_count(account, delta->logon_count, PDB_CHANGED);
if (!nt_time_is_zero(&delta->pwd_last_set_time)) {
unix_time = nt_time_to_unix(&delta->pwd_last_set_time);