protected Object doPut(Context context, Request request, Response response, Object payload)
throws ResourceException,
InvalidConfigurationException
{
LdapAuthenticationTestRequest authRequest = (LdapAuthenticationTestRequest) payload;
CConnectionInfo connectionInfo = this.toLdapModel(authRequest.getData());
String ldapServerId = null;
if (request.getResourceRef() != null) {
ldapServerId = request.getResourceRef().getQueryAsForm().getFirstValue("ldapServerId");
}
replaceFakePassword(connectionInfo, ldapServerId, ldapConfigurationManager);