You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2008/07/22 19:26:33 UTC

svn commit: r678814 - /directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/LdapSession.java

Author: elecharny
Date: Tue Jul 22 10:26:33 2008
New Revision: 678814

URL: http://svn.apache.org/viewvc?rev=678814&view=rev
Log:
The isAuthenticated method should also consider the type of authentication. Anonymous bind is not consider to be authenticated.

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

Modified: directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/LdapSession.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/LdapSession.java?rev=678814&r1=678813&r2=678814&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/LdapSession.java (original)
+++ directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/LdapSession.java Tue Jul 22 10:26:33 2008
@@ -66,7 +66,7 @@
     
     public boolean isAuthenticated()
     {
-        return coreSession != null;
+        return ( coreSession != null ) && !coreSession.isAnonymous();
     }