summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/samdb.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-02-11 18:31:52 +0100
committerJelmer Vernooij <jelmer@samba.org>2009-02-11 18:31:52 +0100
commitddb4db7c65db202d71785a404622a4d6f1c3906a (patch)
tree0b927c4bd922b689ace0301acd10a2725d02b119 /source4/scripting/python/samba/samdb.py
parentd9e94bf33681dda2b9fad5efa3226e5d818fab6b (diff)
downloadsamba-ddb4db7c65db202d71785a404622a4d6f1c3906a.tar.gz
samba-ddb4db7c65db202d71785a404622a4d6f1c3906a.tar.xz
samba-ddb4db7c65db202d71785a404622a4d6f1c3906a.zip
Move some samdb-specific code out of provision.
Diffstat (limited to 'source4/scripting/python/samba/samdb.py')
-rw-r--r--source4/scripting/python/samba/samdb.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py
index 947c46079f..9cc55e5629 100644
--- a/source4/scripting/python/samba/samdb.py
+++ b/source4/scripting/python/samba/samdb.py
@@ -65,6 +65,14 @@ description: %s
for msg in self.parse_ldif(add):
self.add(msg[1])
+ def add_stock_foreign_sids(self):
+ domaindn = self.domain_dn()
+ self.add_foreign(domaindn, "S-1-5-7", "Anonymous")
+ self.add_foreign(domaindn, "S-1-1-0", "World")
+ self.add_foreign(domaindn, "S-1-5-2", "Network")
+ self.add_foreign(domaindn, "S-1-5-18", "System")
+ self.add_foreign(domaindn, "S-1-5-11", "Authenticated Users")
+
def enable_account(self, user_dn):
"""Enable an account.