s4-repl: try harder to find the right SPN in replication server
authorAndrew Tridgell <tridge@samba.org>
Wed, 28 Sep 2011 03:48:52 +0000 (13:48 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 4 Oct 2011 04:08:57 +0000 (15:08 +1100)
commitb930b1e1fc52b999141918cf0d06d66bfbbf1fa4
tree28315cbb42fcccbfdbbc00fcba528391503c5687
parent60cbc98051b430fc09358a09866c69a54cc726bc
s4-repl: try harder to find the right SPN in replication server

when doing DRS between domains, using the right SPN is essential so
the KDC can generate referrals to point us at the right DC.  We prefer
the GC/hostname/DNSDOMAIN form if possible, but if we can't find the
hostname then this changes the code that generates the target
principal name to use either the msDS-HasDomainNCs or hasMasterNCs
attributes to try to find the target DC domainname so we can use the
E3514235-4B06-11D1-AB04-00C04FC2DCD2/GUID/DNSDOMAIN SPN form.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/repl/drepl_partitions.c