Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4817849

kinit should use the default krb5 config. if krb5.ini doesn't exist

    XMLWordPrintable

    Details

      Description

      Platform
      Windows

      JDK Build
      Hopper FCS
      Mantis all build (till b16)

      Description:
         When one try to use java version of kinit on windows platform, one have to specify the location of krb5.ini or put krb5.ini into pre-defined location (c:\winnt)
         But java kinit should be able to pick up the default windows kerberos setup
      when there exist such one configuration

      How to reproduce
      1. go to any windows machine
      2. configure it to be a kerberos client
         a) got to get administration toolkit from M$ which consist of ksetup
         b) one can do this
            ksetup /AddKdc <REALMNAME> <KDCNAME>
            i.e.
            ksetup /AddKdc SQE.JAVASOFT2.SUN.COM yunke.sfbay.sun.com

            type "ksetup /help" for more information
         c) you can also use "ksetup" to view your setup on win32 kerberos client
            i.e.
            default realm = SQE.JAVASOFT2.SUN.COM (NT Domain)
            SQE.JAVASOFT2.SUN.COM:
                kdc = yunke.sfbay.sun.com
            No user mappings defined.
      3. make sure you have set up proper KDC server for that realm
         i.e.
         yunke.sfbay.sun.com is the KDC for SQE.JAVASOFT2.SUN.COM realm

      4. set JAVA_HOME to any JDK you want to test
      5. $JAVA_HOME/bin/kinit dummy
         you will see the complain of "no krb5.ini file under c:\winnt"

        Attachments

          Activity

            People

            Assignee:
            smalkanisunw Seema Malkani (Inactive)
            Reporter:
            skesunw Stuart Ke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: