mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
samba-tool/dns: Pass on additional flags when creating zones
Windows DCs require additional flags to be set when creating zones. This fixes bug #9599. Signed-off-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
612fbc18c3
commit
c22eb103d8
@ -856,6 +856,8 @@ class cmd_zonecreate(Command):
|
|||||||
zone_create_info.dwZoneType = dnsp.DNS_ZONE_TYPE_PRIMARY
|
zone_create_info.dwZoneType = dnsp.DNS_ZONE_TYPE_PRIMARY
|
||||||
zone_create_info.fAllowUpdate = dnsp.DNS_ZONE_UPDATE_SECURE
|
zone_create_info.fAllowUpdate = dnsp.DNS_ZONE_UPDATE_SECURE
|
||||||
zone_create_info.fAging = 0
|
zone_create_info.fAging = 0
|
||||||
|
zone_create_info.fDsIntegrated = 1
|
||||||
|
zone_create_info.fLoadExisting = 1
|
||||||
elif client_version == dnsserver.DNS_CLIENT_VERSION_DOTNET:
|
elif client_version == dnsserver.DNS_CLIENT_VERSION_DOTNET:
|
||||||
typeid = dnsserver.DNSSRV_TYPEID_ZONE_CREATE_DOTNET
|
typeid = dnsserver.DNSSRV_TYPEID_ZONE_CREATE_DOTNET
|
||||||
zone_create_info = dnsserver.DNS_RPC_ZONE_CREATE_INFO_DOTNET()
|
zone_create_info = dnsserver.DNS_RPC_ZONE_CREATE_INFO_DOTNET()
|
||||||
@ -863,6 +865,8 @@ class cmd_zonecreate(Command):
|
|||||||
zone_create_info.dwZoneType = dnsp.DNS_ZONE_TYPE_PRIMARY
|
zone_create_info.dwZoneType = dnsp.DNS_ZONE_TYPE_PRIMARY
|
||||||
zone_create_info.fAllowUpdate = dnsp.DNS_ZONE_UPDATE_SECURE
|
zone_create_info.fAllowUpdate = dnsp.DNS_ZONE_UPDATE_SECURE
|
||||||
zone_create_info.fAging = 0
|
zone_create_info.fAging = 0
|
||||||
|
zone_create_info.fDsIntegrated = 1
|
||||||
|
zone_create_info.fLoadExisting = 1
|
||||||
zone_create_info.dwDpFlags = dnsserver.DNS_DP_DOMAIN_DEFAULT
|
zone_create_info.dwDpFlags = dnsserver.DNS_DP_DOMAIN_DEFAULT
|
||||||
else:
|
else:
|
||||||
typeid = dnsserver.DNSSRV_TYPEID_ZONE_CREATE
|
typeid = dnsserver.DNSSRV_TYPEID_ZONE_CREATE
|
||||||
@ -871,6 +875,8 @@ class cmd_zonecreate(Command):
|
|||||||
zone_create_info.dwZoneType = dnsp.DNS_ZONE_TYPE_PRIMARY
|
zone_create_info.dwZoneType = dnsp.DNS_ZONE_TYPE_PRIMARY
|
||||||
zone_create_info.fAllowUpdate = dnsp.DNS_ZONE_UPDATE_SECURE
|
zone_create_info.fAllowUpdate = dnsp.DNS_ZONE_UPDATE_SECURE
|
||||||
zone_create_info.fAging = 0
|
zone_create_info.fAging = 0
|
||||||
|
zone_create_info.fDsIntegrated = 1
|
||||||
|
zone_create_info.fLoadExisting = 1
|
||||||
zone_create_info.dwDpFlags = dnsserver.DNS_DP_DOMAIN_DEFAULT
|
zone_create_info.dwDpFlags = dnsserver.DNS_DP_DOMAIN_DEFAULT
|
||||||
|
|
||||||
res = dns_conn.DnssrvOperation2(client_version, 0, server, None,
|
res = dns_conn.DnssrvOperation2(client_version, 0, server, None,
|
||||||
|
Loading…
Reference in New Issue
Block a user