Link to home
Start Free TrialLog in
Avatar of kukhuvud
kukhuvud

asked on

How to delegate SetSPN in Active Directory

Hi there!  I work as a domain admin for a software development shop.  The product is web and SQL-based, and we use SPN's for authentication.  Our Dev and QA teams are constantly spinning up and destroying VM's as part of our development process, and for each new VM I currently run SetSPN -S HTTP/{server name} {user name} to set authentication with a service account.

What I'd like to do is delegate the running of SetSPN to an AD security group.  We're a 24 hour shop and the overseas folks are getting frustrated having to wait for my working hours to start.  This would make everyone's lives much easier :)

My DC's are a mixture of Server 2008 R2 and Sever 2012 R2, running at a Server 2008 SP2 functional level.  I've followed the steps here under the Delegating Authority To Modify SPN's section, but my test user gets this error: Failed to assign SPN on account '{CN of service account and DN of domain}', error 0x2098/8344 -> Insufficient access rights to perform the operation.

Things I've also tried include:

Running the SetSPN command from an elevated command prompt
Allowed these properties for Computer Objects to the security group: Validated write to service principal name, Validated write to MS DS additional host name, read/write msDS Allowed To Delegate To
Allowed these properties for User Objects to the security group: Read/Write msDS Principal Name,  read/write msDS Allowed To Delegate To
Added the security group to "Enable computer and user accounts to be trusted for delegation" to a custom GPO
Added the service account itself to the security group I've delegated these rights to
Added these same permissions to SELF on the service account user object


What the heck am I missing here?
Avatar of Amit Kumar
Amit Kumar
Flag of India image

are you planning to provide permission on whole domain or for particular OU?

whatever it is please open DSA.msc then right click on either root domain or choose any OU where computers are stored then open properties --- security --- then click on Advance -- then find a group or user whom you have delegated --- or add an user----- for existing click on Edit ---- then there will be two tabs object and properties click on Properties then see the user/group name to whom you are giving access and change Apply to (Descendent user objects) --- in ACE try to find Read ServicePrincipalName and Write ServicePrincipalName --- mark both of them and run replication then check.
Avatar of kukhuvud
kukhuvud

ASKER

Sadly, this didn't work.  I guess I need to open a ticket with Microsoft!
ASKER CERTIFIED SOLUTION
Avatar of kukhuvud
kukhuvud

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Microsoft's answer was perfect for delegating setspn to a user object.