From 17fa96b64a2aa55a204209c031d6e5e514e17a7c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 2 Sep 2011 14:42:50 +1000 Subject: s4-samdb: added a few function comments for pydoc Pair-Programmed-With: Andrew Bartlett --- source4/scripting/python/samba/samdb.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4') diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py index 794479f425..5cceb062ea 100644 --- a/source4/scripting/python/samba/samdb.py +++ b/source4/scripting/python/samba/samdb.py @@ -63,6 +63,7 @@ class SamDB(samba.Ldb): dsdb._dsdb_set_am_rodc(self, am_rodc) def connect(self, url=None, flags=0, options=None): + '''connect to the database''' if self.lp is not None and not os.path.exists(url): url = self.lp.private_path(url) self.url = url @@ -71,9 +72,11 @@ class SamDB(samba.Ldb): options=options) def am_rodc(self): + '''return True if we are an RODC''' return dsdb._am_rodc(self) def domain_dn(self): + '''return the domain DN''' return str(self.get_default_basedn()) def enable_account(self, search_filter): -- cgit