You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by er...@apache.org on 2005/01/20 18:20:54 UTC
svn commit: r125796 - in incubator/directory/kerberos/trunk/protocol: . src/java/org/apache/kerberos/protocol
Author: erodriguez
Date: Thu Jan 20 09:20:53 2005
New Revision: 125796
URL: http://svn.apache.org/viewcvs?view=rev&rev=125796
Log:
Troubleshooting of the Kerberos front-end to get it working with MINA.
Modified:
incubator/directory/kerberos/trunk/protocol/project.xml
incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosEncoder.java
incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosProtocolHandler.java
incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosProtocolProvider.java
Modified: incubator/directory/kerberos/trunk/protocol/project.xml
Url: http://svn.apache.org/viewcvs/incubator/directory/kerberos/trunk/protocol/project.xml?view=diff&rev=125796&p1=incubator/directory/kerberos/trunk/protocol/project.xml&r1=125795&p2=incubator/directory/kerberos/trunk/protocol/project.xml&r2=125796
==============================================================================
--- incubator/directory/kerberos/trunk/protocol/project.xml (original)
+++ incubator/directory/kerberos/trunk/protocol/project.xml Thu Jan 20 09:20:53 2005
@@ -1,76 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<extend>${basedir}/../project.xml</extend>
+ <pomVersion>1</pomVersion>
<artifactId>kerberos-protocol</artifactId>
- <name>Kerberos Protocol Provider</name>
- <inceptionYear>2004</inceptionYear>
- <shortDescription>The Kerberos SEDA Protocol Provider</shortDescription>
+ <groupId>incubator-directory</groupId>
+ <id>kerberos-protocol</id>
+ <name>Kerberos Server Protocol Front-End</name>
+ <package>org.apache.kerberos</package>
+ <inceptionYear>2005</inceptionYear>
+ <shortDescription>Apache Kerberos Front-End</shortDescription>
<description>
- The SEDA protocol provider used to snap in Kerberos handlers and codecs into
- the SEDA framework.
+ The Apache Kerberos V5 protocol front-end.
</description>
<dependencies>
<dependency>
- <groupId>regexp</groupId>
- <artifactId>regexp</artifactId>
- <version>1.2</version>
- <type>jar</type>
- <url>http://jakarta.apache.org/regexp/index.html</url>
- <properties>
- <gump.project>jakarta-regexp</gump.project>
- </properties>
- </dependency>
- <dependency>
- <groupId>antlr</groupId>
- <artifactId>antlr</artifactId>
- <version>2.7.2</version>
- <url>http://antlr.org/</url>
- </dependency>
- <dependency>
<groupId>incubator-directory</groupId>
- <artifactId>asn1-codec</artifactId>
- <version>0.2-SNAPSHOT</version>
- <url>http://incubator.apache.org/directory/subprojects/asn1/ber</url>
- </dependency>
- <dependency>
- <groupId>incubator-directory</groupId>
- <artifactId>asn1-ber</artifactId>
- <version>0.2-SNAPSHOT</version>
- <url>http://incubator.apache.org/directory/subprojects/asn1/ber</url>
- </dependency>
- <dependency>
- <groupId>incubator-directory</groupId>
- <artifactId>apseda</artifactId>
- <version>0.2-SNAPSHOT</version>
- <url>http://incubator.apache.org/directory/subprojects/seda</url>
- </dependency>
- <dependency>
- <groupId>incubator-directory</groupId>
- <artifactId>server-main</artifactId>
- <version>0.8-SNAPSHOT</version>
- <url>http://incubator.apache.org/directory/subprojects/server</url>
+ <artifactId>kerberos-core</artifactId>
+ <version>0.4-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>incubator-directory</groupId>
- <artifactId>kerberos-core</artifactId>
- <version>0.4-SNAPSHOT</version>
- <url>http://incubator.apache.org/directory/subprojects/kerberos</url>
+ <artifactId>mina</artifactId>
+ <version>0.7-SNAPSHOT</version>
</dependency>
</dependencies>
-
- <reports>
- <report>maven-changes-plugin</report>
- <report>maven-tasklist-plugin</report>
- <report>maven-junit-report-plugin</report>
- <report>maven-jdepend-plugin</report>
- <!-- <report>maven-jcoverage-plugin</report> breaks build -->
- <!-- <report>maven-checkstyle-plugin</report> -->
- <report>maven-simian-plugin</report>
- <report>maven-javadoc-plugin</report>
- <report>maven-jxr-plugin</report>
- <report>maven-license-plugin</report>
- <report>maven-multiproject-plugin</report>
- </reports>
-
</project>
Modified: incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosEncoder.java
Url: http://svn.apache.org/viewcvs/incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosEncoder.java?view=diff&rev=125796&p1=incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosEncoder.java&r1=125795&p2=incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosEncoder.java&r2=125796
==============================================================================
--- incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosEncoder.java (original)
+++ incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosEncoder.java Thu Jan 20 09:20:53 2005
@@ -38,7 +38,7 @@
public void encode( ProtocolSession session, Object message, ProtocolEncoderOutput out )
throws ProtocolViolationException
{
- ByteBuffer buf = ByteBuffer.allocate( 512 );
+ ByteBuffer buf = ByteBuffer.allocate( 1024 );
try
{
Modified: incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosProtocolHandler.java
Url: http://svn.apache.org/viewcvs/incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosProtocolHandler.java?view=diff&rev=125796&p1=incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosProtocolHandler.java&r1=125795&p2=incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosProtocolHandler.java&r2=125796
==============================================================================
--- incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosProtocolHandler.java (original)
+++ incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosProtocolHandler.java Thu Jan 20 09:20:53 2005
@@ -78,7 +78,7 @@
try
{
KdcRequest request = (KdcRequest)message;
-
+
int messageType = request.getMessageType().getOrdinal();
switch ( messageType )
Modified: incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosProtocolProvider.java
Url: http://svn.apache.org/viewcvs/incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosProtocolProvider.java?view=diff&rev=125796&p1=incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosProtocolProvider.java&r1=125795&p2=incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosProtocolProvider.java&r2=125796
==============================================================================
--- incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosProtocolProvider.java (original)
+++ incubator/directory/kerberos/trunk/protocol/src/java/org/apache/kerberos/protocol/KerberosProtocolProvider.java Thu Jan 20 09:20:53 2005
@@ -29,19 +29,8 @@
public class KerberosProtocolProvider implements ProtocolProvider
{
- private BootstrapStore store;
- private PrincipalStore bootstrap;
- private KdcConfiguration config;
-
- public KerberosProtocolProvider( BootstrapStore store, PrincipalStore bootstrap, KdcConfiguration config )
- {
- this.store = store;
- this.bootstrap = bootstrap;
- this.config = config;
- }
-
// Protocol handler is usually a singleton.
- private ProtocolHandler HANDLER = new KerberosProtocolHandler( store, bootstrap, config );
+ private static ProtocolHandler HANDLER;
// Codec factory is also usually a singleton.
private static ProtocolCodecFactory CODEC_FACTORY = new ProtocolCodecFactory()
@@ -58,6 +47,11 @@
return new KerberosDecoder();
}
};
+
+ public KerberosProtocolProvider( BootstrapStore store, PrincipalStore bootstrap, KdcConfiguration config )
+ {
+ HANDLER = new KerberosProtocolHandler( store, bootstrap, config );
+ }
public ProtocolCodecFactory getCodecFactory()
{