MSSQL authentication "Active Directory - Password" option #26622
Unanswered
mosborn
asked this question in
DBeaver Development
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hope I can be helpful here. I apologize for not being able to dig into the application source to offer a more concrete suggestion.
Using a Mac, I tried to use both the connection options "Active Directory - Integrated" and "Active Directory - Password" to connect to SQL Server. Both options errored with a message that the login for user '' (as in blank string) failed. I think this has been noted elsewhere.
To diagnose, I starting from scratch to arrive at the following recipe:
A Kerberos login module configuration file containing:
A simple Groovy script launched with "-D java.security.auth.login.config=my-login-module.conf":
Swapping MSSQLADUserPwd and MSSQLADDesktop in the code toggles cleanly between AD desktop and user/password modes.
Critical details:
Coming to the current DBeaver code, AD User/Password worked for me after the following adjustment to SQLServerAuthModelADPassword:
I couldn't make desktop login (Active Directory - Integrated) work even with similar mods to SQLServerAuthModelADIntegrated. On the other hand, if I have a kerb ticket and feed a bad user/password to the AD User Password option, it falls back to my desktop login.
I also succeeded in making it work by starting with the Database menu option "New Connection from JDBC URL", using "Connect by URL", and fully specifying the string. This does not work if you create the connection from the normal "Create connection" menu, so whatever is going on with the management of the SQL Server connection details is foiling success.
Hope this helps.
Beta Was this translation helpful? Give feedback.
All reactions