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"
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.