ldb: Remove last import of dsdb.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 20 Jun 2010 00:44:39 +0000 (02:44 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 20 Jun 2010 00:46:57 +0000 (02:46 +0200)
source4/scripting/python/samba/__init__.py

index 3eefaa7ffc94ab787283e4823b3c6b8851e21238..a6532b7f0d619ec65d77a693295a65faefe70a47 100644 (file)
@@ -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