directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r165503 - in /directory/shared/kerberos/trunk/common: ./ src/java/org/apache/kerberos/service/KdcConfiguration.java
Date Sun, 01 May 2005 13:43:19 GMT
Author: akarasulu
Date: Sun May  1 06:43:17 2005
New Revision: 165503

URL: http://svn.apache.org/viewcvs?rev=165503&view=rev
Log:
exposing default service ports for kerberos and changepw - perhaps a Constants interface should
be created for these down the road

Modified:
    directory/shared/kerberos/trunk/common/   (props changed)
    directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/service/KdcConfiguration.java

Propchange: directory/shared/kerberos/trunk/common/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Sun May  1 06:43:17 2005
@@ -1,4 +1,5 @@
 bin
+*.iml
 build
 target
 classes

Modified: directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/service/KdcConfiguration.java
URL: http://svn.apache.org/viewcvs/directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/service/KdcConfiguration.java?rev=165503&r1=165502&r2=165503&view=diff
==============================================================================
--- directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/service/KdcConfiguration.java
(original)
+++ directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/service/KdcConfiguration.java
Sun May  1 06:43:17 2005
@@ -34,9 +34,13 @@
     private static final String KDC_PRIMARY_REALM = "kdc.primary.realm";
     /** the prop key const for kdc.principal */
     private static final String KDC_PRINCIPAL = "kdc.principal";
-    
-    private static final int DEFAULT_PORT = 88;
-    private static final int CHANGEPW_PORT = 464;
+
+    /** the default kerberos port */
+    public static final int DEFAULT_KERBEROS_PORT = 88;
+
+    /** the default change password port */
+    public static final int DEFAULT_CHANGEPW_PORT = 464;
+
     private static final int BUFFER_SIZE = 1024;
     private static final int MINUTE = 1000 * 60;
     
@@ -130,7 +134,7 @@
         {
             return Integer.parseInt( ( String ) properties.get( key ) );
         }
-        return DEFAULT_PORT;
+        return DEFAULT_KERBEROS_PORT;
     }
 
     public int getBufferSize()
@@ -210,7 +214,7 @@
         {
             return Integer.parseInt( ( String ) properties.get( key ) );
         }
-        return CHANGEPW_PORT;
+        return DEFAULT_CHANGEPW_PORT;
     }
 
     public KerberosPrincipal getChangepwPrincipal()



Mime
View raw message