summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-12-07 09:56:31 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-12-07 03:09:08 +0100
commitd8f98933fd35bb10f064edaa1a4ac8d89c6e83bc (patch)
tree2bdabcb7b2d7e9c167abc33642ab60063c84687c /source4/scripting/python
parentdbbb626dc0ad7b0100aec3ee3a787e1ac18f528a (diff)
downloadsamba-d8f98933fd35bb10f064edaa1a4ac8d89c6e83bc.tar.gz
samba-d8f98933fd35bb10f064edaa1a4ac8d89c6e83bc.tar.bz2
samba-d8f98933fd35bb10f064edaa1a4ac8d89c6e83bc.zip
pydsdb: provide a am_pdc hook like am_rodc to python scripts
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/samdb.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py
index 4bd1acde4c..98c36bf38b 100644
--- a/source4/scripting/python/samba/samdb.py
+++ b/source4/scripting/python/samba/samdb.py
@@ -76,6 +76,10 @@ class SamDB(samba.Ldb):
'''return True if we are an RODC'''
return dsdb._am_rodc(self)
+ def am_pdc(self):
+ '''return True if we are an PDC emulator'''
+ return dsdb._am_pdc(self)
+
def domain_dn(self):
'''return the domain DN'''
return str(self.get_default_basedn())