English 中文(简体)
ASP.NET Membership Provider and network domain
原标题:

First off, I m not entirely sure that my question title is very descriptive, so my apologies for that.

I am working on a new site and will be using the MembershipProvider system (well, a custom implementation anyway), and I ve run across a unique problem. Since the machine I m developing this on is hooked up to my employers ActiveDirectory domain, whenever I use any of the Login controls, it constantly shows me as being logged in, pulling the DOMAINuser.name from ActiveDirectory, even though I haven t created any user accounts yet with the Membership system.

Now, I know why it s doing this; it s because the Login controls pull the username from the Page s Request property, which is always going to pull my domain account. My question is, can I override this? I need to because since I am using a custom membership model, I need to test the login/logout functionality, and I can t do that when it constantly shows me as being logged in. :)

Any information or links would be greatly appreciated. I did look through the "Related Questions" before posting this, and didn t find anything directly related to my question. Thanks again.

James

最佳回答

It sounds like you have windows authentication turned on in your website. First of all, make sure it s no longer turned on (the only auth method enabled should be "forms"), and then make sure that your custom membership provider is registered correctly.

I hope this points you in the right direction.

/Klaus

问题回答

暂无回答




相关问题
Using JavaScript to get an LDAP multi-valued string attribute

I am trying to retrieve an object attribute in Active Directory that appears to be a multi-valued string (See canonicalName). After performing a search: var conn; conn.Open = Provider=ADsDSOObject; ...

Test "User Must Change Password" field in .Net 3.5

I m trying to perform some basic AD User managment tasks in C# using .Net 3.5 I ve got a System.DirectoryServices.AccountManagement.UserPrincipal object that contains the user details. I can call ...

SSIS Script Task connecting to AD

I have written a SSIS 2005 script task that connects to Active Directory and reads user accountnames to store in database. I was able to successfully test this on my local system by executing dtexec....

Update Full Name in Active Directory

I ve been thrust into the deep end with Active Directory (I m a web developer, go fig) I have a user that I ve changed first/last name on but the Full Name hasn t changed which is causing issues with ...

Authenticate against Active Directory/ISA from php [closed]

I have a complicated problem, exacerbated by the fact I don t really know where to start! Over the last few years, I ve developed a number of php web-based systems. When I built them, our network was ...

热门标签