From: Pierangelo Masarati Date: Sat, 31 Aug 2002 10:36:16 +0000 (+0000) Subject: add 'children_cond' config statement X-Git-Tag: NO_SLAP_OP_BLOCKS~1072 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=685363e880d686ceb75c8203a7c249d0d63ba43e;p=openldap add 'children_cond' config statement --- diff --git a/servers/slapd/back-sql/config.c b/servers/slapd/back-sql/config.c index 3472496ae6..e26c6b9489 100644 --- a/servers/slapd/back-sql/config.c +++ b/servers/slapd/back-sql/config.c @@ -114,6 +114,19 @@ backsql_db_config( Debug( LDAP_DEBUG_TRACE, "<==backsql_db_config(): " "subtree_cond=%s\n", si->subtree_cond.bv_val, 0, 0 ); + } else if ( !strcasecmp( argv[ 0 ], "children_cond" ) ) { + if ( argc < 2 ) { + Debug( LDAP_DEBUG_TRACE, + "<==backsql_db_config (%s line %d): " + "missing SQL condition " + "in \"children_cond\" directive\n", + fname, lineno, 0 ); + return 1; + } + ber_str2bv( argv[ 1 ], 0, 1, &si->children_cond ); + Debug( LDAP_DEBUG_TRACE, "<==backsql_db_config(): " + "subtree_cond=%s\n", si->children_cond.bv_val, 0, 0 ); + } else if ( !strcasecmp( argv[ 0 ], "oc_query" ) ) { if ( argc < 2 ) { Debug( LDAP_DEBUG_TRACE,