summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2001-10-19 17:30:05 +0000
committerJean-François Micouleau <jfm@samba.org>2001-10-19 17:30:05 +0000
commit255b197a5c92bfc18a567613bbffb013fd0a834d (patch)
tree509dd428282667075cf8b0e6d051425d31951c9e /source
parent53247f5880150ed7ee831d68a5c0fdbcb1422194 (diff)
downloadsamba-255b197a5c92bfc18a567613bbffb013fd0a834d.tar.gz
samba-255b197a5c92bfc18a567613bbffb013fd0a834d.tar.xz
samba-255b197a5c92bfc18a567613bbffb013fd0a834d.zip
print in a human readable format when the password expired.
J.F.
Diffstat (limited to 'source')
-rw-r--r--source/auth/auth_sam.c2
-rw-r--r--source/smbd/auth_smbpasswd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/auth/auth_sam.c b/source/auth/auth_sam.c
index 26b9001bf63..a525248461d 100644
--- a/source/auth/auth_sam.c
+++ b/source/auth/auth_sam.c
@@ -260,7 +260,7 @@ NTSTATUS sam_account_ok(SAM_ACCOUNT *sampass, const auth_usersupplied_info *user
/* check for expired password */
if (must_change_time < time(NULL) && must_change_time != 0) {
DEBUG(1,("Account for user '%s' password expired!.\n", sampass->username));
- DEBUG(1,("Password expired at '%ld' unix time.\n", (long)must_change_time));
+ DEBUG(1,("Password expired at '%s' (%ld) unix time.\n", http_timestring(must_change_time), (long)must_change_time));
return NT_STATUS_PASSWORD_EXPIRED;
}
}
diff --git a/source/smbd/auth_smbpasswd.c b/source/smbd/auth_smbpasswd.c
index 26b9001bf63..a525248461d 100644
--- a/source/smbd/auth_smbpasswd.c
+++ b/source/smbd/auth_smbpasswd.c
@@ -260,7 +260,7 @@ NTSTATUS sam_account_ok(SAM_ACCOUNT *sampass, const auth_usersupplied_info *user
/* check for expired password */
if (must_change_time < time(NULL) && must_change_time != 0) {
DEBUG(1,("Account for user '%s' password expired!.\n", sampass->username));
- DEBUG(1,("Password expired at '%ld' unix time.\n", (long)must_change_time));
+ DEBUG(1,("Password expired at '%s' (%ld) unix time.\n", http_timestring(must_change_time), (long)must_change_time));
return NT_STATUS_PASSWORD_EXPIRED;
}
}