BindRequest bindRequest = new BindRequestImpl();
bindRequest.setDn( userDn );
bindRequest.setCredentials( "12345" );
bindRequest.addControl( PP_REQ_CTRL );
// successful bind but must require pwd reset as was set by admin
BindResponse bindResponse = userConnection.bind( bindRequest );
assertEquals( ResultCodeEnum.SUCCESS, bindResponse.getLdapResult().getResultCode() );
assertEquals( PasswordPolicyErrorEnum.CHANGE_AFTER_RESET,
getPwdRespCtrl( bindResponse ).getResponse().getPasswordPolicyError() );
ModifyRequest modifyRequest = new ModifyRequestImpl();