| | |
| | | public class InternalClientConnection |
| | | extends ClientConnection |
| | | { |
| | | /** |
| | | * The protocol verison string that will be used for internal bind |
| | | * operations. Since this is modeled after LDAPv3 binds, it will |
| | | * use a version number string of "3". |
| | | */ |
| | | public static final String PROTOCOL_VERSION = "3"; |
| | | |
| | | |
| | | |
| | | // The message ID counter to use for internal connections. |
| | | private static AtomicInteger nextMessageID; |
| | | |
| | |
| | | { |
| | | BindOperation bindOperation = |
| | | new BindOperation(this, nextOperationID(), nextMessageID(), |
| | | new ArrayList<Control>(0), rawBindDN, |
| | | password); |
| | | new ArrayList<Control>(0), |
| | | PROTOCOL_VERSION, rawBindDN, password); |
| | | bindOperation.setInternalOperation(true); |
| | | |
| | | bindOperation.run(); |
| | |
| | | { |
| | | BindOperation bindOperation = |
| | | new BindOperation(this, nextOperationID(), nextMessageID(), |
| | | new ArrayList<Control>(0), bindDN, |
| | | password); |
| | | new ArrayList<Control>(0), |
| | | PROTOCOL_VERSION, bindDN, password); |
| | | bindOperation.setInternalOperation(true); |
| | | |
| | | bindOperation.run(); |
| | |
| | | { |
| | | BindOperation bindOperation = |
| | | new BindOperation(this, nextOperationID(), nextMessageID(), |
| | | new ArrayList<Control>(0), rawBindDN, |
| | | saslMechanism, saslCredentials); |
| | | new ArrayList<Control>(0), |
| | | PROTOCOL_VERSION, rawBindDN, saslMechanism, |
| | | saslCredentials); |
| | | bindOperation.setInternalOperation(true); |
| | | |
| | | bindOperation.run(); |
| | |
| | | { |
| | | BindOperation bindOperation = |
| | | new BindOperation(this, nextOperationID(), nextMessageID(), |
| | | new ArrayList<Control>(0), bindDN, |
| | | saslMechanism, saslCredentials); |
| | | new ArrayList<Control>(0), |
| | | PROTOCOL_VERSION, bindDN, saslMechanism, |
| | | saslCredentials); |
| | | bindOperation.setInternalOperation(true); |
| | | |
| | | bindOperation.run(); |