473,320 Members | 1,900 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,320 software developers and data experts.

check user account with AD

my web server is in domain. how can I check the user login with the AD's user account?? does it required the client's browser and web server located in the same domain??
and what is the different between using AD and LDAP??
Million Thanks.
Nov 18 '05 #1
1 1782
Hi Grey,

Would you like to use Forms Authentication or Windows Authentication?

For forms auth I got an example here:
http://www.cshrp.net/content/code/FormAuthwAD.zip

For windows authentication, you need to configure your IIS to use either
Basic (or digest but this requires som insecure changes to your domain
controller) or Windows Integrated Security.

Both of them uses HTTP to transmitt user information from the client to the
server. Windows Integrated Security will only work with internet expliorer.

For Integrated Security, IE will send the currently logged on users
credentials if the web application is in the local intranet. If the
application isn't on the local intranet or the credentials don't get
authorized, IE will prompt the user for login information.

IE will also prompt the user for login information if only basic is
activated.

For basic authentication you should be aware that credentials are sent in
clear text.

You also need to configure your asp.net application to use windows
credentials, you do this in web.config.

For your second question, AD is the repository and LDAP a query language
used (not exclusivly, other directory services uses LDAP to) to query AD for
information.

--
Patrik Lowendahl
www.cshrp.net - "Elegant code by witty programmers"

"Grey" <er*****@i-cable.com> wrote in message
news:Ox****************@TK2MSFTNGP09.phx.gbl...
my web server is in domain. how can I check the user login with the AD's
user account?? does it required the client's browser and web server located
in the same domain??
and what is the different between using AD and LDAP??
Million Thanks.
Nov 18 '05 #2

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

Similar topics

5
by: A.Dagostino | last post by:
hi i need to update an SQL Table when user select or unselect a checkbox control. How Can i do? Thanks Alex
1
by: praveen | last post by:
Hello friends, I have a few questions. I am working on a ETRN server (smtp extension) project in C ,linux. q1) How caqn my program check if SMTP delivery is enabled for a user account. q2) How...
7
by: Ajit | last post by:
Is there anyway to check for existance of a file on different machine. i.e. we have a data file (text file) thats stored on some other machine as its not to be exposed in case the web server is...
1
by: sincethe2004 | last post by:
By using <authentication mode="Forms" > in web.config, we can create self-designed login page, but how to check user's account and password is vaild in another domain controller? Does...
9
by: webrod | last post by:
Hi all, how can I check a user/password in a LDAP ? I don't want to connect with this user, I would like to connect to LDAP with a ADMIN_LOG/ADMIN_PWD, then do a query to find the user and...
2
by: Boujii | last post by:
<html> <head> <title>Add New MySQL User</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <? if(isset($_POST)) {
0
by: Big Charles | last post by:
Hello, Programming in VS2003-ASP.NET 1.1, I have this problem: Using DirectoryEntry and without any admin user, how can I check if a domain account, that try to login, has expired? Scenario: User...
2
by: Ken Fine | last post by:
I want to add the security question and answer security feature to the ChangePassword control. I am aware that this functionality is built into the PasswordRecovery tool. I have implemented the...
82
by: happyse27 | last post by:
Hi All, I modified the user registration script, but not sure how to make it check for each variable in terms of preventing junk registration and invalid characters? Two codes below : a)...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.