dsdb: Avoid ldb_dn_validate() call on trusted input when not required
authorAndrew Bartlett <abartlet@samba.org>
Thu, 1 Sep 2016 02:54:25 +0000 (14:54 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 27 Sep 2016 18:47:34 +0000 (20:47 +0200)
commit3d05128da085a1d8873942d205d3ccf843969b98
tree2c2b3288e9bc40eb68866aded1123bdf9ac0a8ad
parent8a029b5d2aa2604c7d79e70d1a372bd029fabd75
dsdb: Avoid ldb_dn_validate() call on trusted input when not required

This call is very costly, because of the time required
to strictly check the syntax of the extended DN components.

This allows a 20% decrease in time taken for some link-heavy tests.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Sep 27 20:47:34 CEST 2016 on sn-devel-144
source4/dsdb/common/dsdb_dn.c
source4/dsdb/samdb/ldb_modules/extended_dn_out.c