From b7de06e8e756eb338e40d319095311f8f7d70cba Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Mon, 4 Apr 2011 14:04:18 +0200 Subject: 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 --- source4/dsdb/samdb/ldb_modules/objectclass.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'source4/dsdb/samdb') 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, -- cgit