c# - How to specify the container of a PrincipalContext in a format of a tree structure instead of the current weird format? -
instead of weird format:
ou=hu,ou=emea,ou=securitygroups,ou=usersandgroups,dc=corporate,dc=mycompany,dc=com
i want specify this:
corporate.mycompany.com/usersandgroups/securitygroups/emea/hu
here code working weird format not format want:
using (var context = new principalcontext(contexttype.domain, null, parampath)) { using (var group = groupprincipal.findbyidentity(context, paramgroup)) { var users = group.getmembers(false); } }
or can convert 1 path format another? besides "dc=corporate,dc=mycompany,dc=com" other path elements can ou?
Comments
Post a Comment