| | |
| | | |
| | | LDAPAuthenticationHandler authHandler = |
| | | new LDAPAuthenticationHandler(r, w, "localhost", messageID); |
| | | authHandler.doSimpleBind(3, ByteString.valueOf("cn=Directory Manager"), |
| | | ByteString.valueOf("password"), requestControls, |
| | | authHandler.doSimpleBind(3, ByteString.valueOfUtf8("cn=Directory Manager"), |
| | | ByteString.valueOfUtf8("password"), requestControls, |
| | | responseControls); |
| | | |
| | | s.close(); |
| | |
| | | |
| | | try |
| | | { |
| | | authHandler.doSimpleBind(3, ByteString.valueOf("cn=Directory Manager"), |
| | | authHandler.doSimpleBind(3, ByteString.valueOfUtf8("cn=Directory Manager"), |
| | | ByteString.empty(), requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | |
| | | try |
| | | { |
| | | authHandler.doSimpleBind(3, ByteString.valueOf("cn=Directory Manager"), |
| | | ByteString.valueOf("wrongPassword"), |
| | | authHandler.doSimpleBind(3, ByteString.valueOfUtf8("cn=Directory Manager"), |
| | | ByteString.valueOfUtf8("wrongPassword"), |
| | | requestControls, responseControls); |
| | | } |
| | | finally |
| | |
| | | |
| | | LDAPAuthenticationHandler authHandler = |
| | | new LDAPAuthenticationHandler(r, w, "localhost", messageID); |
| | | authHandler.doSimpleBind(3, ByteString.valueOf("cn=Directory Manager"), |
| | | ByteString.valueOf("password"), |
| | | authHandler.doSimpleBind(3, ByteString.valueOfUtf8("cn=Directory Manager"), |
| | | ByteString.valueOfUtf8("password"), |
| | | requestControls, responseControls); |
| | | |
| | | s.close(); |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "CRAM-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | new LDAPAuthenticationHandler(r, w, "localhost", messageID); |
| | | |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "CRAM-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | s.close(); |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "CRAM-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "CRAM-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("invalidPassword"), |
| | | ByteString.valueOfUtf8("invalidPassword"), |
| | | "CRAM-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "CRAM-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "CRAM-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "CRAM-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "CRAM-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "CRAM-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | new LDAPAuthenticationHandler(r, w, "localhost", messageID); |
| | | |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "CRAM-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | s.close(); |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | LDAPAuthenticationHandler authHandler = |
| | | new LDAPAuthenticationHandler(r, w, this.hostname, messageID); |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | |
| | |
| | | LDAPAuthenticationHandler authHandler = |
| | | new LDAPAuthenticationHandler(r, w, this.hostname, messageID); |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | LDAPAuthenticationHandler authHandler = |
| | | new LDAPAuthenticationHandler(r, w, this.hostname, messageID); |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("wrongPassword"), |
| | | ByteString.valueOfUtf8("wrongPassword"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | } |
| | |
| | | LDAPAuthenticationHandler authHandler = |
| | | new LDAPAuthenticationHandler(r, w, this.hostname, messageID); |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), "PLAIN", |
| | | ByteString.valueOfUtf8("password"), "PLAIN", |
| | | saslProperties, requestControls, responseControls); |
| | | } |
| | | finally |
| | |
| | | LDAPAuthenticationHandler authHandler = |
| | | new LDAPAuthenticationHandler(r, w, "localhost", messageID); |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), "PLAIN", |
| | | ByteString.valueOfUtf8("password"), "PLAIN", |
| | | saslProperties, requestControls, responseControls); |
| | | |
| | | s.close(); |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), "PLAIN", |
| | | ByteString.valueOfUtf8("password"), "PLAIN", |
| | | saslProperties, requestControls, responseControls); |
| | | } |
| | | finally |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), "PLAIN", |
| | | ByteString.valueOfUtf8("password"), "PLAIN", |
| | | saslProperties, requestControls, responseControls); |
| | | } |
| | | finally |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), "PLAIN", |
| | | ByteString.valueOfUtf8("password"), "PLAIN", |
| | | saslProperties, requestControls, responseControls); |
| | | } |
| | | finally |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), "PLAIN", |
| | | ByteString.valueOfUtf8("password"), "PLAIN", |
| | | saslProperties, requestControls, responseControls); |
| | | } |
| | | finally |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), "PLAIN", |
| | | ByteString.valueOfUtf8("password"), "PLAIN", |
| | | saslProperties, requestControls, responseControls); |
| | | } |
| | | finally |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), "PLAIN", |
| | | ByteString.valueOfUtf8("password"), "PLAIN", |
| | | saslProperties, requestControls, responseControls); |
| | | } |
| | | finally |
| | |
| | | try |
| | | { |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), "PLAIN", |
| | | ByteString.valueOfUtf8("password"), "PLAIN", |
| | | saslProperties, requestControls, responseControls); |
| | | } |
| | | finally |
| | |
| | | LDAPAuthenticationHandler authHandler = |
| | | new LDAPAuthenticationHandler(r, w, "localhost", messageID); |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), "PLAIN", |
| | | ByteString.valueOfUtf8("password"), "PLAIN", |
| | | saslProperties, requestControls, responseControls); |
| | | |
| | | s.close(); |
| | |
| | | LDAPAuthenticationHandler authHandler = |
| | | new LDAPAuthenticationHandler(r, w, "localhost", messageID); |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("wrongPassword"), "PLAIN", |
| | | ByteString.valueOfUtf8("wrongPassword"), "PLAIN", |
| | | saslProperties, requestControls, responseControls); |
| | | |
| | | s.close(); |
| | |
| | | LDAPAuthenticationHandler authHandler = |
| | | new LDAPAuthenticationHandler(r, w, "localhost", messageID); |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), "PLAIN", |
| | | ByteString.valueOfUtf8("password"), "PLAIN", |
| | | saslProperties, requestControls, responseControls); |
| | | |
| | | s.close(); |
| | |
| | | |
| | | LDAPAuthenticationHandler authHandler = |
| | | new LDAPAuthenticationHandler(r, w, "localhost", messageID); |
| | | authHandler.doSimpleBind(3, ByteString.valueOf("cn=Directory Manager"), |
| | | ByteString.valueOf("password"), requestControls, |
| | | authHandler.doSimpleBind(3, ByteString.valueOfUtf8("cn=Directory Manager"), |
| | | ByteString.valueOfUtf8("password"), requestControls, |
| | | responseControls); |
| | | assertNotNull(authHandler.requestAuthorizationIdentity()); |
| | | |
| | |
| | | |
| | | LDAPAuthenticationHandler authHandler = |
| | | new LDAPAuthenticationHandler(r, w, "localhost", messageID); |
| | | authHandler.doSimpleBind(3, ByteString.valueOf("uid=test.user,o=test"), |
| | | ByteString.valueOf("password"), requestControls, |
| | | authHandler.doSimpleBind(3, ByteString.valueOfUtf8("uid=test.user,o=test"), |
| | | ByteString.valueOfUtf8("password"), requestControls, |
| | | responseControls); |
| | | assertNotNull(authHandler.requestAuthorizationIdentity()); |
| | | |
| | |
| | | new LDAPAuthenticationHandler(r, w, "localhost", messageID); |
| | | |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "CRAM-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | assertNotNull(authHandler.requestAuthorizationIdentity()); |
| | |
| | | LDAPAuthenticationHandler authHandler = |
| | | new LDAPAuthenticationHandler(r, w, this.hostname, messageID); |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), |
| | | ByteString.valueOfUtf8("password"), |
| | | "DIGEST-MD5", saslProperties, requestControls, |
| | | responseControls); |
| | | assertNotNull(authHandler.requestAuthorizationIdentity()); |
| | |
| | | LDAPAuthenticationHandler authHandler = |
| | | new LDAPAuthenticationHandler(r, w, "localhost", messageID); |
| | | authHandler.doSASLBind(ByteString.empty(), |
| | | ByteString.valueOf("password"), "PLAIN", |
| | | ByteString.valueOfUtf8("password"), "PLAIN", |
| | | saslProperties, requestControls, responseControls); |
| | | assertNotNull(authHandler.requestAuthorizationIdentity()); |
| | | |