Fix issue 3638 - Referrals not properly managed for bind operations
| | |
| | | } |
| | | |
| | | userEntry = null; |
| | | throw new DirectoryException(ResultCode.INVALID_CREDENTIALS, |
| | | de.getMessageObject()); |
| | | |
| | | if (de.getResultCode() == ResultCode.REFERRAL) |
| | | { |
| | | // Re-throw referral exceptions - these should be passed back |
| | | // to the client. |
| | | throw de; |
| | | } |
| | | else |
| | | { |
| | | // Replace other exceptions in case they expose any sensitive |
| | | // information. |
| | | throw new DirectoryException(ResultCode.INVALID_CREDENTIALS, |
| | | de.getMessageObject()); |
| | | } |
| | | } |
| | | |
| | | if (userEntry == null) |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test(enabled=false) |
| | | @Test() |
| | | public void testSimpleBindReferral() |
| | | throws Exception |
| | | { |