s.p.sambadns : module documentation

Part of samba.provision

DNS-related provisioning
Function add_ldif Undocumented
Function modify_ldif Undocumented
Function setup_ldb Import a LDIF a file into a LDB handle, optionally substituting variables.
Function setup_path Return an absolute path to the provision tempate file specified by file
Function get_domainguid Undocumented
Function get_ntdsguid Undocumented
Function get_dnsadmins_sid Undocumented
Class ARecord Undocumented
Class AAAARecord Undocumented
Class CNameRecord Undocumented
Class NSRecord Undocumented
Class SOARecord Undocumented
Class SRVRecord 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 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 setup_ad_dns Provision DNS information (assuming GC role)
def add_ldif(ldb, ldif_file, subst_vars, controls='relax:0'):
Undocumented
def modify_ldif(ldb, ldif_file, subst_vars, controls='relax:0'):
Undocumented
def setup_ldb(ldb, ldif_path, subst_vars):
Import a LDIF a file into a LDB handle, optionally substituting variables.
ParametersldbLDB file to import into.
ldif_pathPath to the LDIF file.
subst_varsDictionary with substitution variables.
NoteEither all LDIF data will be added or none (using transactions).
def setup_path(file):
Return an absolute path to the provision tempate file specified by file
def get_domainguid(samdb, domaindn):
Undocumented
def get_ntdsguid(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 create_samdb_copy(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 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
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 2011-12-08 20:23:28.