I can get the OU object like….
DirectoryEntry de = new DirectoryEntry(
"LDAP://domain.com",
"DOMAIN\\Administrator",
"Password");
DirectoryEntry ouEntry = de.Children.Find("OU=my-users,DC=domain,DC=com");
But I can’t seem to find any classes or libraries to add permissions. I want to give “MyGroup” permission to create and delete objects in this OU. I can do this manually in ADSIEdit by selecting the OU and using the Security tab but can’t find the equivalent code.
Try this one
Let me know if this works for you.
Raymund
http://anyrest.wordpress.com