我正在使用OpenDS LDAP server
和Unboundid-ldapsdk-2.3.8.jar
。当我请求像StartTransactionExtendedRequest
or那样的扩展操作时StartTransactionExtendedResult
,transactionID
我得到一个ErrorCode = 53(Unwilling to perform )
and的错误messageID = 2
。
完整的错误信息如下:
extendedResult = (com.unboundid.ldap.sdk.extensions.StartTransactionExtendedResult) StartTransactionExtendedResult(resultCode=53 (不愿意执行), messageID=2, diagnosticMessage='没有向目录服务器注册扩展操作处理程序来处理扩展操作请求 OID 为 1.3.6.1.1.21.1')
我的代码片段也在下面给出:
StartTransactionExtendedResult extendedResult;
ASN1OctetString txnId = new ASN1OctetString();
String ldapDnForUser = "ou=organization,dc=ecn_id,dc=org";
try {
StartTransactionExtendedRequest tReq = new StartTransactionExtendedRequest();
extendedResult = (StartTransactionExtendedResult) this.ldapCon.getlConn().processExtendedOperation(tReq);
} catch (LDAPException ex) {
ex.printStackTrace();
extendedResult = new StartTransactionExtendedResult(new ExtendedResult(ex));
}
txnId = extendedResult.getTransactionID();
LDAPTestUtils.assertResultCodeEquals(extendedResult, ResultCode.SUCCESS);
请任何人帮助如何解决它。