svn commit: samba r1927 - branches/SAMBA_4_0/source/libnet
metze at samba.org
metze at samba.org
Thu Aug 19 15:22:02 GMT 2004
Author: metze
Date: 2004-08-19 15:22:02 +0000 (Thu, 19 Aug 2004)
New Revision: 1927
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1927&nolog=1
Log:
allow the domain to be a ip address
metze
Modified:
branches/SAMBA_4_0/source/libnet/libnet_rpc.c
Changeset:
Modified: branches/SAMBA_4_0/source/libnet/libnet_rpc.c
===================================================================
--- branches/SAMBA_4_0/source/libnet/libnet_rpc.c 2004-08-19 15:06:06 UTC (rev 1926)
+++ branches/SAMBA_4_0/source/libnet/libnet_rpc.c 2004-08-19 15:22:02 UTC (rev 1927)
@@ -26,6 +26,11 @@
BOOL ret;
struct in_addr ip;
+ if (is_ipaddress(r->generic.in.domain_name)) {
+ r->generic.out.pdc_name = r->generic.in.domain_name;
+ return NT_STATUS_OK;
+ }
+
ret = get_pdc_ip(mem_ctx, r->generic.in.domain_name, &ip);
if (!ret) {
/* fallback to a workstation name */
More information about the samba-cvs
mailing list