From 099fc00b601fe7775f5fdb18d8473031b8a7ce27 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 4 Apr 2010 01:48:35 +0200 Subject: Add C-based Samba-specific subclass of Ldb. --- source4/scripting/python/samba/__init__.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'source4/scripting/python/samba') 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 -- cgit