directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r678814 - /directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/LdapSession.java
Date Tue, 22 Jul 2008 17:26:33 GMT
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();
     }
     
     



Mime
View raw message