Coder Social home page Coder Social logo

Comments (5)

schuemie avatar schuemie commented on June 11, 2024

Hi @jose-alvarado-guzman ,

The use of the JTDS driver is discouraged because it messes up dates. Do you need to specify the Windows domain of your user? If not, you can use the Microsoft JDBC driver instead (even without the integrated security).

from databaseconnector.

jose-alvarado-guzman avatar jose-alvarado-guzman commented on June 11, 2024

Hi @schuemie,

Thanks for your response, I tried with and without the domain but neither way the server was able to authenticate me. The exceptions were entrusted domain and login failed respectively. According to the following Microsoft Developer post when connecting to Sql Server using Windows Authentication from a non-Windows platform the connection string needs the integrated security parameter set to true, the authentication schema needs to be set to JavaKerberos and the JDBC driver should be version 4.0 or above. This also requires configuring Kerberos which I had never done before and was trying to avoid using the jtds driver. Is using Kerberos the only way to authenticate from non-windows platforms to SQL Server using Windows Authentication since jtds is discouraged?

from databaseconnector.

schuemie avatar schuemie commented on June 11, 2024

Hi @jose-alvarado-guzman ,

If you don't need to provide the domain, you should be able to log in without integrated security. Did you try not providing the connection string but just setting the dbms, server, (port), user, and password arguments of either createConnectionDetails or connect?

from databaseconnector.

jose-alvarado-guzman avatar jose-alvarado-guzman commented on June 11, 2024

Hi @schuemie,

Yes I tried using the createConnectionDetail function setting the dbms, server, port, user and password without the domain and then passing that object to the connect function but the login failed.

from databaseconnector.

schuemie avatar schuemie commented on June 11, 2024

You said you managed to connect with RJDBC and jtds. Do you think you could try making it work through RJDBC with the Microsoft JDBC driver instead?

from databaseconnector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.