membership

Ignoring ProviderUserKey in Custom Role Provider Implementation

I have no use for the ProviderUserKey in the MembershipUser object, as my roles database has it's own ID's. If I'm using C#, how do I call the membershipuser constructor so that it creates the user without this key? What are the implications of not providing this key to the provider? Does the ProviderUserKey become part of the Principa...

MembershipUser constructor expects dateTime fields that might be null

The MemberShipUser constructor expects dateTime fields like lastLoginDate, which may be null in the data store. However, when I retrieve data from the store and pass null in for the parameter, I get an error that it cannot be null. How can I work around this? ...

ASP.Net membership validating users created manually

I am manually creating users in my asp.net user tables with the membership.creatuser(). Is there an easy way to test to make sure the account is created and or valid after I create it? MembershipCreateStatus status = new MembershipCreateStatus(); Membership.CreateUser(user.FirstName + user.LastName, user.Passw...

Disabling account lockout with the SqlMembershipProvider

How do I disable the account lockout feature of the SqlMembershipProvider? The MSDN documentation for the MaxInvalidPasswordAttempts property does not specify how to disable it. If I can't find the correct way to do it I will set the maxInvalidPasswordAttempts attribute to the maximum value of an int which may effectively achieve the s...

ASP.NET: Total control of the ASP.NET membership provider

I have an application which uses the built in ASP.NET membership provider. There are two roles (admin and staff). I want admins to be able to see a list of current staff, add or delete staff and reset passwords. So far I've found very little information, but Membership.Provider.GetAllUsers looks promising. Is there any way I could show t...

Membership switch from ID to email

Currently I have a site (asp.net 3.5) that uses a unique ID for the login. I am going to need to switch it to use emails if possible. I am going to be creating all new accounts so I can wipe the membership table clean and import all the user info. We are switching from generic logins for departments to individual accounts. Any link...

Continuous rapid calls to WCF service returns a " Only one usage of each socket address (protocol/network address/port) is normally permitted 127.0.0.1:10111

Hey guys. I have developed a little mashup site. This site is complete with a community. So when the user goes to the Community.aspx page he/she will see the members of the community with joined date,nuber of comments, name, etc.etc. and ofc paging as well. There are like 15 users per page. Now my problem is that i have 2 types of users ...

How do you programatically end a session in asp.net?

Session.Abandon() doesn't seem to do anything. You would expect the Session_end event to fire when Session.Abandon() is called. ...

ASP.Net MVC & Memberships...

Hi all, I would really appreciate some feedback on what I am trying to achieve: The problem: I would like to authorize a user of my application to a single action on the controller. For e.g.: a user can perform the "save" action on my controller class if he has the required authorization. In the project I am working on, the creation ...

web.config does not contain a membership section

I'm following this walktrough: http://msdn.microsoft.com/en-us/library/879kf95c.aspx to add user login and register pages using out-of-the-box asp.net login and registration controls. For example, for the user registration I'm using CreateUserWizard. Now I want to customize the registration process, I want to remove the security questio...

ASP.NET Active Directory Membership Provider and SQL Profile Provider

Hey All, I am currently designing a Membership/Profile scheme for a new project I am working on and I was hoping to get some input from others. The project is a ASP.NET web application and due to the short time frame, I am trying to use any and all built in .NET framework components I can. The site will probably entertain < 5000 users...

membership provider

how do i setup my web.config to use Forms authentication, Set The Membership provider to ActiveDirectoryMembershipProvider and use the built-in login control. so that I can log into my web application using a valid active directory username and password??? ...

How to handle membership in an ASP.NET MVC application?

How would you handle membership in an ASP.NET MVC application? Using any external libraries? How would you do OpenID log in? username log in? email log in? any other that is worth looking into? Maybe all of them mixed into the application? It seems ASP.NET comes with some pre-build user database (I'm totally new to .Net). The NerdDinner...

ASP.NET Membership Provider - Specify settings in database rather than Web.config

I'm using the ASP.NET membership provider for authentication of users in my web app. I want to do two things To enable the client to configure settings such as maxInvalidPasswordAttempts and passwordAttemptWindow without having to know about the web.config (e.g. through a UI) To have the ability to share these settings across several ...

Is it possible to use 2 membership providers in ASP.NET?

I have this situation: I have a website and needs to use the users base from a users database (SQL Server, Oracle, etc) and from a NT user database (computer or domain) for security/authentication of the site. The scenario is this: A user logs into the site and enters his/her username and password. The site looks up to the users data...

Implementing Custom MembershipUser

Hello, I am going round in circles and need some help in implementing a Custom MembershipUser so that I can add my own custom Properties to the MembershipUser. I have been following the example on this site: How to: Implement a Custom Membership User The problem I am having is in the constructor of CustomMembershipUser, I think. My C...

ASP.NET Membership: how to set the user as logged in

I am trying to get the Membership Provider to work. So far I have: <asp:Login ID="Login1" runat="server" OnAuthenticate="Login1_Authenticate"> </asp:Login> calling : protected void Login1_Authenticate(object sender, AuthenticateEventArgs e) { if(Membership.ValidateUser(Login1.UserName, Login1.Password)) ...

Ektron user change password?

I have a Ektron client with Ektron installed. They would like to add the functionality to change a password to something they want. Do I need to be concerned with the ektron part or just go ahead and make my edit? Is there an easy way to do that? Any links to information would be greatly appreciated. ...

ASP.NET Membership Configuration Tool - Change Password?

How do I change my user's password with the ASP.NET configuration Tool? I can't and I guess its because I need to do something to the web.config? ...

How do you get the UserID of a User object in ASP.Net MVC?

I have some tables that have a uniqueidentifier UserID that relates to aspnet_Users.UserID. When the user submits some data for those tables, since the controller method has an [Authorize] I get a User object. I can get the username with User.Identity.Name, but how do I get the UserID to be able to establish (the ownership) relationship?...