[2845] in Kerberos-V5-bugs

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

krb5-admin/517: kadmind can't find kadm5.keytab

daemon@ATHENA.MIT.EDU (sfreed@gilasoft.com)
Wed Dec 24 12:34:11 1997

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: bjaspan@MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, sfreed@gilasoft.com
Date: Wed, 24 Dec 1997 10:35:57 -0700 (MST)
From: sfreed@gilasoft.com
Reply-To: sfreed@gilasoft.com
To: krb5-bugs@MIT.EDU


>Number:         517
>Category:       krb5-admin
>Synopsis:       kadmind does not look for default kadm5.keytab file
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bjaspan
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Wed Dec 24 12:34:03 EST 1997
>Last-Modified:
>Originator:     Steven Freed
>Organization:
Magic Software Development, Inc.

>Release:        krb5-1.0.4
>Environment:
Intel Pentium, BSD/OS 3.1 standard install
System: BSD/OS tiehack.gilasoft.com 3.1 BSDI BSD/OS 3.1 Kernel #1: Wed Oct 29 09:38:31 MST 1997 sfreed@tiehack.gilasoft.com:/usr/src/sys/compile/TIEHACK i386


>Description:
      In ./include/krb5/osconf.h, it has the line:
             
           #define DEFAULT_KADM5_KEYTAB "/usr/local/var/krb5kdc/kadm5.keytab"
               
      but kadmind cannot find it. Doing a ktace on kadmind, it seems that
      it only looks in the file /etc/krb5.keytab and does not look at
      /usr/local/var/krb5kdc/kadm5.keytab at all.

      If I add the line

           admin_keytab = FILE:/usr/local/var/krb5kdc/kadm5.keytab

      to the [realms] section of the /usr/local/var/krb5kdc/kdc.conf
      file (which kadmind does open and read), then the results are 
      exactly the same. I don't know if this is a valid line in the
      kdc.conf file or not, there is such a line in the
      .../src/config-files/kdc.conf example of the distibution, but there
      is no mention of it in the man page. Then again, I have seen a couple
      other example kdc.conf files that had stuff which is not mentioned
      in the man page, so I guess this might be a documentation bug also.
               
   
        
>How-To-Repeat:
                   N/A
>Fix:
    While not a "fix" per se., I can get kadmind to work by setting
    the following environment variable:

         setenv KRB5_KTNAME /usr/local/var/krb5kdc/kadm5.keytab

    I think there may be other related problems (that is, problems
    caused by whatever is causing this one) because if I use kadmin
    and do a "ktadd host/tiehack.gilasoft.com", I get the error:

        kadmin: Cannot write to specified key table while adding key to keytab

    but if I do a "ktadd -k /etc/krb5.keytab host/tiehack.gilasoft.com", it
    works correctly. I do not know what it's trying to do, I can't tell
    from a ktrace. It doesn't try to open a file to write the keytab
    before it gives the error.
>Audit-Trail:
>Unformatted:

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