Fix OPENDJ-288: Use INVALID_CREDENTIALS result code when disconnecting users because their entry has been deleted
| | |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright 2006-2010 Sun Microsystems, Inc. |
| | | # Portions copyright 2011 ForgeRock AS |
| | | |
| | | |
| | | |
| | |
| | | SEVERE_WARN_OP_REJECTED_BY_QUEUE_INTERRUPT_740=The request to process this \ |
| | | operation has been rejected because request handler thread was interrupted \ |
| | | while attempting to put the operation on the work queue |
| | | INFO_DISCONNECT_DUE_TO_INVALID_CREDENTIALS_741=Invalid Credentials |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.core; |
| | | import java.util.HashSet; |
| | |
| | | Message message = WARN_CLIENTCONNECTION_DISCONNECT_DUE_TO_DELETE.get( |
| | | String.valueOf(entry.getDN())); |
| | | |
| | | conn.disconnect(DisconnectReason.OTHER, true, message); |
| | | conn.disconnect(DisconnectReason.INVALID_CREDENTIALS, true, message); |
| | | } |
| | | } |
| | | } |
| | |
| | | case CONNECTION_REJECTED: |
| | | resultCode = LDAPResultCode.CONSTRAINT_VIOLATION; |
| | | break; |
| | | case INVALID_CREDENTIALS: |
| | | resultCode = LDAPResultCode.INVALID_CREDENTIALS; |
| | | break; |
| | | default: |
| | | resultCode = LDAPResultCode.OTHER; |
| | | break; |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions copyright 2011 ForgeRock AS |
| | | */ |
| | | package org.opends.server.types; |
| | | import org.opends.messages.Message; |
| | |
| | | |
| | | |
| | | /** |
| | | * The disconnect reason that indicates that the client connection was closed |
| | | * because the bound user's entry is no longer accessible. |
| | | */ |
| | | INVALID_CREDENTIALS( |
| | | INFO_DISCONNECT_DUE_TO_INVALID_CREDENTIALS.get()), |
| | | |
| | | |
| | | |
| | | /** |
| | | * The disconnect reason that indicates that the client connection |
| | | * was closed because the maximum allowed request size was exceeded. |
| | | */ |