Hi,

   +-From: <[EMAIL PROTECTED]> ----------
   |_Date: Wed, 24 Oct 2007 15:52:35 -0400 __
   |
   |Unfortunately, this patch does not work for me. The result is just the
   |same as if I set useSubjectCredsOnly=false on the command line, that is:
   |java -Djavax.security.auth.useSubjectCredsOnly=false ...
   |The error message is: 
   |java.lang.SecurityException: Unable to locate a login configuration

I can not reproduce such an exception.
May I ask you which method throw that method?

If it is from GSSContextKrb5#init(),
how about following code,

  public byte[] init(byte[] token, int s, int l) throws JSchException {
    try{
      if(useSubjectCredsOnly==null){
        setSystemProperty(pUseSubjectCredsOnly, "false");
      }
      return context.initSecContext(token, 0, l);
    }
    catch(GSSException ex){
      throw new JSchException(ex.toString());
    }
    catch(java.lang.SecurityException ex){           //
      throw new JSchException(ex.toString());        //
    }                                                //
    finally{
      if(useSubjectCredsOnly==null){
        setSystemProperty(pUseSubjectCredsOnly, "true");
      }
    }
  }



Sincrerly,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
    +1-415-578-3454
Fax +81-22-224-8773
Skype callto://jcraft/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to