Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
CLR Integration and Programming.
»
Function of Login Created from Asymmetric Key...
Function of Login Created from Asymmetric Key in External Access Assemblies?
Rate Topic
Display Mode
Topic Options
Author
Message
Marios Philippopoulos
Marios Philippopoulos
Posted Wednesday, May 21, 2008 1:02 PM
SSCommitted
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 7:10 AM
Points: 1,824,
Visits: 3,477
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?!
__________________________________________________________________________________
Turbocharge Your Database Maintenance With Service Broker: Part 1
Real-Time Tracking of Tempdb Utilization Through Reporting Services
Monitoring Database Blocking Through SCOM 2007 Custom Rules and Alerts
Preparing for the Unthinkable - a Disaster/Recovery Implementation
Post #504767
RBarryYoung
RBarryYoung
Posted Wednesday, May 21, 2008 7:18 PM
SSCrazy Eights
Group: General Forum Members
Last Login: Saturday, May 04, 2013 11:13 AM
Points: 9,855,
Visits: 9,374
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."
Post #504935
Marios Philippopoulos
Marios Philippopoulos
Posted Thursday, May 22, 2008 7:42 AM
SSCommitted
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 7:10 AM
Points: 1,824,
Visits: 3,477
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).
__________________________________________________________________________________
Turbocharge Your Database Maintenance With Service Broker: Part 1
Real-Time Tracking of Tempdb Utilization Through Reporting Services
Monitoring Database Blocking Through SCOM 2007 Custom Rules and Alerts
Preparing for the Unthinkable - a Disaster/Recovery Implementation
Post #505180
RBarryYoung
RBarryYoung
Posted Thursday, May 22, 2008 11:39 AM
SSCrazy Eights
Group: General Forum Members
Last Login: Saturday, May 04, 2013 11:13 AM
Points: 9,855,
Visits: 9,374
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."
Post #505358
Marios Philippopoulos
Marios Philippopoulos
Posted Thursday, May 22, 2008 11:43 AM
SSCommitted
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 7:10 AM
Points: 1,824,
Visits: 3,477
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!
)
__________________________________________________________________________________
Turbocharge Your Database Maintenance With Service Broker: Part 1
Real-Time Tracking of Tempdb Utilization Through Reporting Services
Monitoring Database Blocking Through SCOM 2007 Custom Rules and Alerts
Preparing for the Unthinkable - a Disaster/Recovery Implementation
Post #505362
RBarryYoung
RBarryYoung
Posted Thursday, May 22, 2008 3:43 PM
SSCrazy Eights
Group: General Forum Members
Last Login: Saturday, May 04, 2013 11:13 AM
Points: 9,855,
Visits: 9,374
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."
Post #505521
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.