ActiveDirectoryMembershipProvider - User properties not set

M

mbutenko

I am using the ActiveDirectoryMembershipProvider in an ASP.NET 2.0
application. I finally got the AD authentication piece working, but
when the user logs in (I am using the the Login control) the User
properties are not getting set. For example, in the LoggedIn event,
the User.Identity.Name = "" and User.IsAuthenticated is False.

I know that it is actually checking the AD because if I enter invalid
credentials, it tells me I had an invalid login and never hits the
LoggedIn event. However, when I do supply valid credentials the User
properties are not set.

As a side (and I think unrelated) note, the user I am using to connect
to AD only has read rights on the AD.

Anyone have any ideas?

Thanks,
Marc
mbutenkoATmt.gov
 
D

Dominick Baier

These values get populated on the next roundtrip. In the LoggedOn event you
have to use the Username property of the login control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top