s4-dsdb Make samdb_reference_dn() use dsdb_search() and DSDB_SEARCH_ONE_ONLY
commit063b61289db73444d514d2897339cf135fc8dfc9
authorAndrew Bartlett <abartlet@samba.org>
Tue, 28 Sep 2010 02:55:48 +0000 (28 12:55 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 28 Sep 2010 18:23:07 +0000 (29 04:23 +1000)
tree9db3ff760ead866ff8ed93307478f9d6a1ef36ec
parent990720b8cd869a375686cc78f270e68ca9bd28b3
s4-dsdb Make samdb_reference_dn() use dsdb_search() and DSDB_SEARCH_ONE_ONLY

This simplifies the function.  While doing so, also change the error
string setting to set a really clear error string for the failure to find
and failure to parse cases.

Andrew Bartlett
source4/dsdb/common/util.c