directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1022906 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
Date Fri, 15 Oct 2010 13:15:20 GMT
Author: kayyagari
Date: Fri Oct 15 13:15:20 2010
New Revision: 1022906

URL: http://svn.apache.org/viewvc?rev=1022906&view=rev
Log:
o fix for DIRSERVER-1567

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java?rev=1022906&r1=1022905&r2=1022906&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
Fri Oct 15 13:15:20 2010
@@ -902,6 +902,13 @@ public class AuthenticationInterceptor e
 
         DN dn = bindContext.getDn();
         Entry userEntry = bindContext.getEntry();
+        
+        // check if the user entry is null, it will be null
+        // in cases of anonymous bind
+        if ( authenticated && ( userEntry == null ) && directoryService.isAllowAnonymousAccess()
) 
+        {
+            return;
+        }
 
         if ( !authenticated )
         {



Mime
View raw message