directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1567956 - /directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapSSLConnectionTest.java
Date Thu, 13 Feb 2014 15:47:25 GMT
Author: kayyagari
Date: Thu Feb 13 15:47:25 2014
New Revision: 1567956

URL: http://svn.apache.org/r1567956
Log:
asserts for testing DIRAPI-173

Modified:
    directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapSSLConnectionTest.java

Modified: directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapSSLConnectionTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapSSLConnectionTest.java?rev=1567956&r1=1567955&r2=1567956&view=diff
==============================================================================
--- directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapSSLConnectionTest.java
(original)
+++ directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapSSLConnectionTest.java
Thu Feb 13 15:47:25 2014
@@ -163,8 +163,15 @@ public class LdapSSLConnectionTest exten
             connection = new LdapNetworkConnection( tlsConfig );
             tlsConfig.setUseTls( true );
             connection.connect();
+
             connection.bind( "uid=admin,ou=system", "secret" );
+            assertTrue( connection.isAuthenticated() );
 
+            // try multiple binds with startTLS DIRAPI-173
+            connection.bind( "uid=admin,ou=system", "secret" );
+            assertTrue( connection.isAuthenticated() );
+            
+            connection.bind( "uid=admin,ou=system", "secret" );
             assertTrue( connection.isAuthenticated() );
 
             connection.unBind();



Mime
View raw message