struct timeval tv_now;
NTTIME now;
NTTIME lastLogonTimestamp;
- NTTIME lastLogon;
mem_ctx = talloc_new(msg);
if (mem_ctx == NULL) {
}
lastLogonTimestamp =
ldb_msg_find_attr_as_int64(msg, "lastLogonTimestamp", 0);
- lastLogon = ldb_msg_find_attr_as_int64(msg, "lastLogon", 0);
DEBUG(5, ("lastLogonTimestamp is %lld\n",
(long long int)lastLogonTimestamp));
tv_now = timeval_current();
now = timeval_to_nttime(&tv_now);
- if (interactive_or_kerberos || lastLogon == 0 ||
+ if (interactive_or_kerberos ||
(badPwdCount != 0 && lockoutTime == 0)) {
ret = samdb_msg_add_int64(sam_ctx, msg_mod, msg_mod,
"lastLogon", now);