开发者

SQL Server authentication - limit access to database to only connect through application

开发者 https://www.devze.com 2022-12-23 14:19 出处:网络
I have a database which开发者_如何学运维 users should not be able to alter data in unless they use the specific app.I know best practice is to use windows authentication however that would mean that u

I have a database which开发者_如何学运维 users should not be able to alter data in unless they use the specific app. I know best practice is to use windows authentication however that would mean that users could then connect to the database using any other data enabled app and change values which would then not be audited.

Unfortunately SQL 2008 with its inbuilt auditing is not available.

Any ideas how to ensure that users cannot change anything unless its through the controlling app?


  • Use whatever means for users to log in. Windwos authentication encouraged.

  • make sure the user has no rights to change any data ;)

  • The application then, on the existing connection, post-authorized using application roles.

More info on that is on http://msdn.microsoft.com/en-us/library/bb669062.aspx

Basically the application can get a separate sets of rights by using an application password (that sadly has to be coded into the application - use sensible means to protect it), replacing the limited rights the user has with more rights for itself.

I would ask you to consider using an application server, but if you have a classical client/server architecture that is as good as it gets.

0

精彩评论

暂无评论...
验证码 换一张
取 消