[7749] in Athena Bugs

home help back first fref pref prev next nref lref last post

Bug in kadmin (Release 7.2 and 7.3)

daemon@ATHENA.MIT.EDU (Theodore Ts'o)
Thu Jul 18 13:51:02 1991

Date: Thu, 18 Jul 91 13:51:01 -0400
From: tytso@ATHENA.MIT.EDU (Theodore Ts'o)
To: bugs@ATHENA.MIT.EDU
Reply-To: tytso@ATHENA.MIT.EDU

There is a bug in kadmin such that if it can not establish a connection
to the admin server to a realm the first time it tries, it will not try
again the second time and will produce a Confusing Error Message:

Example:  (with /etc/krb.conf moved out of the way; this also happens if
	you run a 7.3 kadmin on a 7.2 machine which doesn't have the
	compatibility symlinks):

Welcome to the Kerberos Administration Program, version 2
Type "help" if you need it.
admin:  cpw tytso
kadm error for realm ATHENA.MIT.EDU: Could not find administrating host

admin:  cpw tytso
Admin password:			<==== It shouldn't have gotten this far!
New password for tytso:
Verifying, please re-enter New password for tytso:
kadmin: Could not create socket
while changing password for tytso
admin:

Fix:

RCS file: RCS/kadmin.c,v
retrieving revision 4.7
diff -c -r4.7 kadmin.c
*** /tmp/,RCSt1021706   Thu Jul 18 13:49:08 1991
--- kadmin.c    Thu Jul 18 13:40:44 1991
***************
*** 108,116 ****
      if (strcmp(realm, krbrlm)) {
        strcpy(krbrlm, realm);
        if ((status = kadm_init_link(PWSERV_NAME, KRB_MASTER, krbrlm))
!           != KADM_SUCCESS)
            printf("kadm error for realm %s: %s\n",
                   krbrlm, error_message(status));
      }
      if (status)
        return 1;
--- 108,118 ----
      if (strcmp(realm, krbrlm)) {
        strcpy(krbrlm, realm);
        if ((status = kadm_init_link(PWSERV_NAME, KRB_MASTER, krbrlm))
!           != KADM_SUCCESS) {
            printf("kadm error for realm %s: %s\n",
                   krbrlm, error_message(status));
+           krbrlm[0] = '\0';
+           }
      }
      if (status)
        return 1;

						- Ted


home help back first fref pref prev next nref lref last post