J
jerome pesenti
Greetings,
I am trying to accomplish a simple task but can't figure out if it's
possible in active directory.
A users log in into IIS and our application gets the NT login from the
web server:
MYDOMAIN\myuser
cn=John User,dc=domain,dc=com
I know that it's possible to do in VBScript (through the NameTranslate
object) but our application tries to be portable and can only use LDAP
requests to the Active Directory.
It's possible to do a search for sAMAccountName=myuser but that may
return muliple users from different domains and there doesn't seem to
be any good way to match them back with the Netbios domain (MYDOMAIN)
with complete certainty given that it may not be related at all with
dc=domain,dc=com.
Thanks for your help!
Jerome
I am trying to accomplish a simple task but can't figure out if it's
possible in active directory.
A users log in into IIS and our application gets the NT login from the
web server:
MYDOMAIN\myuser
user, like:From this logon we would like to get the distinguished name of the
cn=John User,dc=domain,dc=com
I know that it's possible to do in VBScript (through the NameTranslate
object) but our application tries to be portable and can only use LDAP
requests to the Active Directory.
It's possible to do a search for sAMAccountName=myuser but that may
return muliple users from different domains and there doesn't seem to
be any good way to match them back with the Netbios domain (MYDOMAIN)
with complete certainty given that it may not be related at all with
dc=domain,dc=com.
Thanks for your help!
Jerome