| | |
| | | // The DN of the user entry that is attempting to authenticate. |
| | | private DN userEntryDN; |
| | | |
| | | // The entry of the user that successfully authenticated during processing of |
| | | // this bind operation. |
| | | private Entry authenticatedUserEntry; |
| | | |
| | | // The DN of the user as whom a SASL authentication was attempted (regardless |
| | | // of whether the authentication was successful) for the purpose of updating |
| | | // password policy state information. |
| | |
| | | responseControls = new ArrayList<Control>(0); |
| | | authFailureID = 0; |
| | | authFailureReason = null; |
| | | authenticatedUserEntry = null; |
| | | saslAuthUserEntry = null; |
| | | isFirstWarning = false; |
| | | isGraceLogin = false; |
| | |
| | | this.rawBindDN = rawBindDN; |
| | | } |
| | | |
| | | bindDN = null; |
| | | userEntryDN = null; |
| | | responseControls = new ArrayList<Control>(0); |
| | | authFailureID = 0; |
| | | authFailureReason = null; |
| | | saslAuthUserEntry = null; |
| | | bindDN = null; |
| | | userEntryDN = null; |
| | | responseControls = new ArrayList<Control>(0); |
| | | authFailureID = 0; |
| | | authFailureReason = null; |
| | | authenticatedUserEntry = null; |
| | | saslAuthUserEntry = null; |
| | | } |
| | | |
| | | |
| | |
| | | responseControls = new ArrayList<Control>(0); |
| | | authFailureID = 0; |
| | | authFailureReason = null; |
| | | authenticatedUserEntry = null; |
| | | saslAuthUserEntry = null; |
| | | isFirstWarning = false; |
| | | isGraceLogin = false; |
| | |
| | | rawBindDN = new ASN1OctetString(bindDN.toString()); |
| | | } |
| | | |
| | | responseControls = new ArrayList<Control>(0); |
| | | authFailureID = 0; |
| | | authFailureReason = null; |
| | | saslAuthUserEntry = null; |
| | | userEntryDN = null; |
| | | responseControls = new ArrayList<Control>(0); |
| | | authFailureID = 0; |
| | | authFailureReason = null; |
| | | authenticatedUserEntry = null; |
| | | saslAuthUserEntry = null; |
| | | userEntryDN = null; |
| | | } |
| | | |
| | | |
| | |
| | | setResultCode(ResultCode.SUCCESS); |
| | | |
| | | boolean isRoot = DirectoryServer.isRootDN(userEntry.getDN()); |
| | | authInfo = new AuthenticationInfo(userEntry.getDN(), |
| | | simplePassword, isRoot); |
| | | authInfo = new AuthenticationInfo(userEntry, simplePassword, |
| | | isRoot); |
| | | |
| | | |
| | | // See if the user's entry contains a custom size limit. |
| | |
| | | // Update the authentication information for the user. |
| | | if ((getResultCode() == ResultCode.SUCCESS) && (authInfo != null)) |
| | | { |
| | | authenticatedUserEntry = authInfo.getAuthenticationEntry(); |
| | | clientConnection.setAuthenticationInfo(authInfo); |
| | | clientConnection.setSizeLimit(sizeLimit); |
| | | clientConnection.setTimeLimit(timeLimit); |