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.
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 2011-12-08 20:23:28.