s4:samldb LDB module - this codepart isn't needed due to the objectclass LDB module
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 6 Jun 2010 17:12:48 +0000 (19:12 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 6 Jun 2010 18:48:58 +0000 (20:48 +0200)
When a "computer" entry will be added, also the inherited "user" objectclass is
going to be specified.

source4/dsdb/samdb/ldb_modules/samldb.c

index a068a29e86c43b759f913e692c6233d16adcae2f..8e5e0b45372e5418cca9feceb410e7c44a8472f0 100644 (file)
@@ -1354,19 +1354,6 @@ static int samldb_add(struct ldb_module *module, struct ldb_request *req)
                return LDB_ERR_OPERATIONS_ERROR;
        }
 
-       if (samdb_find_attribute(ldb, ac->msg,
-                                "objectclass", "computer") != NULL) {
-
-               /* make sure the computer object also has the 'user'
-                * objectclass so it will be handled by the next call */
-               ret = samdb_find_or_add_value(ldb, ac->msg,
-                                               "objectclass", "user");
-               if (ret != LDB_SUCCESS) {
-                       talloc_free(ac);
-                       return ret;
-               }
-       }
-
        if (samdb_find_attribute(ldb, ac->msg,
                                 "objectclass", "user") != NULL) {