Fix "net rpc trustdom establish" for win2k8 trusts.
commitfff7893c02de9781f6b57683f0515ce2532a12e8
authorGünther Deschner <gd@samba.org>
Wed, 2 Apr 2008 10:29:24 +0000 (2 12:29 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 4 Apr 2008 07:38:33 +0000 (4 09:38 +0200)
tree7f19ca0b5446858a876f4d7ea8eb8e014bd210f1
parent137f24760861838a098ca31c8f5004efb7411e67
Fix "net rpc trustdom establish" for win2k8 trusts.

When establishing trusts to a windows 2008 dc, the NetServerEnum2 RAP call fails
with some exotic RAP failure. Let's just try a netlogon getdcname call in
that case to convince ourselve we're talking to a proper machine.

Rafael, looks ok?

Guenther
(cherry picked from commit b12edbeffee1f7d1fd971cde9189e5137ddeb35b)
source/utils/net_rpc.c