directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r280026 - in /directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/authentication: AuthenticationContext.java ConfigureAuthenticationChain.java
Date Sat, 10 Sep 2005 19:06:06 GMT
Author: erodriguez
Date: Sat Sep 10 12:06:03 2005
New Revision: 280026

URL: http://svn.apache.org/viewcvs?rev=280026&view=rev
Log:
Fixed a bug in the authentication service (AS) where the in-memory replay cache was improperly
instantiated each time the authentication context was created.  It is now created once, during
chain configuration.

Modified:
    directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/authentication/AuthenticationContext.java
    directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/authentication/ConfigureAuthenticationChain.java

Modified: directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/authentication/AuthenticationContext.java
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/authentication/AuthenticationContext.java?rev=280026&r1=280025&r2=280026&view=diff
==============================================================================
--- directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/authentication/AuthenticationContext.java
(original)
+++ directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/authentication/AuthenticationContext.java
Sat Sep 10 12:06:03 2005
@@ -22,19 +22,17 @@
 import org.apache.kerberos.kdc.KdcContext;
 import org.apache.kerberos.messages.components.Ticket;
 import org.apache.kerberos.messages.value.EncryptionKey;
-import org.apache.kerberos.replay.InMemoryReplayCache;
 import org.apache.kerberos.replay.ReplayCache;
 import org.apache.kerberos.store.PrincipalStoreEntry;
 
 public class AuthenticationContext extends KdcContext
 {
-    private ReplayCache replayCache = new InMemoryReplayCache();
-
     private Map checksumEngines = new HashMap();
 
     private Ticket ticket;
     private EncryptionKey clientKey;
     private EncryptionKey sessionKey;
+    private ReplayCache replayCache;
 
     private PrincipalStoreEntry clientEntry;
     private PrincipalStoreEntry serverEntry;

Modified: directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/authentication/ConfigureAuthenticationChain.java
URL: http://svn.apache.org/viewcvs/directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/authentication/ConfigureAuthenticationChain.java?rev=280026&r1=280025&r2=280026&view=diff
==============================================================================
--- directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/authentication/ConfigureAuthenticationChain.java
(original)
+++ directory/protocol-providers/kerberos/trunk/src/java/org/apache/kerberos/kdc/authentication/ConfigureAuthenticationChain.java
Sat Sep 10 12:06:03 2005
@@ -25,12 +25,18 @@
 import org.apache.kerberos.crypto.checksum.RsaMd4Checksum;
 import org.apache.kerberos.crypto.checksum.RsaMd5Checksum;
 import org.apache.kerberos.crypto.checksum.Sha1Checksum;
+import org.apache.kerberos.replay.InMemoryReplayCache;
+import org.apache.kerberos.replay.ReplayCache;
 
 public class ConfigureAuthenticationChain extends CommandBase
 {
+    private static final ReplayCache replayCache = new InMemoryReplayCache();
+
     public boolean execute( Context context ) throws Exception
     {
         AuthenticationContext authContext = (AuthenticationContext) context;
+
+        authContext.setReplayCache( replayCache );
 
         Map checksumEngines = authContext.getChecksumEngines();
         checksumEngines.put( ChecksumType.CRC32, new Crc32Checksum() );



Mime
View raw message