Is there any API function that can resolve netbios name of a user or group directory object.
I need output in following formats:
- NameFullyQualifiedDN – example: CN=John Smith,OU=Users,DC=Engineering,DC=Microsoft,DC=Com
- NameDnsDomain – example: engineering.microsoft.com\JSmith
- Any other format that gives DNS domain name.
NOTE : TranslateName function is failing while giving name as shown below: win2008domainnetbiosname\username.
Thanks
You can use
IADsNameTranslateorDsCrackNamesto achieve this.