]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python:samba:provision: Fix code spelling
authorAndreas Schneider <asn@samba.org>
Tue, 6 Jun 2023 11:22:19 +0000 (13:22 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 23 Jun 2023 13:44:31 +0000 (13:44 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/provision/__init__.py
python/samba/provision/common.py
python/samba/provision/sambadns.py

index f0898caa3db67d0c8a70ad0153d5c09a665a4664..bf073a5c371b85058f5d306c83caae23f8dd8834 100644 (file)
@@ -1257,7 +1257,7 @@ def create_default_gpo(sysvolpath, dnsdomain, policyguid, policyguid_dc):
     :param sysvolpath: Physical path for the sysvol folder
     :param dnsdomain: DNS domain name of the AD domain
     :param policyguid: GUID of the default domain policy
-    :param policyguid_dc: GUID of the default domain controler policy
+    :param policyguid_dc: GUID of the default domain controller policy
     """
     policy_path = getpolicypath(sysvolpath, dnsdomain, policyguid)
     create_gpo_struct(policy_path)
@@ -1657,7 +1657,7 @@ def setsysvolacl(samdb, netlogon, sysvol, uid, gid, domainsid, dnsdomain,
     :param netlogon: Physical path for the netlogon folder
     :param sysvol: Physical path for the sysvol folder
     :param uid: The UID of the "Administrator" user
-    :param gid: The GID of the "Domain adminstrators" group
+    :param gid: The GID of the "Domain administrators" group
     :param domainsid: The SID of the domain
     :param dnsdomain: The DNS name of the domain
     :param domaindn: The DN of the domain (ie. DC=...)
@@ -1702,7 +1702,7 @@ def setsysvolacl(samdb, netlogon, sysvol, uid, gid, domainsid, dnsdomain,
         # marked in secrets.tdb
         s4_passdb = passdb.PDB(s3conf.get("passdb backend"))
 
-        # now ensure everything matches correctly, to avoid wierd issues
+        # now ensure everything matches correctly, to avoid weird issues
         if passdb.get_global_sam_sid() != domainsid:
             raise ProvisioningError('SID as seen by smbd [%s] does not match SID as seen by the provision script [%s]!' % (passdb.get_global_sam_sid(), domainsid))
 
@@ -1841,7 +1841,7 @@ def checksysvolacl(samdb, netlogon, sysvol, domainsid, dnsdomain, domaindn,
     :param netlogon: Physical path for the netlogon folder
     :param sysvol: Physical path for the sysvol folder
     :param uid: The UID of the "Administrator" user
-    :param gid: The GID of the "Domain adminstrators" group
+    :param gid: The GID of the "Domain administrators" group
     :param domainsid: The SID of the domain
     :param dnsdomain: The DNS name of the domain
     :param domaindn: The DN of the domain (ie. DC=...)
@@ -1855,7 +1855,7 @@ def checksysvolacl(samdb, netlogon, sysvol, domainsid, dnsdomain, domaindn,
     # ensure that we init the samba_dsdb backend, so the domain sid is marked in secrets.tdb
     s4_passdb = passdb.PDB(s3conf.get("passdb backend"))
 
-    # now ensure everything matches correctly, to avoid wierd issues
+    # now ensure everything matches correctly, to avoid weird issues
     if passdb.get_global_sam_sid() != domainsid:
         raise ProvisioningError('SID as seen by smbd [%s] does not match SID as seen by the provision script [%s]!' % (passdb.get_global_sam_sid(), domainsid))
 
index 0c20f8d2e541feb98bc5e34a5d108caf90c834f6..a6851b7e4c142f630b07a218acd4fd12dd6c9ae7 100644 (file)
@@ -38,7 +38,7 @@ FILL_DRS = "DRS"
 
 
 def setup_path(file):
-    """Return an absolute path to the provision tempate file specified by file"""
+    """Return an absolute path to the provision template file specified by file"""
     return os.path.join(setup_dir(), file)
 
 
@@ -47,7 +47,7 @@ def setup_add_ldif(ldb, ldif_path, subst_vars=None, controls=None):
 
     :param ldb: LDB file to import data into
     :param ldif_path: Path of the LDIF file to load
-    :param subst_vars: Optional variables to subsitute in LDIF.
+    :param subst_vars: Optional variables to substitute in LDIF.
     :param nocontrols: Optional list of controls, can be None for no controls
     """
     if controls is None:
index 9184711a7645407e212e11c0d95830bebde67490..19c5919dac6d0516238cba6b6cef545271973fb6 100644 (file)
@@ -77,7 +77,7 @@ def get_dnsadmins_sid(samdb, domaindn):
     return dnsadmins_sid
 
 
-# Note: these classses are not quite the same as similar looking ones
+# Note: these classes are not quite the same as similar looking ones
 # in ../dnsserver.py -- those ones are based on
 # dnsserver.DNS_RPC_RECORD ([MS-DNSP]2.2.2.2.5 "DNS_RPC_RECORD"),
 # these are based on dnsp.DnssrvRpcRecord ([MS-DNSP] 2.3.2.2
@@ -684,7 +684,7 @@ def secretsdb_setup_dns(secretsdb, names, private_dir, binddns_dir, realm,
         key_version_number = 1
 
     # This will create the dns.keytab file in the private_dir when it is
-    # commited!
+    # committed!
     setup_ldb(secretsdb, setup_path("secrets_dns.ldif"), {
             "REALM": realm,
             "DNSDOMAIN": dnsdomain,
@@ -984,7 +984,7 @@ def create_named_conf(paths, realm, dnsdomain, dns_backend, logger):
     """
 
     # TODO: This really should have been done as a top level import.
-    # It is done here to avoid a depencency loop.  That is, we move
+    # It is done here to avoid a dependency loop.  That is, we move
     # ProvisioningError to another file, and have all the provision
     # scripts import it from there.