SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Function of Login Created from Asymmetric Key in External Access Assemblies?


Function of Login Created from Asymmetric Key in External Access Assemblies?

Author
Message
Marios Philippopoulos
Marios Philippopoulos
SSCertifiable
SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)

Group: General Forum Members
Points: 6220 Visits: 3764
One of the ways of creating an EXTERNAL_ACCESS assembly is to:

(1) CREATE ASYMMETRIC KEY from the assembly dll;
(2) CREATE LOGIN FROM the ASYMMETRIC KEY;
(3) Grant EXTERNAL ACCESS ASSEMBLY permission to the LOGIN created in previous step;
(4) CREATE ASSEMBLY ... WITH permission_set = EXTERNAL_ACCESS;

I understand that an increased level of trust is required when external resources are accessed, hence the asymmetric key.

However, I don't see what the purpose of the LOGIN is.

In BOL (http://msdn.microsoft.com/en-us/library/ms189751.aspx) I read:
Logins created from certificates or asymmetric keys are used only for code signing. They cannot be used to connect to SQL Server.

Can someone please explain what that means?

What does this LOGIN actually do?!

__________________________________________________________________________________
SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables
Persisting SQL Server Index-Usage Statistics with MERGE
Turbocharge Your Database Maintenance With Service Broker: Part 2
RBarryYoung
RBarryYoung
SSCoach
SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)

Group: General Forum Members
Points: 19302 Visits: 9518
I believe that you have to make the login the Owner (or executor?) of the Assembly

-- RBarryYoung, (302)375-0451 blog: MovingSQL.com, Twitter: @RBarryYoung
Proactive Performance Solutions, Inc.
"Performance is our middle name."
Marios Philippopoulos
Marios Philippopoulos
SSCertifiable
SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)

Group: General Forum Members
Points: 6220 Visits: 3764
rbarryyoung (5/21/2008)
I believe that you have to make the login the Owner (or executor?) of the Assembly


I did not have to make it owner of the assembly. But perhaps, as you say, it is the executor...

I just don't understand the BOL speak (see opening post).

__________________________________________________________________________________
SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables
Persisting SQL Server Index-Usage Statistics with MERGE
Turbocharge Your Database Maintenance With Service Broker: Part 2
RBarryYoung
RBarryYoung
SSCoach
SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)

Group: General Forum Members
Points: 19302 Visits: 9518
I agree, it's confusing. I am not sure what the answer is either.

-- RBarryYoung, (302)375-0451 blog: MovingSQL.com, Twitter: @RBarryYoung
Proactive Performance Solutions, Inc.
"Performance is our middle name."
Marios Philippopoulos
Marios Philippopoulos
SSCertifiable
SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)SSCertifiable (6.2K reputation)

Group: General Forum Members
Points: 6220 Visits: 3764
rbarryyoung (5/22/2008)
I agree, it's confusing. I am not sure what the answer is either.


No problem, thank you for responding.

I will be making the case for SQLCLR in an upcoming meeting, and I'm trying to fill up holes in my understanding (of which there are many! w00t )

__________________________________________________________________________________
SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables
Persisting SQL Server Index-Usage Statistics with MERGE
Turbocharge Your Database Maintenance With Service Broker: Part 2
RBarryYoung
RBarryYoung
SSCoach
SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)

Group: General Forum Members
Points: 19302 Visits: 9518
As it happens, I was just working with a customer today on CLR assemblies, and it seems that the key/login is supposed to be used to "Sign" the assembly when it is built. The list that you have looks like it combines two different things: 1) creating an assembly that has been singed with a certificate or strong name(assymetric key), whose corresponding login has the EXTERNAL_ACCESS permission, as opposed to 2) Giving TRUSTWORTHY to the database and EXTERNAL_ACCESS permission to the database owner.


here is a microsoft link that explains: http://msdn.microsoft.com/en-us/library/ms345106.aspx

-- RBarryYoung, (302)375-0451 blog: MovingSQL.com, Twitter: @RBarryYoung
Proactive Performance Solutions, Inc.
"Performance is our middle name."
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search