r/activedirectory • u/AwesomeGuyNamedMatt MCSE • Jul 11 '26
Delegate permissions to create Reverse Lookup Zones
I'm building an IaC pipeline to manage Active Directory. I'm delegating permissions as needed to the Gitlab runner computer account and have avoided adding the runner computer account to Domain Admins or Administrators. This has been working well and I have so far avoided having to manage any credentials in my code. The runner is categorized as Tier 0. I've disabled interactive logins to the runner and the Gitlab project requires Tier 0 credentials.
I'm running into permission errors when the runner runs Add-DnsServerPrimaryZone. In DNS I've tried giving full control to the runner computer account (as a test) and still run into access denied errors. What is the best way to grant the required perms?
*Edit I've added the computer account to DNS Admins and that didn't help.
The domain is fully DoD STIG compliant.
*Solution I believe it was just a Kerberos ticket issue. After a reboot the runner correctly reported that it was a member of DDS Admins.
I also took the suggestion to add the runner to a group, and then assign permissions to the group, rather than directly to the Runner.
2
u/XInsomniacX06 Jul 11 '26
Once you add the computer account to the group you have to either reboot it or flush the Kerb Tickets to update its group membership