how to get a LDAP user with Identity.Name?
From: Sociando (hmarchal_at_hotmail.com)
Date: 07/02/04
- Next message: Joe Kaplan \(MVP - ADSI\): "Re: how to get a LDAP user with Identity.Name?"
- Previous message: Eugene Mayevski [SecureBlackbox]: "Re: How do I store secrets?"
- Next in thread: Joe Kaplan \(MVP - ADSI\): "Re: how to get a LDAP user with Identity.Name?"
- Reply: Joe Kaplan \(MVP - ADSI\): "Re: how to get a LDAP user with Identity.Name?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 2 Jul 2004 14:24:19 -0700
I've a fairly simple pb:
In an ASP.NET app, I ask for the user identity using:
(WindowsPrincipal)(Page.User)).Identity.Name;
I'm using Windows integrated authentication + impersonation.
The value returned is "DOMAIN\MYLOGON"
I'm trying to look for more info in the LDAP about this user, but I
have some problem getting the attribute matching that string.
For the login auth. the attribute "samaccountname" sounds perfect to
me. For the domain, it does not sound that there is a standard way to
get it.
The question is: is it normal that I must decompose the
"DOMAIN\MYLOGON" string and make the LDAP query only based on MYLOGON
value? Or is there a way to query LDAP with the whole string ? with
which property?
Thanks
- Next message: Joe Kaplan \(MVP - ADSI\): "Re: how to get a LDAP user with Identity.Name?"
- Previous message: Eugene Mayevski [SecureBlackbox]: "Re: How do I store secrets?"
- Next in thread: Joe Kaplan \(MVP - ADSI\): "Re: how to get a LDAP user with Identity.Name?"
- Reply: Joe Kaplan \(MVP - ADSI\): "Re: how to get a LDAP user with Identity.Name?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|