summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-04-04 01:48:35 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-04-06 13:12:43 +0200
commit099fc00b601fe7775f5fdb18d8473031b8a7ce27 (patch)
tree1e58cec0b405f809fb5c25dd21c460f5575d11b3 /source4/scripting/python/samba
parentbadc255748aa71f98c99c4c47343011286c8445d (diff)
downloadsamba-099fc00b601fe7775f5fdb18d8473031b8a7ce27.tar.gz
samba-099fc00b601fe7775f5fdb18d8473031b8a7ce27.tar.xz
samba-099fc00b601fe7775f5fdb18d8473031b8a7ce27.zip
Add C-based Samba-specific subclass of Ldb.
Diffstat (limited to 'source4/scripting/python/samba')
-rw-r--r--source4/scripting/python/samba/__init__.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/source4/scripting/python/samba/__init__.py b/source4/scripting/python/samba/__init__.py
index cb2405a3f9..80c6df626a 100644
--- a/source4/scripting/python/samba/__init__.py
+++ b/source4/scripting/python/samba/__init__.py
@@ -44,10 +44,9 @@ else:
import ldb
import dsdb
import glue
+from samba._ldb import Ldb
-
-
-class Ldb(ldb.Ldb):
+class Ldb(Ldb):
"""Simple Samba-specific LDB subclass that takes care
of setting up the modules dir, credentials pointers, etc.
@@ -117,9 +116,6 @@ class Ldb(ldb.Ldb):
def set_credentials(self, credentials):
glue.ldb_set_credentials(self, credentials)
- def set_loadparm(self, lp_ctx):
- glue.ldb_set_loadparm(self, lp_ctx)
-
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