K2.net
2003 Database Security
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.
K2.net![]() ![]() ![]() ![]() ![]() ![]() |
![]() | ||||
K2.net![]() The only communication between K2.net ![]() ![]() ![]() ![]() ![]() K2.net ![]() The K2.net ![]() ![]() ![]() ![]() K2.net ![]() The K2.net ![]() ![]() ![]() K2.net ![]() The K2.net ![]() ![]() | ||||
SQL Authentication: In a scenario where SQL Authentication was selected during the installation you will find that the actual account is stored in clear text in the various configuration files. Workspace will use this account to open a connection to the database regardless of the user account under which Workspace is running (Note that Workspace is running under integrated auth in IIS, which is a requirement and can at no time be altered). The SQL Authentication account is stored in the "<drive>:Program FilesK2.net 2003K2WSWorkspaceServiceWeb.config": | ||||
<appSettings> <add key="DSN" value="Data Source=(local); initial catalog=K2Log; User ID=sa;Password=password" /> </appSettings> | ||||
Windows Authentication: In a scenario where Windows Authentication was selected during the installation you will find that no account is stored in the various configuration files. Workspace is running under integrated authentication in IIS. Therefore, once a user opens Workspace, Workspace will run as the user logged onto the client computer and the actual connection to the SQL Server database will be opened as the account that Workspace is running under. This is not ideal as you will have to give every user making use of Workspace the necessary rights on the “K2Log” database. You can change the following configuration in such a way that you use a dedicated account for Workspace without having to expose any user account in the configuration file by doing the following. | ||||
1) | Create a dedicated application pool in IIS. | |||
2) | Change the Identity of the application pool to run as a Windows account. | |||
3) | Change the “WorkspaceService” Site application pool to the newly created application pool (Restart IIS). | |||
4) | Give the Windows account used in the application pool the necessary rights on the “K2Log” database. | |||
5) | Open the following configuration file in notepad "<drive>:Program FilesK2.net 2003K2WSWorkspaceServiceWeb.config". | |||
6) | Locate and remove the following section: | |||
<authentication mode="Windows" /> | ||||
7) | Make sure that the “appSettings” section is similar to the example below: | |||
<appSettings> <add key="DSN" value="Data Source=(local); initial catalog=K2Log; Integrated Security=SSPI"/> </appSettings> | ||||
Custom Applications: Any custom applications (Windows or Web) designed for workflow processes make use of the “K2ROM.dll” to access K2.net ![]() ![]() ![]() K2.net ![]() K2.net ![]() ![]() | ||||
SQL Authentication: In a scenario where SQL Authentication was selected during the installation you will find that the actual account is stored in clear text in the various configuration files. This account will be used at all times by K2.net ![]() ![]() | ||||
<Database ConnectionString="server=(local);database=K2;uid=sa;pwd=;pooling=true;enlist=false; Min Pool Size=5" /> <LogDatabase ConnectionString="server=(local);database=K2Log;uid=sa;pwd=;pooling=true;enlist=false; Min Pool Size=20" /> | ||||
Windows Authentication: In a scenario where Windows Authentication was selected during the installation you will find that no account is stored in the various configuration files. K2.net ![]() | ||||
<Database ConnectionString="server=SQLServer ;database=K2;Integrated Security=SSPI;pooling=true;enlist=false; Min Pool Size=5" /> <LogDatabase ConnectionString="server=SQLServer;database=K2Log;Integrated Security=SSPI;pooling=true; enlist=false;Min Pool Size=5" /> | ||||
|