Is there a .NET library for LDAP paths manipulations?
I would like to have something equivalent to System.IO.Path
, allowing e.g. to do something like
string ou1 = LDAPPath.Combine("OU=users","DC=x,DC=y");
string ou2 = LDAPPath.Parent("CN=someone,OU=users,DC=x,DC=y");
Otherwise, what's the common way to deal with LDAP distinguished names in .NET?
To clarify my question: I'm not asking about "directory services in .NET" in general; I've already worked with that and done some programs to perform some tasks. What I feel is missing is a proper way to manipulate paths, parse distinguished names and so on, and since this should be a pretty common need, I hope there's a cleaner way to do this than split a string on commas(1).
(1) like, for example, calling a function in a library that splits the string on commas