From 93db960fae43913a423fe1e35a60acf5ed0cc437 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sun, 6 Jun 2010 19:12:48 +0200 Subject: s4:samldb LDB module - this codepart isn't needed due to the objectclass LDB module When a "computer" entry will be added, also the inherited "user" objectclass is going to be specified. --- source4/dsdb/samdb/ldb_modules/samldb.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'source4/dsdb/samdb') diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c index a068a29e86..8e5e0b4537 100644 --- a/source4/dsdb/samdb/ldb_modules/samldb.c +++ b/source4/dsdb/samdb/ldb_modules/samldb.c @@ -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) { -- cgit