summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-01 12:33:00 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-01 12:34:48 +0100
commit7da84bc7b6428b5b262f177b848c199d0fcd143a (patch)
treedb8896403d547822927128b9c2e3e005a1555c8b /source4/dsdb/samdb
parent7ca6b3ee6d6fbb602ad4e43326c67784efbe0a17 (diff)
downloadsamba-7da84bc7b6428b5b262f177b848c199d0fcd143a.tar.gz
samba-7da84bc7b6428b5b262f177b848c199d0fcd143a.tar.bz2
samba-7da84bc7b6428b5b262f177b848c199d0fcd143a.zip
s4:samldb LDB module - unify objectSid assignment error messages
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/samldb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c
index 89fa6b23e1..c97b570230 100644
--- a/source4/dsdb/samdb/ldb_modules/samldb.c
+++ b/source4/dsdb/samdb/ldb_modules/samldb.c
@@ -835,9 +835,8 @@ static int samldb_objectclass_trigger(struct samldb_ctx *ac)
sid = samdb_result_dom_sid(ac, ac->msg, "objectSid");
if ((sid != NULL) && (!dsdb_module_am_system(ac->module)) &&
(ldb_request_get_control(ac->req, LDB_CONTROL_RELAX_OID) == NULL)) {
- ldb_asprintf_errstring(ldb,
- "samldb: no SID may be specified in user/group modifications for %s",
- ldb_dn_get_linearized(ac->msg->dn));
+ ldb_set_errstring(ldb,
+ "samldb: objectSid must not be specified!");
return LDB_ERR_UNWILLING_TO_PERFORM;
}