|
|
@ -286,12 +286,17 @@ config_read_security(int file, struct config_security *sc,
|
|
|
|
sc->ts_admins = gid;
|
|
|
|
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 */
|
|
|
|
/* printing security config */
|
|
|
|
g_printf("security configuration:\r\n");
|
|
|
|
g_printf("security configuration:\r\n");
|
|
|
|
g_printf("\tAllowRootLogin: %i\r\n", sc->allow_root);
|
|
|
|
g_printf("\tAllowRootLogin: %i\r\n", sc->allow_root);
|
|
|
|
g_printf("\tMaxLoginRetry: %i\r\n", sc->login_retry);
|
|
|
|
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)
|
|
|
|
if (sc->ts_users_enable)
|
|
|
|
{
|
|
|
|
{
|
|
|
|