summaryrefslogtreecommitdiffstats
path: root/src/responder/secrets/secsrv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/responder/secrets/secsrv.c')
-rw-r--r--src/responder/secrets/secsrv.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/responder/secrets/secsrv.c b/src/responder/secrets/secsrv.c
index eb194a179..4bbc1dc90 100644
--- a/src/responder/secrets/secsrv.c
+++ b/src/responder/secrets/secsrv.c
@@ -29,6 +29,7 @@
#include "resolv/async_resolv.h"
#define DEFAULT_SEC_FD_LIMIT 2048
+#define DEFAULT_SEC_CONTAINERS_NEST_LEVEL 4
static int sec_get_config(struct sec_ctx *sctx)
{
@@ -45,6 +46,18 @@ static int sec_get_config(struct sec_ctx *sctx)
goto fail;
}
+ ret = confdb_get_int(sctx->rctx->cdb,
+ sctx->rctx->confdb_service_path,
+ CONFDB_SEC_CONTAINERS_NEST_LEVEL,
+ DEFAULT_SEC_CONTAINERS_NEST_LEVEL,
+ &sctx->containers_nest_level);
+
+ if (ret != EOK) {
+ DEBUG(SSSDBG_FATAL_FAILURE,
+ "Failed to get containers' maximum depth\n");
+ goto fail;
+ }
+
ret = confdb_get_int(sctx->rctx->cdb, sctx->rctx->confdb_service_path,
CONFDB_RESPONDER_CLI_IDLE_TIMEOUT,
CONFDB_RESPONDER_CLI_IDLE_DEFAULT_TIMEOUT,