s.p.sambadns : module documentation

Part of samba.provision

DNS-related provisioning
Function get_domainguid Undocumented
Function get_dnsadmins_sid Undocumented
Class ARecord Undocumented
Class AAAARecord Undocumented
Class CNameRecord Undocumented
Class NSRecord Undocumented
Class SOARecord Undocumented
Class SRVRecord Undocumented
Class TXTRecord Undocumented
Class TypeProperty Undocumented
Class AllowUpdateProperty Undocumented
Class SecureTimeProperty Undocumented
Class NorefreshIntervalProperty Undocumented
Class RefreshIntervalProperty Undocumented
Class AgingStateProperty Undocumented
Class AgingEnabledTimeProperty Undocumented
Function setup_dns_partitions Undocumented
Function add_dns_accounts Undocumented
Function add_dns_container Undocumented
Function add_rootservers Undocumented
Function add_at_record Undocumented
Function add_srv_record Undocumented
Function add_ns_record Undocumented
Function add_ns_glue_record Undocumented
Function add_cname_record Undocumented
Function add_host_record Undocumented
Function add_domain_record Undocumented
Function add_msdcs_record Undocumented
Function add_dc_domain_records Undocumented
Function add_dc_msdcs_records Undocumented
Function secretsdb_setup_dns Add DNS specific bits to a secrets database.
Function create_dns_dir Write out a DNS zone file, from the info in the current database.
Function create_zone_file Write out a DNS zone file, from the info in the current database.
Function tdb_copy Copy tdb file using tdbbackup utility and rename it
Function create_samdb_copy Create a copy of samdb and give write permissions to named for dns partitions
Function create_dns_update_list Write out a dns_update_list file
Function create_named_conf Write out a file containing zone statements suitable for inclusion in a named.conf file (including GSS-TSIG configuration).
Function create_named_txt Write out a file containing zone statements suitable for inclusion in a named.conf file (including GSS-TSIG configuration).
Function is_valid_dns_backend Undocumented
Function is_valid_os_level Undocumented
Function create_dns_legacy Undocumented
Function fill_dns_data_legacy Undocumented
Function create_dns_partitions Undocumented
Function fill_dns_data_partitions Fill data in various AD partitions
Function setup_ad_dns Provision DNS information (assuming GC role)
def get_domainguid(samdb, domaindn):
Undocumented
def get_dnsadmins_sid(samdb, domaindn):
Undocumented
def setup_dns_partitions(samdb, domainsid, domaindn, forestdn, configdn, serverdn):
Undocumented
def add_dns_accounts(samdb, domaindn):
Undocumented
def add_dns_container(samdb, domaindn, prefix, domainsid, dnsadmins_sid):
Undocumented
def add_rootservers(samdb, domaindn, prefix):
Undocumented
def add_at_record(samdb, container_dn, prefix, hostname, dnsdomain, hostip, hostip6):
Undocumented
def add_srv_record(samdb, container_dn, prefix, host, port):
Undocumented
def add_ns_record(samdb, container_dn, prefix, host):
Undocumented
def add_ns_glue_record(samdb, container_dn, prefix, host):
Undocumented
def add_cname_record(samdb, container_dn, prefix, host):
Undocumented
def add_host_record(samdb, container_dn, prefix, hostip, hostip6):
Undocumented
def add_domain_record(samdb, domaindn, prefix, dnsdomain, domainsid, dnsadmins_sid):
Undocumented
def add_msdcs_record(samdb, forestdn, prefix, dnsforest):
Undocumented
def add_dc_domain_records(samdb, domaindn, prefix, site, dnsdomain, hostname, hostip, hostip6):
Undocumented
def add_dc_msdcs_records(samdb, forestdn, prefix, site, dnsforest, hostname, hostip, hostip6, domainguid, ntdsguid):
Undocumented
def secretsdb_setup_dns(secretsdb, names, private_dir, realm, dnsdomain, dns_keytab_path, dnspass):
Add DNS specific bits to a secrets database.
ParameterssecretsdbLdb Handle to the secrets database
namesNames shortcut
machinepassMachine password
def create_dns_dir(logger, paths):
Write out a DNS zone file, from the info in the current database.
ParametersloggerLogger object
pathspaths object
def create_zone_file(lp, logger, paths, targetdir, dnsdomain, hostip, hostip6, hostname, realm, domainguid, ntdsguid, site):
Write out a DNS zone file, from the info in the current database.
Parameterspathspaths object
dnsdomainDNS Domain name
domaindnDN of the Domain
hostipLocal IPv4 IP
hostip6Local IPv6 IP
hostnameLocal hostname
realmRealm name
domainguidGUID of the domain.
ntdsguidGUID of the hosts nTDSDSA record.
def tdb_copy(logger, file1, file2):
Copy tdb file using tdbbackup utility and rename it
def create_samdb_copy(samdb, logger, paths, names, domainsid, domainguid):
Create a copy of samdb and give write permissions to named for dns partitions
def create_dns_update_list(lp, logger, paths):
Write out a dns_update_list file
def create_named_conf(paths, realm, dnsdomain, dns_backend):
Write out a file containing zone statements suitable for inclusion in a named.conf file (including GSS-TSIG configuration).
Parameterspathsall paths
realmRealm name
dnsdomainDNS Domain name
dns_backendDNS backend type
keytab_nameFile name of DNS keytab file
def create_named_txt(path, realm, dnsdomain, dnsname, private_dir, keytab_name):
Write out a file containing zone statements suitable for inclusion in a named.conf file (including GSS-TSIG configuration).
ParameterspathPath of the new named.conf file.
realmRealm name
dnsdomainDNS Domain name
private_dirPath to private directory
keytab_nameFile name of DNS keytab file
def is_valid_dns_backend(dns_backend):
Undocumented
def is_valid_os_level(os_level):
Undocumented
def create_dns_legacy(samdb, domainsid, forestdn, dnsadmins_sid):
Undocumented
def fill_dns_data_legacy(samdb, domainsid, forestdn, dnsdomain, site, hostname, hostip, hostip6, dnsadmins_sid):
Undocumented
def create_dns_partitions(samdb, domainsid, names, domaindn, forestdn, dnsadmins_sid):
Undocumented
def fill_dns_data_partitions(samdb, domainsid, site, domaindn, forestdn, dnsdomain, dnsforest, hostname, hostip, hostip6, domainguid, ntdsguid, dnsadmins_sid, autofill=True):
Fill data in various AD partitions
ParameterssamdbLDB object connected to sam.ldb file
domainsidDomain SID (as dom_sid object)
siteSite name to create hostnames in
domaindnDN of the domain
forestdnDN of the forest
dnsdomainDNS name of the domain
dnsforestDNS name of the forest
hostnameHost name of this DC
hostipIPv4 addresses
hostip6IPv6 addresses
domainguidDomain GUID
ntdsguidNTDS GUID
dnsadmins_sidSID for DnsAdmins group
autofillCreate DNS records (using fixed template)
def setup_ad_dns(samdb, secretsdb, domainsid, names, paths, lp, logger, dns_backend, os_level, site, dnspass=None, hostip=None, hostip6=None, targetdir=None):
Provision DNS information (assuming GC role)
ParameterssamdbLDB object connected to sam.ldb file
secretsdbLDB object connected to secrets.ldb file
domainsidDomain SID (as dom_sid object)
namesNames shortcut
pathsPaths shortcut
lpLoadparm object
loggerLogger object
dns_backendType of DNS backend
os_levelFunctional level (treated as os level)
siteSite to create hostnames in
dnspassPassword for bind's DNS account
hostipIPv4 address
hostip6IPv6 address
targetdirTarget directory for creating DNS-related files for BIND9
API Documentation for Samba, generated by pydoctor at 2012-03-06 23:17:58.