]> git.sur5r.net Git - openldap/commitdiff
add 'children_cond' config statement
authorPierangelo Masarati <ando@openldap.org>
Sat, 31 Aug 2002 10:36:16 +0000 (10:36 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 31 Aug 2002 10:36:16 +0000 (10:36 +0000)
servers/slapd/back-sql/config.c

index 3472496ae66361e9b3407fa2f080acc2f69314c0..e26c6b94891fedcce8947c83f2c6bd96c302c64b 100644 (file)
@@ -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,