Showing posts with label permission. Show all posts
Showing posts with label permission. Show all posts

Sunday, March 25, 2012

Authorization

Hi,

How to develop the application will run under user who have permission to view the reports.

When multiple users are accessing reports for example in this case i have 5 users.

could anyone help to me.

regards

kumar

first i have some question are the user in Domain or not if so then you can give each user the privileges on the reports you want on the reporting service

and by code you get the identity of the user in the context and then he will gain the privileges on the reports he can view

this is a great article which explain how you can do this

http://msdn2.microsoft.com/en-us/library/ms159846.aspx


http://msdn2.microsoft.com/en-us/library/ms159778.aspx

sql

Thursday, March 22, 2012

Authentication permissions

I'm fairly certain that I understand the difference between the AUTHENTICATE SERVER and AUTHENTICATE permission, but I'm not positive.

For these purposes, I'm leaving off the authorization portion as well as assuming a TSQL endpoint.

My understanding:

The authentication process is broken into two stages - connection and authentication. In order to successfully authenticate to an instance, the following must apply:

1. I must have CONNECT SQL permission

2. I must have CONNECT permission on the endpoint that I am using

3. The endpoint that I am using must be in a STARTED state

4. The login that I am using must be enabled

Once the connection is established, I need AUTHENTICATE SERVER permission in order to authenticate to the instance. (Or do I simply need AUTHENTICATE permission?)

AUTHENTICATE & AUTHENTICATE SERVER permissions are only used when using EXECUTE AS in cross database and server-access (respectively) scenarios.

When a new session is established in SQL Server, the server itself will perform the authentication and the no AUTHENTICATEAUTHENTICATE SERVER permission is checked.

When using EXECUTE AS USER, permissions are checked at the DB scope, therefore the DBO has absolute control over this type of impersonation, and the DBO is said to vouch for the token and becomes the authenticator. In case of a digitally signed module (marked with EXECUTE AS) the story is similar, but the certificate can act as an authenticator.

In order to avoid unintended escalations, by default these impersonated tokens cannot move outside the current database (i.e. cannot access resources outside it) unless the DB is marked as trustworthy or they come from a digitally signed module. Being able to get outside the DB is not sufficient, the authenticator must be trusted at the scope of the resource the impersonated context is trying to access; for example, if trying to access a table on another DB, the DBO of the target DB must have granted AUTHENTICATE to the authenticator of the impersonated context.

I strongly recommend reading the following topic from BOL: Extending Database Impersonation by Using EXECUTE AS (http://msdn2.microsoft.com/en-us/library/ms188304.aspx )

I hope this information helps,

-Raul Garcia

SDE/T

SQL Server Engine

sql

Sunday, March 11, 2012

Auditing permission changes

What I would like is to log all the permission changes into a table.
Like if a developer changed a permission to a view or a table or any
other object it would get logged into a table. Also logging database
and server level permission changes like some one giving some one a
dbowner access. Any suggessions?
Thank You,
-Pranay
> What I would like is to log all the permission changes into a table.
> Like if a developer changed a permission to a view or a table or any
> other object it would get logged into a table. Also logging database
> and server level permission changes like some one giving some one a
> dbowner access. Any suggessions?
Check the SQL Profiler in Books OnLine, specifically "Security Audit Event
Classes" topic.
Dejan Sarka, SQL Server MVP
Associate Mentor
www.SolidQualityLearning.com
|||Hi Dejan,
Now I am running a trace. But the trace captures events like temp
index creations. I tried not like 'Create Index #' in the text data
but that filter did not work. It is still capturing temp index
creations. I filtered out temp db so the temp table creations are not
captured now. Any suggessions on removing temp index creations?
|||> Now I am running a trace. But the trace captures events like temp
> index creations. I tried not like 'Create Index #' in the text data
> but that filter did not work. It is still capturing temp index
> creations. I filtered out temp db so the temp table creations are not
> captured now. Any suggessions on removing temp index creations?
Use % wildchar, not # - 'Create Index%' should work.
Dejan Sarka, SQL Server MVP
Associate Mentor
www.SolidQualityLearning.com