diff options
Diffstat (limited to 'sesman/access.c')
-rw-r--r-- | sesman/access.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sesman/access.c b/sesman/access.c index 0e50bea7..e5ce2f13 100644 --- a/sesman/access.c +++ b/sesman/access.c @@ -38,21 +38,21 @@ access_login_allowed(char* user) if ((0 == g_strncmp(user, "root", 5)) && (0 == g_cfg.sec.allow_root)) { - log_message(LOG_LEVEL_WARNING, + log_message(&(g_cfg.log), LOG_LEVEL_WARNING, "ROOT login attempted, but root login is disabled"); return 0; } if (0 == g_cfg.sec.ts_users_enable) { - LOG_DBG("Terminal Server Users group is disabled, allowing authentication", + LOG_DBG(&(g_cfg.log), "Terminal Server Users group is disabled, allowing authentication", 1); return 1; } if (0 != g_getuser_info(user, &gid, 0, 0, 0, 0)) { - log_message(LOG_LEVEL_ERROR, "Cannot read user info! - login denied"); + log_message(&(g_cfg.log), LOG_LEVEL_ERROR, "Cannot read user info! - login denied"); return 0; } @@ -64,7 +64,7 @@ access_login_allowed(char* user) if (0 != g_check_user_in_group(user, g_cfg.sec.ts_users, &ok)) { - log_message(LOG_LEVEL_ERROR, "Cannot read group info! - login denied"); + log_message(&(g_cfg.log), LOG_LEVEL_ERROR, "Cannot read group info! - login denied"); return 0; } @@ -73,7 +73,7 @@ access_login_allowed(char* user) return 1; } - log_message(LOG_LEVEL_INFO, "login denied for user %s", user); + log_message(&(g_cfg.log), LOG_LEVEL_INFO, "login denied for user %s", user); return 0; } |