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


GMSA SQL Service Delegation to UNC


GMSA SQL Service Delegation to UNC

Author
Message
matthew.butler 32881
matthew.butler 32881
Forum Newbie
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: General Forum Members
Points: 6 Visits: 3
I have got this working when the SQL Service is using Local System or Network Service and applied all the correct SPN's and enabled delegation for CIFS on the computers in AD.

Any calls via my CLR procedure will impersonate a user and retrieve what directories/files are available to the users domain account.

I am attempting to get this working now using a group managed service account. The SQL Service is running as this new account, I have applied the MSSQLService SPN's to the gmsa, I have enabled the gmsa for trusted delegation (in constrained).

The impersonation does not seem to work accessing a UNC via this way. Is this not supported in these type of accounts as connecting to another sql server machine after impersonating seems to manage the double hop okay, just not accessing network resources.

Any quick help or guidance would be appreciated as reverting back to a system account or a non managed domain account for the service logon is not an option.

Thanks

Sue_H
Sue_H
SSC Guru
SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)SSC Guru (72K reputation)

Group: General Forum Members
Points: 72116 Visits: 14860
matthew.butler 32881 - Thursday, February 8, 2018 6:11 AM
I have got this working when the SQL Service is using Local System or Network Service and applied all the correct SPN's and enabled delegation for CIFS on the computers in AD.

Any calls via my CLR procedure will impersonate a user and retrieve what directories/files are available to the users domain account.

I am attempting to get this working now using a group managed service account. The SQL Service is running as this new account, I have applied the MSSQLService SPN's to the gmsa, I have enabled the gmsa for trusted delegation (in constrained).

The impersonation does not seem to work accessing a UNC via this way. Is this not supported in these type of accounts as connecting to another sql server machine after impersonating seems to manage the double hop okay, just not accessing network resources.

Any quick help or guidance would be appreciated as reverting back to a system account or a non managed domain account for the service logon is not an option.

Thanks


Try enabling Kerberos Protocol Transition. Some of it is explained in this MS document:
Kerberos Constrained Delegation May Require Protocol Transition in Multi-hop Scenarios

This article discusses it further and hows how to enable it:
Kerberos Protocol Transition and Constrained Delegation

Sue



Alexander Zhang
Alexander Zhang
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1111 Visits: 264
I ran into similar issue months ago. It works well after Network guy help to
1. Grant permission on CIFS share to gMSA
2. Launch ADUC and add the gMSA to some security group

Unfortunately, in the company, DBA don't have permission on AD and I don't know the very details.

GASQL.com - Focus on Database and Cloud
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