directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r421215 - in /directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core: authn/SimpleAuthenticator.java trigger/TriggerService.java
Date Wed, 12 Jul 2006 10:02:58 GMT
Author: ersiner
Date: Wed Jul 12 03:02:55 2006
New Revision: 421215

URL: http://svn.apache.org/viewvc?rev=421215&view=rev
Log:
Added SERVICE_NAME property to TriggerService for using in interceptor bypass configurations.
Added TriggerService to Authenticator's user lookup interceptor bypass filter.
Added an message for authn exception when principal is missing.

Modified:
    directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/authn/SimpleAuthenticator.java
    directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/trigger/TriggerService.java

Modified: directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/authn/SimpleAuthenticator.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/authn/SimpleAuthenticator.java?rev=421215&r1=421214&r2=421215&view=diff
==============================================================================
--- directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/authn/SimpleAuthenticator.java
(original)
+++ directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/authn/SimpleAuthenticator.java
Wed Jul 12 03:02:55 2006
@@ -33,6 +33,7 @@
 import org.apache.directory.server.core.invocation.InvocationStack;
 import org.apache.directory.server.core.jndi.ServerContext;
 import org.apache.directory.server.core.partition.DirectoryPartitionNexusProxy;
+import org.apache.directory.server.core.trigger.TriggerService;
 import org.apache.directory.shared.ldap.aci.AuthenticationLevel;
 import org.apache.directory.shared.ldap.exception.LdapAuthenticationException;
 import org.apache.directory.shared.ldap.name.LdapDN;
@@ -67,6 +68,7 @@
         c.add( "subentryService" );
         c.add( "operationalAttributeService" );
         c.add( "eventService" );
+        c.add( TriggerService.SERVICE_NAME );
         USERLOOKUP_BYPASS = Collections.unmodifiableCollection( c );
     }
 
@@ -114,7 +116,7 @@
 
             if ( principal == null )
             {
-                throw new LdapAuthenticationException();
+                throw new LdapAuthenticationException( "Principal has not been specified"
);
             }
         }
 

Modified: directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/trigger/TriggerService.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/trigger/TriggerService.java?rev=421215&r1=421214&r2=421215&view=diff
==============================================================================
--- directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/trigger/TriggerService.java
(original)
+++ directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/trigger/TriggerService.java
Wed Jul 12 03:02:55 2006
@@ -63,6 +63,8 @@
  */
 public class TriggerService extends BaseInterceptor
 {
+    public static final String SERVICE_NAME = "triggerService";
+    
     /** the logger for this class */
     private static final Logger log = LoggerFactory.getLogger( TriggerService.class );
     



Mime
View raw message