summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-18 20:53:25 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-19 17:53:17 +0200
commit72e14ea8bd47695dcdf1a3c8ee3a017c6d2e4d5c (patch)
tree422746cf60936fb41140d51316a71ce3bef8f35a /source4/dsdb/samdb
parent2af67a3602528f55f3fb871bac0bc15ee88df702 (diff)
downloadsamba-72e14ea8bd47695dcdf1a3c8ee3a017c6d2e4d5c.tar.gz
samba-72e14ea8bd47695dcdf1a3c8ee3a017c6d2e4d5c.tar.bz2
samba-72e14ea8bd47695dcdf1a3c8ee3a017c6d2e4d5c.zip
s4:rootdse LDB module - Return "UNWILLING_TO_PERFORM" when no attribute fits on a change
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/rootdse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c b/source4/dsdb/samdb/ldb_modules/rootdse.c
index 3254355541..d24ed42a38 100644
--- a/source4/dsdb/samdb/ldb_modules/rootdse.c
+++ b/source4/dsdb/samdb/ldb_modules/rootdse.c
@@ -985,7 +985,8 @@ static int rootdse_modify(struct ldb_module *module, struct ldb_request *req)
return rootdse_enableoptionalfeature(module, req);
}
- return LDB_ERR_OPERATIONS_ERROR;
+ ldb_set_errstring(ldb, "rootdse_modify: unknown attribute to change!");
+ return LDB_ERR_UNWILLING_TO_PERFORM;
}
_PUBLIC_ const struct ldb_module_ops ldb_rootdse_module_ops = {