summaryrefslogtreecommitdiff
path: root/nslcd
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-01-14 22:15:01 +0000
committerArthur de Jong <arthur@arthurdejong.org>2013-01-14 22:15:01 +0000
commit2caeef4254d1e6dfb42863754cfd5479a6f849c2 (patch)
tree8f124afd5c52dd127a28453693d671cb02c9f3b9 /nslcd
parent4197ec3fa13ea9c3ad85ae29234b7566e9a61661 (diff)
support children search scope for systems that have it
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1917 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd')
-rw-r--r--nslcd/cfg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nslcd/cfg.c b/nslcd/cfg.c
index bc2813b..2f7cecf 100644
--- a/nslcd/cfg.c
+++ b/nslcd/cfg.c
@@ -514,6 +514,10 @@ static void handle_scope(const char *filename, int lnr,
*var = LDAP_SCOPE_ONELEVEL;
else if (strcasecmp(token, "base") == 0)
*var = LDAP_SCOPE_BASE;
+#ifdef LDAP_SCOPE_CHILDREN
+ else if (strcasecmp(token, "children") == 0)
+ *var = LDAP_SCOPE_CHILDREN;
+#endif /* LDAP_SCOPE_CHILDREN */
else
{
log_log(LOG_ERR, "%s:%d: not a scope argument: '%s'",