diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-04-04 14:04:18 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-04-07 15:53:20 +0200 |
commit | b7de06e8e756eb338e40d319095311f8f7d70cba (patch) | |
tree | 8e9f8d0696581c1aadf23fa7611b5f080c031414 /source4 | |
parent | 17f34136bf67aa5e739b63aa3ef51d247d6dc901 (diff) | |
download | samba-b7de06e8e756eb338e40d319095311f8f7d70cba.tar.gz samba-b7de06e8e756eb338e40d319095311f8f7d70cba.tar.bz2 samba-b7de06e8e756eb338e40d319095311f8f7d70cba.zip |
s4:objectclass LDB module - "ldb_msg_sanity_check" call not really needed
This call should only be performed at the beginning of a request.
"ldb_msg_sanity_check" checks for DN validity (which should already have been
done at the beginning of the request) and empty attributes (which should
be done by the "objectclass_attrs" LDB module).
Hence it is superflous here.
Reviewed-by: abartlet
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/objectclass.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/objectclass.c b/source4/dsdb/samdb/ldb_modules/objectclass.c index 4107c9cd7c..fd39937bc9 100644 --- a/source4/dsdb/samdb/ldb_modules/objectclass.c +++ b/source4/dsdb/samdb/ldb_modules/objectclass.c @@ -762,11 +762,6 @@ static int objectclass_do_add(struct oc_context *ac) } } - ret = ldb_msg_sanity_check(ldb, msg); - if (ret != LDB_SUCCESS) { - return ret; - } - ret = ldb_build_add_req(&add_req, ldb, ac, msg, ac->req->controls, |