diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-11-01 12:33:00 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-11-01 12:34:48 +0100 |
commit | 7da84bc7b6428b5b262f177b848c199d0fcd143a (patch) | |
tree | db8896403d547822927128b9c2e3e005a1555c8b /source4/dsdb | |
parent | 7ca6b3ee6d6fbb602ad4e43326c67784efbe0a17 (diff) | |
download | samba-7da84bc7b6428b5b262f177b848c199d0fcd143a.tar.gz samba-7da84bc7b6428b5b262f177b848c199d0fcd143a.tar.bz2 samba-7da84bc7b6428b5b262f177b848c199d0fcd143a.zip |
s4:samldb LDB module - unify objectSid assignment error messages
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/samldb.c | 5 |
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; } |