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

  • Thread starter Thread starter Dave Kolb
  • Start date Start date
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);
 
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.

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....

Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top