LATER ldb: Use ldb_dn_compare_base_one in ldb_match_scope
authorMatthieu Patou <mat@matws.net>
Fri, 14 Dec 2012 06:37:30 +0000 (22:37 -0800)
committerStefan Metzmacher <metze@samba.org>
Tue, 29 Jan 2013 21:03:14 +0000 (22:03 +0100)
commitb21963225c378574cc0c0c607295393b1da79694
tree3a039595058ccb50cc121f5f4d4a50a2a731d51f
parent207ee6f164f6b7385e81d6c598734506c12a2937
LATER ldb: Use ldb_dn_compare_base_one in ldb_match_scope

In order to return the number of element in a DN, it has to be exploded
if it's not already the case which is costly, in most case where this
function is called DN are still in non exploded form
Also the ldb_compare_base_one has quick test for DN that are linearized but
are not case folded.
lib/ldb/common/ldb_match.c