facebook

jTDS and Trusted Logins

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #256009 Reply

    skidancer
    Participant

    How does one get this to work with the jTDS driver (going against SQL Server) using the Windows Trusted Login capability? To do this, jTDS provides a dll (ntlmauth.dll) that needs to be in the PATH. I have successfully used this directly from Java. How do I get the plugin to work with this?

    Thanks,

    David

    #256016 Reply

    Haris Peco
    Member

    David,

    Please, can you send more details

    – Eclipse and MyEclipse version
    – your database and jtds versions
    – class name and url for jdbc driver
    – error log (Windows-Show view-Other-PDE Runtime – Error log view)

    Thanks
    Peco

    #256071 Reply

    skidancer
    Participant

    Eclipse 3.2, MyEclipse 5 M2, SQL Server 2000 SP4, Java SDK 1.5_07

    Here is the relevant output from the errorlog:

    I/O Error: SSO Failed: native SSPI library not loaded. Check the java.library.path system property.

    ——
    So I understand how to set this for a project, but not on a global level that encompasses all projects because I guess that that’s what dbexplorer would require.

    Thanks,

    David

    #256073 Reply

    Haris Peco
    Member

    David,

    You can try set dll in windows system directory <win_home>/system32 or start eclipse with
    -Djava.library.path=<path_to_folder_with_your_dll>

    Best

    #256085 Reply

    skidancer
    Participant

    It turns out that one can set it by going to Windows->Preferences->Java->Installed JREs

    Highlight the VM you want and click on the “Edit” button.

    Then add -Djava.library.path=<path to ntlmauth.dll> in the “Default VM Arguments”

    #256091 Reply

    Riyad Kalla
    Member

    David thank you for the followup, others will find it handy.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: jTDS and Trusted Logins

You must be logged in to post in the forum log in