summaryrefslogtreecommitdiffstats
path: root/sesman/access.c
diff options
context:
space:
mode:
authorilsimo <ilsimo>2008-02-20 22:02:24 +0000
committerilsimo <ilsimo>2008-02-20 22:02:24 +0000
commit4c9d3862e55ab5d6fa734549478bb0a00be9f7ed (patch)
tree2efde9a8872ed90ea14521702614768aaf0b765b /sesman/access.c
parent8f0045c19b03d5c9a0baea6b72037ec226db8343 (diff)
downloadxrdp-proprietary-4c9d3862e55ab5d6fa734549478bb0a00be9f7ed.tar.gz
xrdp-proprietary-4c9d3862e55ab5d6fa734549478bb0a00be9f7ed.zip
updating logging subsystem
Diffstat (limited to 'sesman/access.c')
-rw-r--r--sesman/access.c10
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;
}