s4-dsdb: added DSDB_MODIFY_RELAX flag to the dsdb_module_*() calls
authorAndrew Tridgell <tridge@samba.org>
Sat, 19 Dec 2009 09:56:41 +0000 (20:56 +1100)
committerAndrew Tridgell <tridge@samba.org>
Mon, 21 Dec 2009 12:41:06 +0000 (23:41 +1100)
source4/dsdb/samdb/ldb_modules/util.c
source4/dsdb/samdb/ldb_modules/util.h

index acc1c01959039932773bd06cbb6e7d164bb43ce2..8503584ea6e13f6dabcce3815118a45c686e808c 100644 (file)
@@ -87,6 +87,13 @@ int dsdb_request_add_controls(struct ldb_module *module, struct ldb_request *req
                }
        }
 
+       if (dsdb_flags & DSDB_MODIFY_RELAX) {
+               ret = ldb_request_add_control(req, LDB_CONTROL_RELAX_OID, false, NULL);
+               if (ret != LDB_SUCCESS) {
+                       return ret;
+               }
+       }
+
        return LDB_SUCCESS;
 }
 
index 41ed883dc26cda6aecf7e3dae51cbde128587189..cc184eee8f26a8b0337b8f4e9781f8c90e011192 100644 (file)
@@ -28,3 +28,4 @@ struct GUID;
 #define DSDB_SEARCH_SHOW_DN_IN_STORAGE_FORMAT 0x0004
 #define DSDB_SEARCH_REVEAL_INTERNALS          0x0008
 #define DSDB_SEARCH_SHOW_EXTENDED_DN          0x0010
+#define DSDB_MODIFY_RELAX                    0x0020