s4-dsdb: Add helper function samdb_reference_dn_is_our_ntdsa()
commit1e127b270cf60a34ea9f0c74bbefa98ef9dd019f
authorAndrew Bartlett <abartlet@samba.org>
Tue, 14 Aug 2012 08:46:47 +0000 (14 18:46 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 14 Aug 2012 13:37:22 +0000 (14 15:37 +0200)
tree404d0d2faa4379b32122afd322b2c42aab0e45fd
parent3c8d8f206b79280604cb79f263e74aa2b681726e
s4-dsdb: Add helper function samdb_reference_dn_is_our_ntdsa()

We often want to know if we own an FSMO role (for example).  This tries to be more
efficient by comparing the GUID, rather than the string DN, as this does not need
to be re-fetched each time.

Andrew Bartlett
source4/dsdb/common/util.c