mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
ldb: Remove last import of dsdb.
This commit is contained in:
parent
94e06fe203
commit
1f07f53827
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user