mirror of
https://github.com/samba-team/samba.git
synced 2025-11-11 00:23:51 +03:00
r1927: allow the domain to be a ip address
metze
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
eb93d38de0
commit
d0e518e7d0
@@ -26,6 +26,11 @@ static NTSTATUS libnet_find_pdc_generic(struct libnet_context *ctx, TALLOC_CTX *
|
||||
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 */
|
||||
|
||||
Reference in New Issue
Block a user