Automate setup of constrained kerberos delegation in AD

Posted by Grhm on Server Fault See other posts from Server Fault or by Grhm
Published on 2010-12-02T16:42:10Z Indexed on 2012/12/14 17:05 UTC
Read the original article Hit count: 193

I have a web app that uses some backend servers (UNC, HTTP and SQL). To get this working I need to configure ServicePrincipalNames for the account running the IIS AppPool and then allow kerberos delegation to the backend services.

I know how to configure this through the "Delegation" tab of the AD Users and Computers tool.

However, the application is going to be deployed to a number of Active Directory environments. Configuring delegation manually has proved to be error prone and debugging the issues misconfiguration causes is time consuming. I'd like to create an installation script or program that can do this for me.

Does anyone know how to script or programmatically set constrained delegation within AD?

Failing that how can I script reading the allowed services for a user to validate that it has been setup correctly?

© Server Fault or respective owner

Related posts about windows-server-2003

Related posts about active-directory