473,402 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Active Directory example

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

Nov 19 '05 #1
5 1713
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" wrote:
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

Nov 19 '05 #2
Do you have a link to some web page that will explain this to me?
--
Chris Davoli

"Curt_C [MVP]" wrote:
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" wrote:
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

Nov 19 '05 #3
Curt, if you have integrated auth turned on, then will the logged in user get
passed to the server?
--
Chris Davoli

"Curt_C [MVP]" wrote:
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" wrote:
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

Nov 19 '05 #4
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" <Ch*********@discussions.microsoft.com> wrote in message
news:8C**********************************@microsof t.com...
Do you have a link to some web page that will explain this to me?
--
Chris Davoli

"Curt_C [MVP]" wrote:
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" wrote:
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

Nov 19 '05 #5
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/de...SecNetHT02.asp
For forms and for windows i blogged it at:-
http://spaces.msn.com/members/naijacoder/
Hope that helps
Patrick

"Chris Davoli" wrote:
Curt, if you have integrated auth turned on, then will the logged in user get
passed to the server?
--
Chris Davoli

"Curt_C [MVP]" wrote:
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" wrote:
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

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Victor Lokhmatov | last post by:
Hello Everyone, My company has asked me to put a company directory on our intranet site and I'm trying to use php to extract the users from our active directory server. I've got everything...
1
by: Toufani | last post by:
Hi everybody, I want to retrieve information about objects in active directory windows 2000 and their properties. I got some codes that don't work absolutely. for example I can't retrieve users...
1
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
5
by: J'son | last post by:
<REPOSTED> Guys, I need to build a web intranet application that can automatically create a user account when a new user registers on the site. The user account will be on the web server,...
3
by: Jan Wrage | last post by:
Hi! I would like to implement a treeview in my existing application. It should show my entire Active-Directory structure, i.e. all Groups, Containers and OUs. Could somebody help me with...
0
by: jakobsgaard | last post by:
It is possible to Map a certificate to a Active Directory User Account from DotNet? Please provide an example. Best regards, Ejnar Jakobsgaard...
1
by: ATroy | last post by:
Hello! So far, I can't find any information on making a connection to active directory for reports in visual studio .net 2003. From the list of Available Data Sources I select "OLE DB (ADO)"...
0
by: Chung Leong | last post by:
In this brief tutorial I'll describe how you retrieve information from an Active Directory through the OLE-DB extension. While it is possible to use the LDAP extension to achieve the same goal, as...
4
by: Spam Catcher | last post by:
Hello All, I need to integrate my application into Active Directory. My application has the concept of groups, users, and also individual permissions. Users can be part of a group such as...
1
by: Tim | last post by:
Folks, I have 3 loosely linked problems which I am would appreciate feedback on. 1). T-Sql and Active directory roles. We want to be able to control access to data within a table based on a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.