This function adds an entry to the Directory Server
Directory Server Host Name
Directory Server Port Number
Directory Server Manager DN
Directory Server Manager Password
Entry to be added to Directory Server in ldif format
Optional extra parameters for specific test cases
'ldapmodify.%s -a -h %s -p %s -D "%s" -w %s %s -f "%s"' % (fileExt,dsInstanceHost,dsInstancePort,dsInstanceDn,dsInstancePswd,extraParams,entryToBeAdded)
'%s' % (STAF_REMOTE_HOSTNAME)
'%s/ldapmodify.%s' % (OPENDS_BINPATH,fileExt)
'-a -h %s -p %s -D "%s" -w %s %s -f "%s"' % (dsInstanceHost,dsInstancePort,dsInstanceDn,dsInstancePswd,extraParams,entryToBeAdded)
'%s' % (OPENDS_BINPATH)
['PATH=/bin:/usr/bin:%s' % (OPENDS_BINPATH), 'JAVA_HOME=%s' % (JAVA_HOME)]
{ 'returncode' : RC ,
'result' : STAXResult }
This function modifies an entry in the Directory Server
Directory Server Host Name
Directory Server Port Number
Directory Server Manager DN
Directory Server Manager Password
Entry to be modified in the Directory Server in ldif format
Optional extra parameters for specific test cases
'ldapmodify.%s -h %s -p %s -D "%s" -w %s %s -f "%s"' % (fileExt,dsInstanceHost,dsInstancePort,dsInstanceDn,dsInstancePswd,extraParams,entryToBeModified)
'%s' % (STAF_REMOTE_HOSTNAME)
'%s/ldapmodify.%s' % (OPENDS_BINPATH,fileExt)
'-h %s -p %s -D "%s" -w %s %s -f "%s"' % (dsInstanceHost,dsInstancePort,dsInstanceDn,dsInstancePswd,extraParams,entryToBeModified)
'%s' % (OPENDS_BINPATH)
['PATH=/bin:/usr/bin:%s' % (OPENDS_BINPATH), 'JAVA_HOME=%s' % (JAVA_HOME)]
{ 'returncode' : RC ,
'result' : STAXResult }
This function searches the Directory Server with optional arguments possible
Directory Server Host Name
Directory Server Port Number
Directory Server Manager DN
Directory Server Manager Password
The baseDN for the search operation
The filter for the search operation
Optional extra parameters for specific test cases
'ldapsearch.%s -h %s -p %s -D "%s" -w %s %s -b "%s" "%s"' % (fileExt,dsInstanceHost,dsInstancePort,dsInstanceDn,dsInstancePswd,extraParams,dsBaseDN,dsFilter)
'%s' % (STAF_REMOTE_HOSTNAME)
'%s/ldapsearch.%s' % (OPENDS_BINPATH,fileExt)
'-h %s -p %s -D "%s" -w %s %s -b "%s" "%s"' % (dsInstanceHost,dsInstancePort,dsInstanceDn,dsInstancePswd,extraParams,dsBaseDN,dsFilter)
'%s' % (OPENDS_BINPATH)
['PATH=/bin:/usr/bin:%s' % (OPENDS_BINPATH), 'JAVA_HOME=%s' % (JAVA_HOME)]
This function searches the Directory Server anonymously with optional arguments possible
Directory Server Host Name
Directory Server Port Number
The baseDN for the search operation
The filter for the search operation
Optional extra parameters for specific test cases
'ldapsearch.%s -h %s -p %s %s -b "%s" "%s"' % (fileExt,dsInstanceHost,dsInstancePort,extraParams,dsBaseDN,dsFilter)
'%s' % (STAF_REMOTE_HOSTNAME)
'%s/ldapsearch.%s' % (OPENDS_BINPATH,fileExt)
'-h %s -p %s %s -b "%s" "%s"' % (dsInstanceHost,dsInstancePort,extraParams,dsBaseDN,dsFilter)
'%s' % (OPENDS_BINPATH)
['PATH=/bin:/usr/bin:%s' % (OPENDS_BINPATH), 'JAVA_HOME=%s' % (JAVA_HOME)]
This function an entry in the Directory Server
Directory Server Host Name
Directory Server Port Number
Directory Server Manager DN
Directory Server Manager Password
The entry to be deleted
Optional extra parameters for specific test cases
'ldapdelete.%s -h %s -p %s -D "%s" -w %s %s "%s"' % (fileExt,dsInstanceHost,dsInstancePort,dsInstanceDn,dsInstancePswd,extraParams,dsBaseDN)
'%s' % (STAF_REMOTE_HOSTNAME)
'%s/ldapdelete.%s' % (OPENDS_BINPATH,fileExt)
'-h %s -p %s -D "%s" -w %s %s "%s"' % (dsInstanceHost,dsInstancePort,dsInstanceDn,dsInstancePswd,extraParams,dsBaseDN)
'%s' % (OPENDS_BINPATH)
['PATH=/bin:/usr/bin:%s' % (OPENDS_BINPATH), 'JAVA_HOME=%s' % (JAVA_HOME)]
{ 'returncode' : RC ,
'result' : STAXResult }
This function compares the attribute and value an entry to the Directory Server
Directory Server Host Name
Directory Server Port Number
Directory Server Manager DN
Directory Server Manager Password
Attribute to be compared in Directory Server
Entry to be compared in Directory Server
Optional extra parameters for specific test cases
'ldapcompare.%s -h %s -p %s -D "%s" -w %s %s "%s" "%s"' % (fileExt,dsInstanceHost,dsInstancePort,dsInstanceDn,dsInstancePswd,extraParams,attrToBeCompared,entryToBeCompared)
'%s' % (STAF_REMOTE_HOSTNAME)
'%s/ldapcompare.%s' % (OPENDS_BINPATH,fileExt)
'-h %s -p %s -D "%s" -w %s %s "%s" "%s"' % (dsInstanceHost,dsInstancePort,dsInstanceDn,dsInstancePswd,extraParams,attrToBeCompared,entryToBeCompared)
'%s' % (OPENDS_BINPATH)
['PATH=/bin:/usr/bin:%s' % (OPENDS_BINPATH), 'JAVA_HOME=%s' % (JAVA_HOME)]