summaryrefslogtreecommitdiff
path: root/python/samba/samdb.py
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2018-02-08 16:46:29 +1300
committerAndrew Bartlett <abartlet@samba.org>2018-02-08 04:58:09 +0100
commitf202b0ef24ded7e93b986033473bc5cf260be33d (patch)
treef502fca6b94043707b9b50ddccddd7a8cbe147ee /python/samba/samdb.py
parent3f022b2dd0e0c9a5f1dea35609730ac0ce1bec76 (diff)
downloadsamba-f202b0ef24ded7e93b986033473bc5cf260be33d.tar.gz
python/samdb: Improve function comment on normalize_dn_in_domain()
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'python/samba/samdb.py')
-rw-r--r--python/samba/samdb.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/python/samba/samdb.py b/python/samba/samdb.py
index f4e97dc0c01..d1048a74e14 100644
--- a/python/samba/samdb.py
+++ b/python/samba/samdb.py
@@ -999,10 +999,13 @@ accountExpires: %u
return dsdb._dsdb_allocate_rid(self)
def normalize_dn_in_domain(self, dn):
- """return full dn of an relative dn
+ '''return a new DN expanded by adding the domain DN
+
+ If the dn is already a child of the domain DN, just
+ return it as-is.
:param dn: relative dn
- """
+ '''
domain_dn = ldb.Dn(self, self.domain_dn())
if isinstance(dn, ldb.Dn):