Well, with the TranslateName UDF we are inputing the user information using WINNT and attempting to translate to a fully-qualified LDAP path.

I think at this point we need some more basic information.

What is the operating system of the computer running the script?

What is the directory environment (2000 AD, 2003 AD, NT 4)?