Groups | Blog | Home
all groups > dotnet framework > february 2006 >

dotnet framework : Domain/User to LDAP NameTranslate ability in the 2.0 framework???


Dave Kolb
2/16/2006 12:28:54 PM
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);

Marc Scheuner [MVP ADSI]
2/17/2006 12:00:00 AM
[quoted text, click to view]

I'm not aware of anything new, and quite frankly, even if there was
something, it most likely would be nothing but a wrapper around those
COM classes....

AddThis Social Bookmark Button