]> git.sur5r.net Git - openldap/commitdiff
Hide subtree delete control
authorKurt Zeilenga <kurt@openldap.org>
Thu, 20 Jan 2005 17:54:04 +0000 (17:54 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 20 Jan 2005 17:54:04 +0000 (17:54 +0000)
servers/slapd/controls.c
servers/slapd/slap.h

index c7f88901eaca2a9ecc2ce1bfe3564c557ae3ab16..8d0114917245a9cce44f0e43a217d687f8d4ee76 100644 (file)
@@ -37,10 +37,7 @@ static SLAP_CTRL_PARSE_FN parsePermissiveModify;
 static SLAP_CTRL_PARSE_FN parseDomainScope;
 static SLAP_CTRL_PARSE_FN parseTreeDelete;
 static SLAP_CTRL_PARSE_FN parseSearchOptions;
-
-#ifdef LDAP_CONTROL_SUBENTRIES
 static SLAP_CTRL_PARSE_FN parseSubentries;
-#endif
 
 #undef sc_mask /* avoid conflict with Irix 6.5 <sys/signal.h> */
 
@@ -127,10 +124,10 @@ static struct slap_control control_defs[] = {
                SLAP_CTRL_MODIFY, NULL,
                parsePermissiveModify, LDAP_SLIST_ENTRY_INITIALIZER(next) },
 #endif
-#ifdef LDAP_CONTROL_X_TREE_DELETE
+#ifdef SLAP_CONTROL_X_TREE_DELETE
        { LDAP_CONTROL_X_TREE_DELETE,
                (int)offsetof(struct slap_control_ids, sc_treeDelete),
-               SLAP_CTRL_DELETE, NULL,
+               SLAP_CTRL_HIDE|SLAP_CTRL_DELETE, NULL,
                parseTreeDelete, LDAP_SLIST_ENTRY_INITIALIZER(next) },
 #endif
 #ifdef LDAP_CONTORL_X_SEARCH_OPTIONS
@@ -1306,7 +1303,10 @@ static int parseSearchOptions (
        }
 
        if ( search_flags & ~(LDAP_SEARCH_FLAG_DOMAIN_SCOPE) ) {
-               /* Other search flags not recognised so far */
+               /* Other search flags not recognised so far,
+                * including:
+                *              LDAP_SEARCH_FLAG_PHANTOM_ROOM
+                */
                rs->sr_text = "searchOptions contained unrecongized flag";
                return LDAP_UNWILLING_TO_PERFORM;
        }
index d5b3a6c3ec5f11ce6c80e73bfc4fe4269a3a6e83..5cc6f3274ad3497936d451c5e6f22539d40e6b32 100644 (file)
@@ -64,7 +64,8 @@ LDAP_BEGIN_DECL
 #define LDAP_COMP_MATCH                        /* experimental */
 #define LDAP_DYNAMIC_OBJECTS
 #define LDAP_SYNC_TIMESTAMP
-#define LDAP_COLLECTIVE_ATTRIBUTES /* not yet implemented */
+#define LDAP_COLLECTIVE_ATTRIBUTES
+#define SLAP_CONTROL_X_TREE_DELETE LDAP_CONTROL_X_TREE_DELETE
 #endif
 
 #if defined(LDAP_DEVEL) && defined(ENABLE_REWRITE)