Use the ActiveDirectoryMembershipProvider that comes with ASP.NET 2.0 and
follow the guidance on using it published by the patterns and practices team
on MSDN (easy search). Don't try to write this yourself. Your solution
likely will not be of the same kind of quality as the built in one.
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net --
[quoted text, click to view] "hharry" <paulquigley@nyc.com> wrote in message
news:1194647755.467574.140890@v3g2000hsg.googlegroups.com...
> Hello All,
>
> I am trying to add forms authentication to an asp.net website. I am
> developing locally, than publishing the site to the web server.
>
> Everthing works fine on my local machine in debug mode. I am able to
> call up the login page, successfully authenticate against the remote
> active directory database and then be re-directed to the requested
> page.
>
> The problem occurs when I publish the app to the web server. I call up
> the application and get re-directed to the login page. I enter the
> same credentials, but receive the following error: Unknown error
> (0x80005000)
>
> Development environment:
> I am developing on my local machine and then publishing to a web
> server. The web server is part of the domain xxx. I have a windows
> account for this domain, a vpn connection and a mapped-drive which
> enables me to publish.
>
> I have enabled anonymous access for the virtual directory using the
> default account IUSR.
>
> I determined that the Active Directory root was YYY.xxx.com and then
> set my LDAP connection string to:
> LDAP://YYY.xxx.com/dc=xxx,dc=com
>
> I have a vpn connection and to the web server and have mapped a drive
> wheich allows me to publish.
>
> I thought that the problem might be that the IUSR does not have
> permission to access the Active Directory database. I tried changing
> the anonymous account to my own domain account, but the same error
> occurred.
>
> Pointers appreciated...
>
> thanks!
>