summaryrefslogtreecommitdiffstats
path: root/sesman/config.c
diff options
context:
space:
mode:
authorArvidNorr <norrarvid@gmail.com>2013-01-31 15:19:58 +0100
committerArvidNorr <norrarvid@gmail.com>2013-01-31 15:19:58 +0100
commit876f356dad387d3d9b1a8382c0115857ca605e54 (patch)
treea05629ec327bfcf56841609c66b992ddee9d77b1 /sesman/config.c
parent0770f217fa314cd0ae2546e2b758fbbaa3e07e09 (diff)
downloadxrdp-proprietary-876f356dad387d3d9b1a8382c0115857ca605e54.tar.gz
xrdp-proprietary-876f356dad387d3d9b1a8382c0115857ca605e54.zip
deny access if group is undefined
Diffstat (limited to 'sesman/config.c')
-rw-r--r--sesman/config.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sesman/config.c b/sesman/config.c
index 9938249f..e2131c14 100644
--- a/sesman/config.c
+++ b/sesman/config.c
@@ -286,13 +286,18 @@ config_read_security(int file, struct config_security *sc,
sc->ts_admins = gid;
}
}
+ if (0 == g_strcasecmp(buf, SESMAN_CFG_SEC_ALWAYSGROUPCHECK))
+ {
+ sc->ts_always_group_check = text2bool((char *)list_get_item(param_v, i));
+ }
}
/* printing security config */
g_printf("security configuration:\r\n");
g_printf("\tAllowRootLogin: %i\r\n", sc->allow_root);
g_printf("\tMaxLoginRetry: %i\r\n", sc->login_retry);
-
+ g_printf("\tAlwaysGroupCheck: %i\r\n", sc->ts_always_group_check);
+
if (sc->ts_users_enable)
{
g_printf("\tTSUsersGroup: %i\r\n", sc->ts_users);