This function uses make ldif to generate LDIF data files
Location of target host
Pathname to installation root
Display Directory Server version information
Path to the template file
Path to the LDIF file
The seed to use to initialize the random number generator
Help option
'%s %s' % (STAFCmd, STAFCmdParams)
'%s' % location
'%s' % STAFCmd
'%s' % STAFCmdParams
'%s' % dsBinPath
['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME]
'make-ldif failed (Code=%s,Reason=%s).' % (STAXCode,STAXReason)
[STAXCode, STAXReason]
This function compares two LDIF files and reports the differences in LDIF format
Location of target host
Pathname to installation root
Display Directory Server version information
LDIF file to use as the source data
LDIF file to use as the target data
File to which the diffs should be written
Overwrite existing output file rather than append to it
Write each attribute-level change as a separate modification
per attribute value rather than one modification per entry
Help option
'%s %s' % (STAFCmd, STAFCmdParams)
'%s' % location
'%s' % STAFCmd
'%s' % STAFCmdParams
'%s' % dsBinPath
['PATH=/bin:/usr/bin:%s' % dsBinPath, 'JAVA_HOME=%s' % JAVA_HOME]
outputLdif
diffRC
This function verifies that the trees in a group of ldap servers are synchronized.
Location of target host
Pathname to installation root
Server that should be taken as reference.
List of the servers to verify against the referenceServer.
Suffix of the tree to verify.
{ 'location' : location,
'dsPath' : dsPath,
'dsInstanceHost' : referenceServer.getHostname() ,
'dsInstancePort' : referenceServer.getPort() ,
'dsInstanceDn' : referenceServer.getRootDn() ,
'dsInstancePswd' : referenceServer.getRootPwd() ,
'dsBaseDN' : treeSuffix,
'dsFilter' : 'objectclass=*',
'outputFile' : referenceTree }
[1, None]
{ 'location' : location,
'dsPath' : dsPath,
'dsInstanceHost' : server.getHostname() ,
'dsInstancePort' : server.getPort() ,
'dsInstanceDn' : server.getRootDn() ,
'dsInstancePswd' : server.getRootPwd() ,
'dsBaseDN' : treeSuffix,
'dsFilter' : 'objectclass=*',
'outputFile' : sampleTree }
{ 'location' : location,
'dsPath' : dsPath,
'sourceLdif' : '%s/../%s' % (dsPath, sampleTree),
'targetLdif' : '%s/../%s' % (dsPath, referenceTree),
'outputLdif' : '%s/../%s' % (dsPath, treeDiffs) }
{ 'returncode' : myRC,
'result' : failingServerList ,
'expected' : 0 }
[myRC, failedServers]