s.p.common : module documentation

Part of samba.provision

Functions for setting up a Samba configuration.
Function setup_path Return an absolute path to the provision tempate file specified by file
Function setup_add_ldif Setup a ldb in the private dir.
Function setup_modify_ldif Modify a ldb in the private dir.
Function setup_ldb Import a LDIF a file into a LDB handle, optionally substituting variables.
def setup_path(file):
Return an absolute path to the provision tempate file specified by file
def setup_add_ldif(ldb, ldif_path, subst_vars=None, controls='relax:0'):
Setup a ldb in the private dir.
ParametersldbLDB file to import data into
ldif_pathPath of the LDIF file to load
subst_varsOptional variables to subsitute in LDIF.
nocontrolsOptional list of controls, can be None for no controls
def setup_modify_ldif(ldb, ldif_path, subst_vars=None, controls='relax:0'):
Modify a ldb in the private dir.
ParametersldbLDB object.
ldif_pathLDIF file path.
subst_varsOptional dictionary with substitution variables.
def setup_ldb(ldb, ldif_path, subst_vars):
Import a LDIF a file into a LDB handle, optionally substituting variables.
ParametersldbLDB file to import into.
ldif_pathPath to the LDIF file.
subst_varsDictionary with substitution variables.
NoteEither all LDIF data will be added or none (using transactions).
API Documentation for Samba, generated by pydoctor at 2012-03-06 23:17:58.