diff options
| author | ilsimo <ilsimo> | 2006-10-25 19:18:36 +0000 |
|---|---|---|
| committer | ilsimo <ilsimo> | 2006-10-25 19:18:36 +0000 |
| commit | 2637efd4ee30c0df358238822cac38010aad1d21 (patch) | |
| tree | 5e52255dbe3d53e4e43e1ff3088f2131452c7e46 /sesman/config.c | |
| parent | 8693ac723313468c3c40f1bf1aad7fc875af56a5 (diff) | |
| download | xrdp-proprietary-2637efd4ee30c0df358238822cac38010aad1d21.tar.gz xrdp-proprietary-2637efd4ee30c0df358238822cac38010aad1d21.zip | |
Adding MaxLoginRetry configuration option
Diffstat (limited to 'sesman/config.c')
| -rw-r--r-- | sesman/config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sesman/config.c b/sesman/config.c index 8a11ef09..2322ea67 100644 --- a/sesman/config.c +++ b/sesman/config.c @@ -228,6 +228,7 @@ config_read_security(int file, struct config_security* sc, /* setting defaults */ sc->allow_root = 0; + sc->login_retry = 3; sc->ts_users_enable = 0; sc->ts_admins_enable = 0; @@ -239,6 +240,10 @@ config_read_security(int file, struct config_security* sc, { sc->allow_root = text2bool((char*)list_get_item(param_v, i)); } + if (0 == g_strcasecmp(buf, SESMAN_CFG_SEC_LOGIN_RETRY)) + { + sc->login_retry = g_atoi((char*)list_get_item(param_v, i)); + } if (0 == g_strcasecmp(buf, SESMAN_CFG_SEC_USR_GROUP)) { if (g_getgroup_info((char*)list_get_item(param_v, i), &gid) == 0) @@ -260,6 +265,7 @@ config_read_security(int file, struct config_security* sc, /* 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); if (sc->ts_users_enable) { g_printf("\tTSUsersGroup: %i\r\n", sc->ts_users); |
