|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Domain/User to LDAP NameTranslate ability in the 2.0 framework???Is there any new 2.0 class that offers the functionality of the ActiveDS
NameTranslate function as below? I would like to not have to use COM interop to do this. Thanks, Dave Kolb // convert the Netbios style "domain\user" name to an LDAP DN format ActiveDs.NameTranslate nt = new ActiveDs.NameTranslate(); int typeNT4 = (int)ActiveDs.ADS_NAME_TYPE_ENUM.ADS_NAME_TYPE_NT4; int typeDN = (int)ActiveDs.ADS_NAME_TYPE_ENUM.ADS_NAME_TYPE_1779; nt.Set(typeNT4, strNtUser); string strLdapName = nt.Get(typeDN); >Is there any new 2.0 class that offers the functionality of the ActiveDS I'm not aware of anything new, and quite frankly, even if there was>NameTranslate function as below? I would like to not have to use COM interop >to do this. something, it most likely would be nothing but a wrapper around those COM classes.... Marc |
|||||||||||||||||||||||