* kadmin.c Removed krb5_keytype, changed krb5_enctype to
authorChris Provenzano <proven@mit.edu>
Wed, 8 Feb 1995 01:34:11 +0000 (01:34 +0000)
committerChris Provenzano <proven@mit.edu>
Wed, 8 Feb 1995 01:34:11 +0000 (01:34 +0000)
                krb5_enctype *, changed krb5_preauthtype to krb5_preauthtype *
                for krb5_get_in_tkt_with_password() rotuine.

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

src/kadmin/client/ChangeLog
src/kadmin/client/kadmin.c

index c17ec8f6f11759c85ed96ff3ac96a77c98fcacc0..1a73277913c2ffaf3b6d7c5dacd4a57941cc6c43 100644 (file)
@@ -1,3 +1,9 @@
+Mon Feb 06 17:19:04 1995 Chris Provenzano  (proven@mit.edu)
+
+        * kadmin.c Removed krb5_keytype, changed krb5_enctype to
+                krb5_enctype *, changed krb5_preauthtype to krb5_preauthtype *
+                for krb5_get_in_tkt_with_password() rotuine.
+
 Fri Feb  3 03:03:27 1995  John Gilmore  <gnu@cygnus.com>
 
        * kadmin.c (main):  Real live non-kludged argument parsing.
index 814f50946d6a5770b66eb2ebb3683947b0bd4196..f44bc7b288e9bee97ffb2bf04c636bc5b669d8cf 100644 (file)
 #include <krb5/kdb.h>
 #include <krb5/kdb_dbm.h>
 
-/*
- * Try no preauthentication first; then try the encrypted timestamp
- */
-int preauth_search_list[] = {
-       0,                      
-       KRB5_PADATA_ENC_TIMESTAMP,
-       -1
-       };
-
 static krb5_error_code get_first_ticket 
        PROTOTYPE((krb5_context,
                   krb5_ccache, 
@@ -589,22 +580,11 @@ get_first_ticket(context, cache, client)
     }
 
        /*      Build Request for Initial Credentials */
-    for (i=0; preauth_search_list[i] >= 0; i++) {
-       retval = krb5_get_in_tkt_with_password(context, 
-                                       0,      /* options */
+    retval = krb5_get_in_tkt_with_password(context, 0, /* options */
                                        my_addresses,
-                                       /* do random preauth */
-                                        preauth_search_list[i],
-                                       ETYPE_DES_CBC_CRC,   /* etype */
-                                       KEYTYPE_DES,
-                                       password,
-                                       cache,
-                                       &my_creds,
-                                       0);
-       if (retval != KRB5KDC_ERR_PREAUTH_FAILED &&
-           retval != KRB5KRB_ERR_GENERIC)
-           break;
-    }
+                                        NULL, /* Default encryption list */
+                                        NULL, /* Default preauth list */
+                                       password, cache, &my_creds, 0);
     
         /* Do NOT Forget to zap password  */
     memset((char *) password, 0, pwsize);