s.i.IDmapDB(samba.Ldb) : class documentation

Part of samba.idmap View In Hierarchy

The IDmap database.
Method __init__ Opens the IDMap Database.
Method connect Undocumented
Method increment_xid Increment xidNumber, if not present it create and assign it to the lowerBound
Method setup_name_mapping Setup a mapping between a sam name and a unix name.

Inherited from Ldb:

Method searchone Search for one attribute as a string.
Method erase_users_computers Erases user and computer objects from our AD.
Method erase_except_schema_controlled Erase this ldb.
Method erase Erase this ldb, removing all records.
Method load_ldif_file_add Load a LDIF file.
Method add_ldif Add data based on a LDIF string.
Method modify_ldif Modify database based on a LDIF string.

Inherited from Ldb (via Ldb):

Method set_utf8_casefold ldb_set_utf8_casefold() Set the right Samba casefolding function for UTF8 charset.
Method set_session_info set_session_info(session_info) Set session info to use when connecting.
Method register_samba_handlers register_samba_handlers() Register Samba-specific LDB modules and schemas.
Method set_credentials ldb_set_credentials(credentials) Set credentials to use when connecting.
Method set_opaque_integer Undocumented
Method set_loadparm ldb_set_loadparm(session_info) Set loadparm context to use when connecting.
def __init__(self, url=None, lp=None, modules_dir=None, session_info=None, credentials=None, flags=0, options=None):
Opens the IDMap Database.

For parameter meanings see the super class (samba.Ldb)

def connect(self, url=None, flags=0, options=None):
Undocumented
def increment_xid(self):
Increment xidNumber, if not present it create and assign it to the lowerBound

:return xid can that be used for SID/unixid mapping

def setup_name_mapping(self, sid, type, unixid=None):
Setup a mapping between a sam name and a unix name.
ParameterssidSID of the NT-side of the mapping.
unixnameUnix id to map to, if none supplied the next one will be selected
API Documentation for Samba, generated by pydoctor at 2012-03-06 23:17:58.