directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r561705 - /directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/preauthentication/VerifyEncryptedTimestamp.java
Date Wed, 01 Aug 2007 08:20:10 GMT
Author: erodriguez
Date: Wed Aug  1 01:20:08 2007
New Revision: 561705

URL: http://svn.apache.org/viewvc?view=rev&rev=561705
Log:
Added a check for unsupported pre-authentication types so that the correct error is returned.

Modified:
    directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/preauthentication/VerifyEncryptedTimestamp.java

Modified: directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/preauthentication/VerifyEncryptedTimestamp.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/preauthentication/VerifyEncryptedTimestamp.java?view=diff&rev=561705&r1=561704&r2=561705
==============================================================================
--- directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/preauthentication/VerifyEncryptedTimestamp.java
(original)
+++ directory/apacheds/trunk/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/preauthentication/VerifyEncryptedTimestamp.java
Wed Aug  1 01:20:08 2007
@@ -121,6 +121,11 @@
                     }
                 }
 
+                if ( preAuthData.length > 0 && timestamp == null )
+                {
+                    throw new KerberosException( ErrorType.KDC_ERR_PADATA_TYPE_NOSUPP );
+                }
+
                 if ( timestamp == null )
                 {
                     throw new KerberosException( ErrorType.KDC_ERR_PREAUTH_REQUIRED,



Mime
View raw message