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

Test Bug: kinit for 4809517 throws exception

XMLWordPrintable

      kinit throws UnknownHostException for kerberos.example.com when running the test for bug4809517.

      java version "1.4.2_08"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b02)
      Java HotSpot(TM) Client VM (build 1.4.2_08-b02, mixed mode)

      OS: RHEL 3.0
      Linux urti064.india.sun.com 2.4.21-19.ELsmp #1 SMP Thu Aug 12 23:26:16 EDT 2004 i686 i686 i386 GNU/Linux

      The issue affects Linux Platform only as the kinit tool is shipped as part of the 142 SDK bundle for Linux/i386.

      test description:
      CTE_REGTEST/Generic/4809517/Test4809517.java

      Steps to reproduce:
      - Follow the steps mentioned for test 4809517.
      - make sure the time difference is as per mentioned in the testcase.
      - On executing step#4 the system gives throws the exception as below:

      bash-2.05b$ /export/updates/jdks/j2sdk1.4.2_08/bin/kinit dummy
      Password for ###@###.###:bogus
      Exception: kerberos.example.com: kerberos.example.com
      java.net.UnknownHostException: kerberos.example.com: kerberos.example.com
              at java.net.InetAddress.getAllByName0(InetAddress.java:1011)
              at java.net.InetAddress.getAllByName0(InetAddress.java:981)
              at java.net.InetAddress.getAllByName(InetAddress.java:975)
              at java.net.InetAddress.getByName(InetAddress.java:889)
              at sun.security.krb5.internal.bg.<init>(DashoA12275:56)
              at sun.security.krb5.KrbKdcReq$KdcCommunication.run(DashoA12275:262)
              at java.security.AccessController.doPrivileged(Native Method)
              at sun.security.krb5.KrbKdcReq.send(DashoA12275:199)
              at sun.security.krb5.KrbKdcReq.send(DashoA12275:144)
              at sun.security.krb5.KrbKdcReq.send(DashoA12275:110)
              at sun.security.krb5.internal.tools.Kinit.<init>(DashoA12275:260)
              at sun.security.krb5.internal.tools.Kinit.main(DashoA12275:109)


      ###@###.### 2005-03-04 15:11:04 GMT

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: