summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-06-06 17:19:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:55 -0500
commit629d6ad3cf98deba6b9e15701ed0c5d908b9fe11 (patch)
tree51cfa41b3bbbf5c26f8aa165b770570ba0f5461d /source4/dsdb/samdb
parent1335e8f5f181e4d06a85a0f0b572b4bc9c42ef8e (diff)
downloadsamba-629d6ad3cf98deba6b9e15701ed0c5d908b9fe11.tar.gz
samba-629d6ad3cf98deba6b9e15701ed0c5d908b9fe11.tar.bz2
samba-629d6ad3cf98deba6b9e15701ed0c5d908b9fe11.zip
r16061: Prove that removing the objectClass list in the samldb module breaks things.
With this fix, we now correctly detect computers again, and get the correct objectCategory, which is important for the OSX AD plugin. Andrew Bartlett (This used to be commit 4e39d7bb245bc337ac496c7e39a510d1c5611c71)
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/samldb.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c
index 52433b6249..464d08068f 100644
--- a/source4/dsdb/samdb/ldb_modules/samldb.c
+++ b/source4/dsdb/samdb/ldb_modules/samldb.c
@@ -615,9 +615,6 @@ static int samldb_fill_user_or_computer_object(struct ldb_module *module, const
return LDB_ERR_OPERATIONS_ERROR;
}
- /* remove objectclasses so that they will be added in the right order for MMC to be happy */
- ldb_msg_remove_attr(msg, "objectclass");
-
if (samldb_find_attribute(msg, "objectclass", "computer") != NULL) {
ret = samldb_copy_template(module, msg2, "(&(CN=TemplateComputer)(objectclass=userTemplate))");