directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r771483 - /directory/apacheds/branches/apacheds-replication/ldap-api-test/src/test/java/org/apache/directory/shared/client/api/unit/AbstractServerTest.java
Date Mon, 04 May 2009 22:46:07 GMT
Author: elecharny
Date: Mon May  4 22:46:07 2009
New Revision: 771483

URL: http://svn.apache.org/viewvc?rev=771483&view=rev
Log:
Allow anonymous bind 

Modified:
    directory/apacheds/branches/apacheds-replication/ldap-api-test/src/test/java/org/apache/directory/shared/client/api/unit/AbstractServerTest.java

Modified: directory/apacheds/branches/apacheds-replication/ldap-api-test/src/test/java/org/apache/directory/shared/client/api/unit/AbstractServerTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-replication/ldap-api-test/src/test/java/org/apache/directory/shared/client/api/unit/AbstractServerTest.java?rev=771483&r1=771482&r2=771483&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-replication/ldap-api-test/src/test/java/org/apache/directory/shared/client/api/unit/AbstractServerTest.java
(original)
+++ directory/apacheds/branches/apacheds-replication/ldap-api-test/src/test/java/org/apache/directory/shared/client/api/unit/AbstractServerTest.java
Mon May  4 22:46:07 2009
@@ -247,6 +247,7 @@
         start++;
         directoryService = new DefaultDirectoryService();
         directoryService.setShutdownHookEnabled( false );
+        directoryService.setAllowAnonymousAccess( true );
         port = AvailablePortFinder.getNextAvailable( 1024 );
         ldapService = new LdapService();
         ldapService.setTcpTransport( new TcpTransport( port ) );
@@ -263,6 +264,7 @@
         // TODO shouldn't this be before calling configureLdapServer() ???
         ldapService.addExtendedOperationHandler( new StartTlsHandler() );
         ldapService.addExtendedOperationHandler( new StoredProcedureExtendedOperationHandler()
);
+        ldapService.setAllowAnonymousAccess( true );
 
         ldapService.start();
         setContexts( ServerDNConstants.ADMIN_SYSTEM_DN, "secret" );



Mime
View raw message