summaryrefslogtreecommitdiff
path: root/source/dsdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-08-21 12:50:22 +1000
committerAndrew Bartlett <abartlet@samba.org>2008-08-21 12:50:22 +1000
commit8003ee9abf474de534677283fc499f9a3d992b20 (patch)
tree8d718540824b0cedf4707b65af1e877899ebafad /source/dsdb
parent07d122ce2c255124dfb3acf71a3afdf52f06e1b1 (diff)
downloadsamba-8003ee9abf474de534677283fc499f9a3d992b20.tar.gz
Don't maniplate control entries in samldb
Diffstat (limited to 'source/dsdb')
-rw-r--r--source/dsdb/samdb/ldb_modules/samldb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/dsdb/samdb/ldb_modules/samldb.c b/source/dsdb/samdb/ldb_modules/samldb.c
index 88590f306be..bd491bd011e 100644
--- a/source/dsdb/samdb/ldb_modules/samldb.c
+++ b/source/dsdb/samdb/ldb_modules/samldb.c
@@ -768,6 +768,10 @@ static int samldb_modify(struct ldb_module *module, struct ldb_request *req)
struct ldb_message_element *el, *el2;
int ret;
unsigned int group_type, user_account_control, account_type;
+ if (ldb_dn_is_special(req->op.mod.message->dn)) { /* do not manipulate our control entries */
+ return ldb_next_request(module, req);
+ }
+
if (ldb_msg_find_element(req->op.mod.message, "sAMAccountType") != NULL) {
ldb_asprintf_errstring(module->ldb, "sAMAccountType must not be specified");
return LDB_ERR_UNWILLING_TO_PERFORM;