diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-08-21 12:50:22 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-08-21 12:50:22 +1000 |
commit | c06e928580702f1290eb475f71932b2c550ad7ff (patch) | |
tree | 9e5cd4613bc0b2890d42c92b8b35c8a051ef614a /source4/dsdb/samdb | |
parent | b4ba27d7dbda31819e38ca5b87ff718c3b417963 (diff) | |
download | samba-c06e928580702f1290eb475f71932b2c550ad7ff.tar.gz samba-c06e928580702f1290eb475f71932b2c550ad7ff.tar.bz2 samba-c06e928580702f1290eb475f71932b2c550ad7ff.zip |
Don't maniplate control entries in samldb
(This used to be commit 8003ee9abf474de534677283fc499f9a3d992b20)
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/samldb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c index 88590f306b..bd491bd011 100644 --- a/source4/dsdb/samdb/ldb_modules/samldb.c +++ b/source4/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; |