Make our 'get DNS domain name' code try a bit harder - if gethostname() doesn't
authorAndrew Bartlett <abartlet@samba.org>
Tue, 22 Apr 2003 07:28:41 +0000 (07:28 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 22 Apr 2003 07:28:41 +0000 (07:28 +0000)
commit3be03271030208a69da29c6e2a7b92cdbaa8c6aa
tree1b9129c293093db95b83ded408354b5a6457adfa
parentb2149cb411f76048d80d0d6113fee431b36acfbe
Make our 'get DNS domain name' code try a bit harder - if gethostname() doesn't
include a domain portion, do a gethostbyname() lookup on that name.

Use this name in our PolicyPrimaryDomainInformation reply (_lsa_query_info2)
that Win2k uses when trying to trust us as a trusted domain.

(We need to do a better mapping between our Netbios and Win2k domain names,
but this will do for now - particularly annoying is the way this possibly needs
to map with our kerberos realm).

Andrew Bartlett
source/lib/util.c
source/rpc_server/srv_lsa_nt.c