print in a human readable format when the password expired.
authorJean-François Micouleau <jfm@samba.org>
Fri, 19 Oct 2001 17:30:05 +0000 (17:30 +0000)
committerJean-François Micouleau <jfm@samba.org>
Fri, 19 Oct 2001 17:30:05 +0000 (17:30 +0000)
J.F.
(This used to be commit 255b197a5c92bfc18a567613bbffb013fd0a834d)

source3/auth/auth_sam.c
source3/smbd/auth_smbpasswd.c

index 26b9001bf6383fbf0f0aa48e057628352cd9b602..a525248461d0920cc1bd8f7ba09b0da4dacb6ddf 100644 (file)
@@ -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;
                }
        }
index 26b9001bf6383fbf0f0aa48e057628352cd9b602..a525248461d0920cc1bd8f7ba09b0da4dacb6ddf 100644 (file)
@@ -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;
                }
        }