question

13410273 avatar image
0 Votes"
13410273 asked GaryReynolds edited

Delegation of authority to create an SPN.

Hello everyone!

There is a task from the Linux system environment to register its SPN record in Active Directory. To do this, you need Domain Admins rights.

Tell me, is it possible to delegate the rights to create such SPNs (for linux machines and systems) in Active Directory, for example, to a group of Linux admins, so as not to grant them Domain Admins rights? If so, what permissions will be required to delegate to a user or group?

Thanks!

windows-serverwindows-server-2016windows-server-securitywindows-server-infrastructure
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Do you have any update about this thread ?

0 Votes 0 ·
Thameur-BOURBITA avatar image
0 Votes"
Thameur-BOURBITA answered Thameur-BOURBITA edited

Hi,

You can delegate a user account to edit SPN attribut in active directory on service account or computer object:

182082-image.png


You can apply the delegation on all child object under a OU:

181996-image.png




Please don't forget to mark helpful reply as answer


image.png (11.4 KiB)
image.png (14.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

13410273 avatar image
0 Votes"
13410273 answered GaryReynolds edited

Hello everyone!
Tell me, can it happen that this delegation will allow you to create a duplicate SPN?
AD is large enough and roughly speaking, one object in AD can be linked to several SPNs, and how would it not happen that when delegating and creating SPN, whatever other service in AD will stop working?

Or write a script on Posh that will check the identity of the SPN?
Link to a related question:delegation-of-authority-to-create-an-spn.html

Thanks!

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


I've responded to your separate question, but you can't assign an SPN entries to multiple objects if the domain controllers are Window 2012R2 and above.

0 Votes 0 ·
Thameur-BOURBITA avatar image
0 Votes"
Thameur-BOURBITA answered

Tell me, can it happen that this delegation will allow you to create a duplicate SPN?

Yes, it's possible when the admin don't use the command setspn -S to add a SPN . Setspn -A or add spn by editing AD attribute can generate a duplicate SPN.
The only way to prevent duplicate SPN when you generate new one is to use setspn -s

AD is large enough and roughly speaking, one object in AD can be linked to several SPNs, and how would it not happen that when delegating and creating SPN, whatever other service in AD will stop working?

In this case you should delete duplicate SPN by removing SPN on wrong computer or service account

Please don't forget to mark helpful reply as answer


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.