Task #2711
closedSupport 'Windows authentication' in the wizard for the SQL Server database table
100%
Description
We need to use more connection properties, when connecting to the SQL Server under a domain user using Windows Authentication.
These properties have to be written in the JDBC URL, but currently, there is no way to do it in the wizard.
I needed these: integratedSecurity=true;authenticationScheme=NTLM;domain=somedomain.tld.
Description: https://docs.microsoft.com/en-us/sql/connect/jdbc/setting-the-connection-properties?view=sql-server-2017
Note: The user wasn't created locally in the DB => SQL Server Authentication didn't work. IdM isn't installed on Windows => NativeAuthentication couldn't be used. So NTLM and we had to use standard Database table connector.
Updated by Alena Peterová over 3 years ago
- Priority changed from Normal to High
This would be nice to solve, because we meet SQL Server databases as a HR system quite often.
Updated by Vít Švanda over 3 years ago
- Subject changed from Support connection properties in the wizard for the SQL Server database table to Support 'Windows authentication' in the wizard for the SQL Server database table
Updated by Vít Švanda over 3 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Vít Švanda to Ondrej Husník
- % Done changed from 70 to 90
Implemented. MS-SQL wizard now supported Windows authentication -> using logged windows user.
Wizard also supports:- NTLM protocol (I was not able tested it),
- skip CRT server check,
- use Domain and Instance name.
I implemented test too.
Documentatio is here: https://wiki.czechidm.com/devel/documentation/wizards/table#ms-sql_server_wizard
Commit: https://github.com/bcvsolutions/CzechIdMng/commit/dbc6ad36cfb79fd1aca033a2906939abe31a7b1a
Tip for testing: <!-- https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc -->
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>9.2.1.jre11</version>
</dependency>
Updated by Vít Švanda over 3 years ago
- Assignee changed from Ondrej Husník to Radek Tomiška
Updated by Radek Tomiška over 3 years ago
- Status changed from Needs feedback to In Progress
- Assignee changed from Radek Tomiška to Vít Švanda
I did test and code review, it works, awesome, thx!
I found just one minor issue - filled database, table and key column input value is lost, when authentization method (or trust server certificate, ntlm) is changed.
Updated by Vít Švanda over 3 years ago
- Status changed from In Progress to Needs feedback
- Assignee changed from Vít Švanda to Radek Tomiška
Thanks for testing, I fixed field clearing.
Commit: https://github.com/bcvsolutions/CzechIdMng/commit/75fc846d76737c5107e78e9f0a4cfaf179340cfd
Updated by Radek Tomiška over 3 years ago
- Status changed from Needs feedback to Resolved
- Assignee changed from Radek Tomiška to Vít Švanda
- % Done changed from 90 to 100
I did test and code review, it works, awesome, thx!
Updated by Radek Tomiška about 3 years ago
- Status changed from Resolved to Closed