asp.net-membership

What encryption algorithm does the .net membership provider use?

Hi, I'm looking at the source code for the .net membership provider, and it sqlmembershipprovider.cs there are calls to EncryptPassword and DecryptPassword but I don't see the method anywhere in the source. What algorithm are they using? Isn't the source for that released also? ...

How do you rename a Role using Membership in .NET?

I'm using ASP.NET Membership and noticed there isn't a method in the Roles class to modify a role (its name for instance), only to create and delete them. Is it possible or it's not supported? EDIT: @CheGueVerra: Yes, nice workaround. Do you know (for extra credit :) ) why it's not possible? ...

How to pass the current user to a web control declaratively

I'm creating a control and need to pass it the current logon user as a parameter (declaratively) I tried this but didn't work (I got "<%= User.Identity.Name %>" as value): <cc1:MyControl id="myid" runat="server" User="<%= User.Identity.Name %>" /> Is there a way to do it? ...

Not using e-mail address in a custom MembershipProvider?

I'm writing a custom MembershipProvider for a legacy database. Users are authenticated by login and password, there is no e-mail attribute attached. What is the best way to "short-cycle" the FindUsersByEmail() and GetUserNameByEmail() methods? My naive approach was to leave them unimplemented, since I assume if there is no need to restor...

after running aspnet_regsql.exe , do I have to init the db with data? how?

Hi, I ran aspnet_regsql.exe to setup .net membership tables etc. What do I run to create my application so I can add users etc? ...

Anyone uses ASP .NET Membership?

Was wandering if anyone uses ASP .NET membership? If you do, tell me what you think about it. If you don't use it, Are you planning to use it on future projects? If not, why? RWendi ...

ASP.NET Membership: Login Controls Source Code

Is the source code for the common login controls available? Those are the controls which are available under Login section in Toolbox: Login, LoginView, PasswordRecovery, LoginStatus, LoginName, CreateUserWizard, ChangePassword Eventually could you point me to a good source of custom implementation of functionality that those ...

ASP.NET Application to authenticate to Active Directory or SQL via Windows Authentication or Forms Authentication

I am in the process of writing an application that will need multiple forms of authentication. The application will need to support authentication to Active Directory, but be able to fail back to a SQL Membership Provider if the user is not in Active Directory. We can handle the failing to the SQL Provider in code based on the username...

Generics and ASP.Net Membership Provider

I'm trying to use a generic list as a property of the users profile. I'll admit this is probably just making my life harder than it needs to be but I don't want to change the programming model just because the data store struggles. I have this in my web.config </providers> <properties> ..... <add name...

Setting up the default AspNetSqlProvider to point to remote database

When starting a new project that required the use of membership providers I found that I could not connect to a remote database that contained the membership database. I ran aspnet_regsql and was able to create the membership database on the remote server but when I go to ASPNET Configuration (cassini development server) it will not con...

An Open Source Project, Can Teach Membership and Role Management For .NET

I want to see a basic project to learn how to organize membership and role management. Can you give me some open source project link about it? ...

Using asp.net membership with sqlite or other provider?

Does anyone have any examples of using Sqlite with ASP.NET membership? I am building a small "drop-in" type web application and don't want to rely on an SQL database for storing user credentials, etc. Sqlite seems like a good option, and I have been impressed with its performance in Elmah; I wouldn't mind using xml as a data store eith...

ASP.NET membership password expiration

I am using ASP.NET membership for the authentication of my web app. This worked great for me. I now have to now implement password expiration. If the password has expired the user should be redirected to changepassword screen and should not be allowed access any other part of the application without changing the password. There are man...

Should I use Membership for this unusual account system

My asp.net mvc site needs some kind of authorization but it is rather different than the usual concept of users and thus membership. It will be used more for preferences then for authentication actually. Accounts without any password should be possible (and will initially be the only type) and an account can also be used by multiple user...

How to best implement custom search on a Membership provider

Out of the box, System.Web.Security.Membership implements a couple of search methods: FindUsersByEmail FindUsersByName I'm using the WSAT project from CodePlex to administer my Membership database. The tool implements extra profile properties in a ProfileCommon class. Let's say I have a property called Firm in the user's profile. ...

How do I deploy an ASP.net custom MembershipProvider?

I've written a custom MembershipProvider that uses a custom database schema for storing the members, but I am having trouble figuring out how to deploy the provider. My target server is running IIS7, and I am able to navigate to a dialog for a adding a .NET User Provider, but instead of allowing me to select the assembly containing the ...

ASP.NET Membership Provider with Confirmation email

Is there any framework/library for using ASP.NET Membership Provider with confirmation email, something ready to be used ? Standard functionality used on almost all public web sites. ...

How to assign Profile values?

I don't know what I am missing, but I added Profile properties in the Web.config file but cannot access Profile.Item in the code or create a new profile. ...

Should I use the membership provider when using MVC and a forum database?

I want to use an existing user and user group table that the forums use. I would prefer not to have to add any additional tables (other than what the forum already has). I will be using MS SQL. The forums are PHP which is why I want the .net site to handle all of the logic. The forum will use its own PHP logic as I will set and remove ...

How do I add first user (root) in ASP.NET MVC app?

I'm using ASP.NET MVC Framwork and trying to grok the ASP Membership 3.5 stuff. What is the best way to add the first administrator user without having to log in? I've been staring at the membership starter kit's source without finding it. ...