You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ka...@apache.org on 2014/02/13 16:47:25 UTC
svn commit: r1567956 -
/directory/apacheds/trunk/ldap-client-test/src/test/java/org/apache/directory/shared/client/api/LdapSSLConnectionTest.java
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();