Active Directory example

G

Guest

I'm trying to call Active Directory and validate userid exists in active
directory. This is on a web site. Since a web site is on a server, #1 how do
I get the userid in vb.net on the client machine where the user is logged in?
#2 how do I validate that userid in active directory?

Can someone steer me in the direction of some sample code or a good link?
 
G

Guest

Do you have Integrated Auth turned on for the site? If you have anonymous you
can't get the user from the client.
 
G

Guest

Curt, if you have integrated auth turned on, then will the logged in user get
passed to the server?
 
P

Patrick.O.Ige

Try posting your questions to :- dotnet.framework.asp.net.security forum
Hope that helps
Patrick
** Can you post how some snippet how you are trying to achieve that?**
 
G

Guest

Chris if you are interested in Windows Auth then u need integrated auth
turned on
and Anonymous Acces unchecked by using User.Identity.Name you are suppoe to
get the user logged on and do what you want with it..
With forms Auth u need Anonymous Acces checked.
for Validating against AD see :-
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT02.asp
For forms and for windows i blogged it at:-
http://spaces.msn.com/members/naijacoder/
Hope that helps
Patrick
 

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

Top