kdc_preauth.c (get_preauth_hint_list): Don't add the pseudo preauth
authorTheodore Tso <tytso@mit.edu>
Fri, 20 Feb 1998 21:49:36 +0000 (21:49 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 20 Feb 1998 21:49:36 +0000 (21:49 +0000)
type KRB5_PADATA_PW_SALT to the hint list of supported
preauthentication systems, since it doesn't help to send it.  (And it
may screw up Cygnus KerbNet clients.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10466 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/ChangeLog
src/kdc/kdc_preauth.c

index af6c433aed39ae24289734a8299067065ff5f16b..eaab61b0e4d86f1e352738f17f2da56a2cc00acc 100644 (file)
@@ -1,3 +1,10 @@
+Fri Feb 20 15:58:21 1998  Theodore Y. Ts'o  <tytso@mit.edu>
+
+       * kdc_preauth.c (get_preauth_hint_list): Don't add the pseudo
+               preauth type KRB5_PADATA_PW_SALT to the hint list of
+               supported preauthentication systems, since it doesn't help
+               to send it.  (And it may screw up Cygnus KerbNet clients.)
+
 Wed Feb 18 16:04:22 1998  Tom Yu  <tlyu@mit.edu>
 
        * Makefile.in (thisconfigdir): Remove trailing slash.
index 2651756a64f67f2e816efdd06c6a4ce6849baaf3..b88c7728318c892ca3836776719842395e4dd30b 100644 (file)
@@ -87,6 +87,8 @@ static krb5_error_code get_sam_edata
 #define PA_HARDWARE    0x00000001
 #define PA_REQUIRED    0x00000002
 #define PA_SUFFICIENT  0x00000004
+       /* Not really a padata, so don't include it in the etype list*/
+#define PA_PSEUDO      0x00000008 
 
 static krb5_preauth_systems preauth_systems[] = {
     {
@@ -105,7 +107,7 @@ static krb5_preauth_systems preauth_systems[] = {
     },
     {
        KRB5_PADATA_PW_SALT,
-       0,
+       PA_PSEUDO,              /* Don't include this in the error list */
        0, 
        0,
        return_pw_salt
@@ -197,6 +199,8 @@ void get_preauth_hint_list(request, client, server, e_data)
     for (ap = preauth_systems; ap->type != -1; ap++) {
        if (hw_only && !(ap->flags & PA_HARDWARE))
            continue;
+       if (ap->flags & PA_PSEUDO)
+           continue;
        *pa = malloc(sizeof(krb5_pa_data));
        if (*pa == 0)
            goto errout;