Issue Description:
Following is a procedure for creating a data source on sql server that uses Windows Authentication (a.k.a Integrated Security) to authenticate the user.
Resolution:
See attached file. Or the following:
PROCEDURE FOR CREATING A DATA SOURCE ON SQL SERVER THAT USES WINDOWS AUTHENTICATION (aka INTEGRATED SECURITY) TO AUTHENTICATE THE USER
Go to the download page for Microsoft SQL Server JDBC Driver 3.0:
http://www.microsoft.com/en-us/download/details.aspx?id=21599
(NOTE: Do *not* be tempted to download the 4.0 version of the driver, even though it is more recent -- it will not work! [as of JasperReports Server v3.7.x])
(NOTE2: If you are on a later version of JasperReports Server such as v5.5. The reverse may be true. Investigation in progress.]
Download and run the self-extracting executable:
1033\sqljdbc_3.0.1301.101_enu.exe
Open the extracted folder sqljdbc_3.0enuauth
Open *either* the x64 *or* the x86 subfolder, depending on whether your version of Windows is 64-bit or 32-bit.
Copy the file sqljdbc_auth.dll to the folder that your app server automatically searches for DLLs.
For Tomcat, this is the {tomcat}bin folder.
Restart your app server
Run JasperReports Server
Add a data source. This brings up the Set Data Source Type and Properties page.
Set the Type dropdown box to JDBC Data Source
Enter a Name, Resource ID, and Description for your data source
In the Driver field, enter the following string:
com.microsoft.sqlserver.jdbc.SQLServerDriver
In the URL field, enter the following string:
jdbc:sqlserver://{host};databaseName={database};SelectMethod=cursor;integratedSecurity=true
In the User Name field, enter any non-blank string you want, for example "none"
In the Password field, enter any non-blank string you want, for example "none"
Set the Time Zone and Save Location fields if you are not happy with their default values
Click the Test Connection button
A yellow banner should briefly appear at the top of the page, saying "Connection passed"
Click the Submit button to save the data source
Ref. Case #00012669
Recommended Comments
There are no comments to display.