import ldb
-import dsdb
import _glue
from samba._ldb import Ldb as _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.
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