Working With Extended OperationsThis chapter demonstrates how to use LDAP extended operations.About LDAP Extended OperationsExtended operations allow additional operations to be defined for
services not already available in the protocolDetermining Supported Extended OperationsFor OpenDJ, the extended operations supported are listed in the
Administration Guide appendix, LDAP Extended
Operations. You can access the list of OIDs for
supported LDAP controls by reading the supportedExtension
attribute of the root DSE.$ ldapsearch
--baseDN ""
--searchScope base
--port 1389
"(objectclass=*)" supportedExtension
dn:
supportedExtension: 1.3.6.1.1.8
supportedExtension: 1.3.6.1.4.1.26027.1.6.1
supportedExtension: 1.3.6.1.4.1.26027.1.6.2
supportedExtension: 1.3.6.1.4.1.26027.1.6.3
supportedExtension: 1.3.6.1.4.1.4203.1.11.1
supportedExtension: 1.3.6.1.4.1.4203.1.11.3
supportedExtension: 1.3.6.1.4.1.1466.20037The following excerpt shows the Java equivalent of the preceding
command.
final LDAPConnectionFactory factory = new LDAPConnectionFactory(
host, port);
Connection connection = null;
try
{
connection = factory.getConnection();
connection.bind("", "".toCharArray());
final SearchResultEntry entry = connection.searchSingleEntry(
"", // DN is "" for root DSE.
SearchScope.BASE_OBJECT, // Read only the root DSE.
"objectclass=*", // Every object matches this filter.
"supportedExtension"); // Check supported extended operations.
final LDIFEntryWriter writer = new LDIFEntryWriter(System.out);
writer.writeComment("Supported extended ops for server " + host + ":" + port);
if (entry != null) writer.writeEntry(entry);
writer.flush();
}Cancel Extended OperationTODOPassword Modify Extended OperationTODOStart TLS Extended OperationTODOWho am I? Extended OperationTODOCustom Extended OperationsTODO