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

GSS-API demo program fails on Window 98

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Not an Issue
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: security-libs
    • Labels:

      Description

      I ran the basic Client/Server programs in the first chapter of the GSS
      tutorial "Use of JavaTM GSS-API for Secure Message Exchanges Without JAAS Programming" in

      file:/usr/web/work/j2se/1.4/docs/guide/security/jgss/tutorials/BasicClientServer.html

      The program passed OK on Solaris and Window NT but failed on Window 98.

      The following is the log from running the script:

      --------------------------------------------------------------------------------
      C:\java -Djava.security.krb5.realm=JSN.ENG.SUN.COM -Djava.security.krb5.kdc=dimmer.eng.sun.com -Djavax.security.auth.useSubjectCredsOnly=false -Djava.security.auth.login.config=bcsLogin.conf SampleClient sampleServer julia 2004 >>& log.txt
      Kerberos username [rogerp]: Kerberos password for dummy: GSSException: No valid credentials provided (Mechanism level: Attempt to obtain new INITIATE credentials failed! (null))
      at sun.security.jgss.krb5.Krb5InitCredential.getTgtFromSubject(Krb5InitCredential.java:346)
      at sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential.java:143)
      at sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:73)
      at sun.security.jgss.GSSManagerImpl.getCredentialElement(GSSManagerImpl.java:152)
      at sun.security.jgss.GSSCredentialImpl.add(GSSCredentialImpl.java:337)
      at sun.security.jgss.GSSCredentialImpl.<init>(GSSCredentialImpl.java:62)
      at sun.security.jgss.GSSCredentialImpl.<init>(GSSCredentialImpl.java:39)
      at sun.security.jgss.GSSManagerImpl.createCredential(GSSManagerImpl.java:99)
      at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:181)
      at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:161)
      at SampleClient.main(SampleClient.java:104)
      Caused by: javax.security.auth.login.LoginException: JCE provider may not be installed. Algorithm DES not available
      at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:589)
      at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:479)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:30)
      at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAccessorImpl.java:48)
      at java.lang.reflect.Method.invoke(Method.java:306)
      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:664)
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:599)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:596)
      at javax.security.auth.login.LoginContext.login(LoginContext.java:523)
      at sun.security.jgss.LoginUtility.run(LoginUtility.java:60)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.security.jgss.krb5.Krb5InitCredential.getTgtFromSubject(Krb5InitCredential.java:343)
      ... 10 more
      Caused by: KrbException: JCE provider may not be installed. Algorithm DES not available
      at sun.security.krb5.internal.crypto.Des.des_cksum(Des.java:309)
      at sun.security.krb5.internal.crypto.Des.string_to_key(Des.java:282)
      at sun.security.krb5.internal.crypto.Des.string_to_key_bytes(Des.java:357)
      at sun.security.krb5.EncryptionKey.<init>(EncryptionKey.java:187)
      at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:574)
      ... 24 more
      Caused by: java.security.NoSuchAlgorithmException: Algorithm DES not available
      at javax.crypto.b.a([DashoPro-V1.2-120198])
      at javax.crypto.Cipher.getInstance([DashoPro-V1.2-120198])
      at sun.security.krb5.internal.crypto.Des.des_cksum(Des.java:307)
      ... 28 more
      GSSException: No valid credentials provided
      at sun.security.jgss.GSSCredentialImpl.<init>(GSSCredentialImpl.java:71)
      at sun.security.jgss.GSSCredentialImpl.<init>(GSSCredentialImpl.java:39)
      at sun.security.jgss.GSSManagerImpl.createCredential(GSSManagerImpl.java:99)
      at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:181)
      at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:161)
      at SampleClient.main(SampleClient.java:104)
      Exception in thread "main"

      --------------------------------------------------------------------------------

      To replicate the problem you can run the demo program given in the tutorial
      or the attachments which also includes the script to launch the server
      and the client programs.

        Attachments

          Activity

            People

            • Assignee:
              rmartisunw Ramachandran Marti (Inactive)
              Reporter:
              rphamsunw Roger Pham (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: