Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Active Directory example

1 view
Skip to first unread message

Chris Davoli

unread,
Oct 26, 2005, 2:21:03 PM10/26/05
to
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?
--
Chris Davoli

Curt_C [MVP]

unread,
Oct 26, 2005, 2:32:04 PM10/26/05
to
Do you have Integrated Auth turned on for the site? If you have anonymous you
can't get the user from the client.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

Chris Davoli

unread,
Oct 26, 2005, 4:25:03 PM10/26/05
to
Do you have a link to some web page that will explain this to me?
--
Chris Davoli

Chris Davoli

unread,
Oct 27, 2005, 10:50:03 AM10/27/05
to
Curt, if you have integrated auth turned on, then will the logged in user get
passed to the server?
--
Chris Davoli

Patrick.O.Ige

unread,
Oct 30, 2005, 9:45:00 PM10/30/05
to
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?**

"Chris Davoli" <Chris...@discussions.microsoft.com> wrote in message
news:8CB502A7-6E4B-43A5...@microsoft.com...

Patrick.O.Ige

unread,
Oct 31, 2005, 1:10:05 AM10/31/05
to
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
0 new messages