1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-31 20:22:15 +03:00

Move a few more samdb-specific methods to SamDB, away from Ldb.

This commit is contained in:
Jelmer Vernooij
2010-06-20 01:37:06 +02:00
parent 1d86414eb0
commit a5e8ef884b
2 changed files with 3 additions and 15 deletions

View File

@ -105,7 +105,7 @@ class Ldb(_Ldb):
if nosync_p is not None and nosync_p == True:
flags |= ldb.FLG_NOSYNC
self.set_create_perms()
self.set_create_perms(0600)
if url is not None:
self.connect(url, flags, options)
@ -289,18 +289,6 @@ class Ldb(_Ldb):
def convert_schema_to_openldap(self, target, mapping):
return dsdb.dsdb_convert_schema_to_openldap(self, target, mapping)
def get_invocation_id(self):
"""Get the invocation_id id"""
return dsdb.samdb_ntds_invocation_id(self)
def get_ntds_GUID(self):
"""Get the NTDS objectGUID"""
return dsdb.samdb_ntds_objectGUID(self)
def server_site_name(self):
"""Get the server site name"""
return dsdb.samdb_server_site_name(self)
def substitute_var(text, values):
"""Substitute strings of the form ${NAME} in str, replacing