ldb: added ldb_dn_minimise()
authorAndrew Tridgell <tridge@samba.org>
Thu, 13 Jan 2011 01:13:42 +0000 (12:13 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 14 Jan 2011 05:39:32 +0000 (16:39 +1100)
commit504a3cc6b36056f8240dae70a2445be1ad8cc6de
treef19086d16e075b6724152b85a3a64f9b683d214b
parent74493af86f953d209c57649178421929e8061c99
ldb: added ldb_dn_minimise()

this removes any extraneous components from a DN. For an extended DN,
this means removing the string DN and all but the first extended
component.

This is needed as AD returns "invalid syntax" if you don't use
a minimal DN as the base DN for a search. A non-minimal DN also
doesn't ever match in a search expression.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
source4/lib/ldb/common/ldb_dn.c
source4/lib/ldb/include/ldb.h