summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-08-13 16:59:49 +1000
committerAndrew Bartlett <abartlet@samba.org>2009-08-17 09:50:57 +1000
commit7a9030b7ce164460e662d0798c2490ec5929442d (patch)
tree86d20e4421afbfd0b582b29407c9439891221a6e /source4
parenta58b4f8cc2446c126b15b142b78ebb1733f91712 (diff)
downloadsamba-7a9030b7ce164460e662d0798c2490ec5929442d.tar.gz
samba-7a9030b7ce164460e662d0798c2490ec5929442d.tar.bz2
samba-7a9030b7ce164460e662d0798c2490ec5929442d.zip
s4:provision Move helper functions back to provision
(These will be added back in a future commit)
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/samdb.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/source4/scripting/python/samba/samdb.py b/source4/scripting/python/samba/samdb.py
index c22e79b67f..4daa40dd07 100644
--- a/source4/scripting/python/samba/samdb.py
+++ b/source4/scripting/python/samba/samdb.py
@@ -53,27 +53,6 @@ class SamDB(samba.Ldb):
def connect(self, url):
super(SamDB, self).connect(self.lp.private_path(url))
- def add_foreign(self, domaindn, sid, desc):
- """Add a foreign security principle."""
- add = """
-dn: CN=%s,CN=ForeignSecurityPrincipals,%s
-objectClass: top
-objectClass: foreignSecurityPrincipal
-description: %s
-""" % (sid, domaindn, desc)
- # deliberately ignore errors from this, as the records may
- # already exist
- 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.