diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-08-31 12:28:55 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-09-02 13:37:08 +1000 |
commit | cecc58e0582a8574f239a26e354c00a6d570c3d5 (patch) | |
tree | 2c03dcd3e6121cb73fac476181e94374466e4809 /source4 | |
parent | b7060c7c5c78d7a7416707c6217fe163c1183e2d (diff) | |
download | samba-cecc58e0582a8574f239a26e354c00a6d570c3d5.tar.gz samba-cecc58e0582a8574f239a26e354c00a6d570c3d5.tar.bz2 samba-cecc58e0582a8574f239a26e354c00a6d570c3d5.zip |
s4-auth: make the disabled acct messages a bit less verbose
raise the debug level
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/auth/sam.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/auth/sam.c b/source4/auth/sam.c index 0bb6bd89a1..6bf1d5f9e3 100644 --- a/source4/auth/sam.c +++ b/source4/auth/sam.c @@ -178,20 +178,20 @@ _PUBLIC_ NTSTATUS authsam_account_ok(TALLOC_CTX *mem_ctx, /* Quit if the account was disabled. */ if (acct_flags & ACB_DISABLED) { - DEBUG(1,("authsam_account_ok: Account for user '%s' was disabled.\n", name_for_logs)); + DEBUG(2,("authsam_account_ok: Account for user '%s' was disabled.\n", name_for_logs)); return NT_STATUS_ACCOUNT_DISABLED; } /* Quit if the account was locked out. */ if (acct_flags & ACB_AUTOLOCK) { - DEBUG(1,("authsam_account_ok: Account for user %s was locked out.\n", name_for_logs)); + DEBUG(2,("authsam_account_ok: Account for user %s was locked out.\n", name_for_logs)); return NT_STATUS_ACCOUNT_LOCKED_OUT; } /* Test account expire time */ unix_to_nt_time(&now, time(NULL)); if (now > acct_expiry) { - DEBUG(1,("authsam_account_ok: Account for user '%s' has expired.\n", name_for_logs)); + DEBUG(2,("authsam_account_ok: Account for user '%s' has expired.\n", name_for_logs)); DEBUG(3,("authsam_account_ok: Account expired at '%s'.\n", nt_time_string(mem_ctx, acct_expiry))); return NT_STATUS_ACCOUNT_EXPIRED; @@ -199,16 +199,16 @@ _PUBLIC_ NTSTATUS authsam_account_ok(TALLOC_CTX *mem_ctx, /* check for immediate expiry "must change at next logon" (but not if this is a password change request) */ if ((must_change_time == 0) && !password_change) { - DEBUG(1,("sam_account_ok: Account for user '%s' password must change!.\n", + DEBUG(2,("sam_account_ok: Account for user '%s' password must change!.\n", name_for_logs)); return NT_STATUS_PASSWORD_MUST_CHANGE; } /* check for expired password (but not if this is a password change request) */ if ((must_change_time < now) && !password_change) { - DEBUG(1,("sam_account_ok: Account for user '%s' password expired!.\n", + DEBUG(2,("sam_account_ok: Account for user '%s' password expired!.\n", name_for_logs)); - DEBUG(1,("sam_account_ok: Password expired at '%s' unix time.\n", + DEBUG(2,("sam_account_ok: Password expired at '%s' unix time.\n", nt_time_string(mem_ctx, must_change_time))); return NT_STATUS_PASSWORD_EXPIRED; } |