s.drs_utils : module documentation

Part of samba

No module docstring
Class drsException Base element for drs errors
Function drsuapi_connect Make a DRSUAPI connection to the server.
Function sendDsReplicaSync Send DS replica sync request.
Function sendRemoveDsServer Send RemoveDSServer request.
Function drs_DsBind make a DsBind call, returning the binding handle
Class drs_Replicate DRS replication calls
def drsuapi_connect(server, lp, creds):
Make a DRSUAPI connection to the server.
Parametersserverthe name of the server to connect to
lpa samba line parameter object
credscredential used for the connection
ReturnsA tuple with the drsuapi bind object, the drsuapi handle and the supported extensions.
RaisesdrsExceptionif the connection fails
def sendDsReplicaSync(drsuapiBind, drsuapi_handle, source_dsa_guid, naming_context, req_option):
Send DS replica sync request.
ParametersdrsuapiBinda drsuapi Bind object
drsuapi_handlea drsuapi hanle on the drsuapi connection
source_dsa_guidthe guid of the source dsa for the replication
naming_contextthe DN of the naming context to replicate
req_optionsreplication options for the DsReplicaSync call
RaisesdrsExceptionif any error occur while sending and receiving the reply for the dsReplicaSync
def sendRemoveDsServer(drsuapiBind, drsuapi_handle, server_dsa_dn, domain):
Send RemoveDSServer request.
ParametersdrsuapiBinda drsuapi Bind object
drsuapi_handlea drsuapi hanle on the drsuapi connection
server_dsa_dna DN object of the server's dsa that we want to demote
domaina DN object of the server's domain
RaisesdrsExceptionif any error occur while sending and receiving the reply for the DsRemoveDSServer
def drs_DsBind(drs):
make a DsBind call, returning the binding handle
API Documentation for Samba, generated by pydoctor at 2012-03-06 23:17:58.