summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/scripting/python/samba/__init__.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/source4/scripting/python/samba/__init__.py b/source4/scripting/python/samba/__init__.py
index 3eefaa7ffc..a6532b7f0d 100644
--- a/source4/scripting/python/samba/__init__.py
+++ b/source4/scripting/python/samba/__init__.py
@@ -42,7 +42,6 @@ else:
import ldb
-import dsdb
import _glue
from samba._ldb import Ldb as _Ldb
@@ -110,11 +109,6 @@ class Ldb(_Ldb):
if url is not None:
self.connect(url, flags, options)
- def set_create_perms(self, perms=0600):
- # we usually want Samba databases to be private. If we later find we
- # need one public, we will have to change this here
- super(Ldb, self).set_create_perms(perms)
-
def searchone(self, attribute, basedn=None, expression=None,
scope=ldb.SCOPE_BASE):
"""Search for one attribute as a string.
@@ -267,12 +261,6 @@ class Ldb(_Ldb):
else:
self.modify(msg, controls)
- def domain_sid(self):
- """Read the domain SID used by this LDB.
-
- """
- dsdb.samdb_get_domain_sid(self)
-
def substitute_var(text, values):
"""Substitute strings of the form ${NAME} in str, replacing