TranslateName was developed to ease the use of LDAP with active directory. It's intended purpose is accept the domain\user name format and then return the workstation's or user's "Canonical Name" or "Distinguished Name". Neither of these seem like they would apply to you if you are referencing a user account on a NT4 domain.

Examples:
Code:

Wksta Canonical Name.....: gb.tyco.com/Organisations/750-Swindon/OnSite/GBS0217
Wksta Distinguished Name.: CN=GBS0217,OU=OnSite,OU=750-Swindon,OU=Organisations,DC=gb,DC=tyco,DC=com

User Canonical Name....: tyco.com/0001 - Tyco Electronics/0401 - Europe-Mideast-Africa/0414 - Northern Europe (Area)/0433 - Tyco Electronics UK Limited/user64
User Distinguished Name: CN=user64,OU=0433 - Tyco Electronics UK Limited,OU=0414 - Northern Europe (Area),OU=0401 - Europe-Mideast-Africa,OU=0001 - Tyco Electronics,DC=tyco,DC=com



NT4 is not an LDAP server and does not understand NameTranslate method. Please see: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/iadsnametranslate.asp


If you could better describe what you wish to accomplish, I may be better able to assist you. Is the LDAP server you wish to query a Windows 2000 domain controller? Why are you trying to look up LDAP properties on an NT4 account (or did I misunderstand you)?

In your original post you reference "ldap.home.com". What kind of server is this? What is your client operating system? IS ADSI installed?
_________________________
Home page: http://www.kixhelp.com/hb/