summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-09-02 14:42:50 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-09-05 11:19:25 +0200
commit17fa96b64a2aa55a204209c031d6e5e514e17a7c (patch)
treee3c5a763fb09ef95fcf6519587dd7dc8286b7104
parent957e1ed2a7c484339cd1eec5523336fd7b629897 (diff)
downloadsamba-17fa96b64a2aa55a204209c031d6e5e514e17a7c.tar.gz
samba-17fa96b64a2aa55a204209c031d6e5e514e17a7c.tar.bz2
samba-17fa96b64a2aa55a204209c031d6e5e514e17a7c.zip
s4-samdb: added a few function comments for pydoc
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/scripting/python/samba/samdb.py3
1 files changed, 3 insertions, 0 deletions
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):