directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r680891 - /directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewBindHandler.java
Date Wed, 30 Jul 2008 00:47:11 GMT
Author: akarasulu
Date: Tue Jul 29 17:47:10 2008
New Revision: 680891

URL: http://svn.apache.org/viewvc?rev=680891&view=rev
Log:
fixing so we do not presume anon users are authenticated

Modified:
    directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewBindHandler.java

Modified: directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewBindHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewBindHandler.java?rev=680891&r1=680890&r2=680891&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewBindHandler.java
(original)
+++ directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewBindHandler.java
Tue Jul 29 17:47:10 2008
@@ -119,7 +119,10 @@
 	        LdapProtocolUtils.setResponseControls( opContext, response );
 	        
 	        // Write it back to the client
-	        session.setAuthenticated();
+	        if ( ! session.getCoreSession().isAnonymous() )
+	        {
+	            session.setAuthenticated();
+	        }
 	        session.getIoSession().write( response );
 	        LOG.debug( "Returned SUCCESS message: {}.", response );
         }



Mime
View raw message