views:

10

answers:

0

Hi, I'm using .NET to automatically create a user in Active Directory, afterwards I'm using WMI to execute shell commands on another server in the network to create a directory and set its permissions (with cacls) to grant the new user full access to this directory and it works. However, LDAP is running on two servers in the network and as far as I know it is not guaranteed, that the user request that cacls performes will always be successfull even if the creation of the user succeeded. Now I would like to know what's the best solution to prevent this.