s4-dsdb/samdb: Don't relax contraint checking during rename for Deleted objects
authorKamen Mazdrashki <kamenim@samba.org>
Wed, 26 Nov 2014 20:53:53 +0000 (21:53 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 3 Feb 2015 04:02:12 +0000 (05:02 +0100)
Now we have a module to handle to handle Tombstone reanimation
and it is better we do all the check here as usual

Change-Id: Ia5d28d64e99f7a961cfe8b9aa7cc96e4ca56192e
Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
source4/dsdb/samdb/ldb_modules/samldb.c

index 24124c948b788510dabb66236c464d8e712d25cb..39b6bdf501a44d0d5b2172c5d6995737769d92e5 100644 (file)
@@ -3073,9 +3073,6 @@ static int check_rename_constraints(struct ldb_message *msg,
        if (ldb_request_get_control(ac->req, LDB_CONTROL_RELAX_OID) != NULL) {
                return LDB_SUCCESS;
        }
-       if (ldb_msg_find_attr_as_bool(msg, "isDeleted", false)) {
-               return LDB_SUCCESS;
-       }
 
        /* Objects under CN=System */