LDAP and ASP.Net

B

Big E

I'm using ASP.net, LDAP, and SQL Server.
We are using forms security for most of the ASP.Net internet site. So it
uses the generic ASPuser account but then uses forms security to check SQL
Server for username and password.
What I would like to do on another form is using Active Directory and LDAP.
Users go to that page and there Windows login is looked up with LDAP and it
returns values based on their Windows login.
My problem is that when I run the LDAP code it sees the ASP.Net user. I know
why. I can't change the security from Forms security.
How can I get around this without changing our entire security model in the
webconfig. I know when it looks for the username it finds ASP.Net user
because its looking on the web server and not the users computer.

Thanks.

Erik
 
K

Kevin Spencer

Disallow Anonymous Access. When Anonymous Access is turned on, everyone logs
in under the same account. When you force your users to log in with a
Windows account, they are logged in with their Windows account.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 

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