directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r561702 - in /directory/apacheds/trunk/protocol-kerberos/src: main/java/org/apache/directory/server/kerberos/kdc/ main/java/org/apache/directory/server/kerberos/kdc/authentication/ main/java/org/apache/directory/server/kerberos/kdc/ticketgr...
Date Wed, 01 Aug 2007 08:13:05 GMT
Author: erodriguez
Date: Wed Aug  1 01:12:58 2007
New Revision: 561702

URL: http://svn.apache.org/viewvc?view=rev&rev=561702
Log:
Minor change to configuration to use term "postdated," which is more in line with the Kerberos
RFC's.  Collateral updates in ticket generation classes and policy test classes.

Modified:
    directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcConfiguration.java
    directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/authentication/GenerateTicket.java
    directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/ticketgrant/GenerateTicket.java
    directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/AuthenticationPolicyTest.java
    directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/TicketGrantingPolicyTest.java

Modified: directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcConfiguration.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcConfiguration.java?view=diff&rev=561702&r1=561701&r2=561702
==============================================================================
--- directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcConfiguration.java
(original)
+++ directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcConfiguration.java
Wed Aug  1 01:12:58 2007
@@ -82,8 +82,8 @@
     /** The default for allowing proxiable tickets */
     private static final boolean DEFAULT_TGS_PROXIABLE_ALLOWED = true;
 
-    /** The default for allowing postdatable tickets */
-    private static final boolean DEFAULT_TGS_POSTDATE_ALLOWED = true;
+    /** The default for allowing postdated tickets */
+    private static final boolean DEFAULT_TGS_POSTDATED_ALLOWED = true;
 
     /** The default for allowing renewable tickets */
     private static final boolean DEFAULT_TGS_RENEWABLE_ALLOWED = true;
@@ -121,8 +121,8 @@
     /** Whether proxiable addresses are allowed. */
     private boolean isProxiableAllowed = DEFAULT_TGS_PROXIABLE_ALLOWED;
 
-    /** Whether postdating is allowed. */
-    private boolean isPostdateAllowed = DEFAULT_TGS_POSTDATE_ALLOWED;
+    /** Whether postdated tickets are allowed. */
+    private boolean isPostdatedAllowed = DEFAULT_TGS_POSTDATED_ALLOWED;
 
     /** Whether renewable tickets are allowed. */
     private boolean isRenewableAllowed = DEFAULT_TGS_RENEWABLE_ALLOWED;
@@ -175,11 +175,11 @@
 
 
     /**
-     * @return the isPostdateAllowed
+     * @return the isPostdatedAllowed
      */
-    public boolean isPostdateAllowed()
+    public boolean isPostdatedAllowed()
     {
-        return isPostdateAllowed;
+        return isPostdatedAllowed;
     }
 
 
@@ -265,11 +265,11 @@
 
 
     /**
-     * @param isPostdateAllowed the isPostdateAllowed to set
+     * @param isPostdatedAllowed the isPostdatedAllowed to set
      */
-    public void setPostdateAllowed( boolean isPostdateAllowed )
+    public void setPostdatedAllowed( boolean isPostdatedAllowed )
     {
-        this.isPostdateAllowed = isPostdateAllowed;
+        this.isPostdatedAllowed = isPostdatedAllowed;
     }
 
 

Modified: directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/authentication/GenerateTicket.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/authentication/GenerateTicket.java?view=diff&rev=561702&r1=561701&r2=561702
==============================================================================
--- directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/authentication/GenerateTicket.java
(original)
+++ directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/authentication/GenerateTicket.java
Wed Aug  1 01:12:58 2007
@@ -103,7 +103,7 @@
 
         if ( request.getOption( KdcOptions.ALLOW_POSTDATE ) )
         {
-            if ( !config.isPostdateAllowed() )
+            if ( !config.isPostdatedAllowed() )
             {
                 throw new KerberosException( ErrorType.KDC_ERR_POLICY );
             }
@@ -160,7 +160,7 @@
          */
         if ( request.getOption( KdcOptions.POSTDATED ) )
         {
-            if ( !config.isPostdateAllowed() )
+            if ( !config.isPostdatedAllowed() )
             {
                 throw new KerberosException( ErrorType.KDC_ERR_POLICY );
             }

Modified: directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/ticketgrant/GenerateTicket.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/ticketgrant/GenerateTicket.java?view=diff&rev=561702&r1=561701&r2=561702
==============================================================================
--- directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/ticketgrant/GenerateTicket.java
(original)
+++ directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/ticketgrant/GenerateTicket.java
Wed Aug  1 01:12:58 2007
@@ -228,7 +228,7 @@
 
         if ( request.getOption( KdcOptions.ALLOW_POSTDATE ) )
         {
-            if ( !config.isPostdateAllowed() )
+            if ( !config.isPostdatedAllowed() )
             {
                 throw new KerberosException( ErrorType.KDC_ERR_POLICY );
             }
@@ -253,7 +253,7 @@
          */
         if ( request.getOption( KdcOptions.POSTDATED ) )
         {
-            if ( !config.isPostdateAllowed() )
+            if ( !config.isPostdatedAllowed() )
             {
                 throw new KerberosException( ErrorType.KDC_ERR_POLICY );
             }
@@ -271,7 +271,7 @@
 
         if ( request.getOption( KdcOptions.VALIDATE ) )
         {
-            if ( !config.isPostdateAllowed() )
+            if ( !config.isPostdatedAllowed() )
             {
                 throw new KerberosException( ErrorType.KDC_ERR_POLICY );
             }

Modified: directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/AuthenticationPolicyTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/AuthenticationPolicyTest.java?view=diff&rev=561702&r1=561701&r2=561702
==============================================================================
--- directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/AuthenticationPolicyTest.java
(original)
+++ directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/AuthenticationPolicyTest.java
Wed Aug  1 01:12:58 2007
@@ -136,7 +136,7 @@
     {
         // Deny POSTDATED tickets in policy.
         config.setPaEncTimestampRequired( false );
-        config.setPostdateAllowed( false );
+        config.setPostdatedAllowed( false );
 
         RequestBodyModifier modifier = new RequestBodyModifier();
         modifier.setClientName( getPrincipalName( "hnelson" ) );
@@ -171,7 +171,7 @@
     {
         // Deny POSTDATED tickets in policy.
         config.setPaEncTimestampRequired( false );
-        config.setPostdateAllowed( false );
+        config.setPostdatedAllowed( false );
 
         RequestBodyModifier modifier = new RequestBodyModifier();
         modifier.setClientName( getPrincipalName( "hnelson" ) );

Modified: directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/TicketGrantingPolicyTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/TicketGrantingPolicyTest.java?view=diff&rev=561702&r1=561701&r2=561702
==============================================================================
--- directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/TicketGrantingPolicyTest.java
(original)
+++ directory/apacheds/trunk/protocol-kerberos/src/test/java/org/apache/directory/server/kerberos/protocol/TicketGrantingPolicyTest.java
Wed Aug  1 01:12:58 2007
@@ -409,7 +409,7 @@
     public void testAllowPostdate() throws Exception
     {
         // Deny ALLOW_POSTDATE tickets in policy.
-        config.setPostdateAllowed( false );
+        config.setPostdatedAllowed( false );
 
         // Get the mutable ticket part.
         KerberosPrincipal clientPrincipal = new KerberosPrincipal( "hnelson@EXAMPLE.COM"
);
@@ -458,7 +458,7 @@
     public void testPostdated() throws Exception
     {
         // Deny POSTDATED tickets in policy.
-        config.setPostdateAllowed( false );
+        config.setPostdatedAllowed( false );
 
         // Get the mutable ticket part.
         KerberosPrincipal clientPrincipal = new KerberosPrincipal( "hnelson@EXAMPLE.COM"
);
@@ -507,7 +507,7 @@
     public void testValidateInvalidTicket() throws Exception
     {
         // Deny VALIDATE tickets in policy.
-        config.setPostdateAllowed( false );
+        config.setPostdatedAllowed( false );
 
         // Get the mutable ticket part.
         KerberosPrincipal clientPrincipal = new KerberosPrincipal( "hnelson@EXAMPLE.COM"
);



Mime
View raw message