summaryrefslogtreecommitdiffstats
path: root/sesman/verify_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'sesman/verify_user.c')
-rw-r--r--sesman/verify_user.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sesman/verify_user.c b/sesman/verify_user.c
index f40a9f05..b783724c 100644
--- a/sesman/verify_user.c
+++ b/sesman/verify_user.c
@@ -73,7 +73,7 @@ auth_userpass(char* user, char* pass)
}
if (1==auth_account_disabled(stp))
{
- log_message(LOG_LEVEL_INFO, "account %s is disabled", user);
+ log_message(&(g_cfg.log), LOG_LEVEL_INFO, "account %s is disabled", user);
return 0;
}
g_strncpy(hash, stp->sp_pwdp, 34);
@@ -306,13 +306,13 @@ auth_account_disabled(struct spwd* stp)
today=g_time1()/SECS_PER_DAY;
- LOG_DBG("last %d",stp->sp_lstchg);
- LOG_DBG("min %d",stp->sp_min);
- LOG_DBG("max %d",stp->sp_max);
- LOG_DBG("inact %d",stp->sp_inact);
- LOG_DBG("warn %d",stp->sp_warn);
- LOG_DBG("expire %d",stp->sp_expire);
- LOG_DBG("today %d",today);
+ LOG_DBG(&(g_cfg.log), "last %d",stp->sp_lstchg);
+ LOG_DBG(&(g_cfg.log), "min %d",stp->sp_min);
+ LOG_DBG(&(g_cfg.log), "max %d",stp->sp_max);
+ LOG_DBG(&(g_cfg.log), "inact %d",stp->sp_inact);
+ LOG_DBG(&(g_cfg.log), "warn %d",stp->sp_warn);
+ LOG_DBG(&(g_cfg.log), "expire %d",stp->sp_expire);
+ LOG_DBG(&(g_cfg.log), "today %d",today);
if ((stp->sp_expire != -1) && (today >= stp->sp_expire))
{