D
Dave Kolb
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);
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);