473,503 Members | 2,197 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Want to create a custom membership provider, but use SQLMembershipProvider functionality

Hi all,

I'm about to start creating a custom membership provider. Its for a
website that already has a table of users in a single table, so I need
to create a custom MP to talk to the data in that table.

In addition, my custom membership provider needs to be able to do this:

1) Hash the password.
2) Verify the strength of the pasword when a user is created. I want to
use the same kind of rules that exist for the SQLMembershipProvider,
e.g. a regular expression that can be set in the web.config to specify
the format of the password (PasswordStrengthRegularExpression) . I also
want to specify a min/max password length
3) Specify a password expiration length.

These features all exist in the SQLMembershipProvider, and I want to be
able to use the same kind of functionality (driven by the web.config
provider settings) for my custom provider. Do I need to write all of
the code in my custom provider to implement things like checking the
password strength and length when a new user is created, or does
functionality exist in the abstract class that I can make use of?

As an example, I see that the MembershipProvider class has a method
"PasswordStrengthRegularExpression" which I can use to set the regular
expression for password strength. But how do I make use of this? Since
its part of the MembershipProvider class then can I also use a method
on the MembershipProvider class that will do the strength check for me,
or do I need to write code myself to check this?

Thanks for any responses.

Matt.

Oct 19 '06 #1
0 2280

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4245
by: John | last post by:
Hi I am trying to setup a customised membership provider and I am getting the following error when trying to run the app; The entry 'AspNetSqlMembershipProvider' has already been added. The...
4
1490
by: Pony Tsui | last post by:
I was install the starter kits CLUB, and created a CLUB WEB SITE, this application use the MemberInfo table in club.mdf to store the membership'data, but i can not find out where to define or...
1
4792
by: CK | last post by:
Does anyone have any experience with this? We have an exisitng sql database with user and role info. I need to write a custom role provider to use this data. Does anyone have any examples of this...
1
2043
by: Ryan | last post by:
I am trying to log events to SQL Server instead of the computers event log, but, although I get no errors, I have no luck. The webevents_events table is empty. I have a custom event that I am...
2
5890
by: Brandon Holliday | last post by:
Hello, I have a problem that I need some help on. I am creating a website that utilizes the builtin membership functionality in Asp.net 2.0. By default, the "AspNetSqlProvider" is used and...
0
1009
by: kal | last post by:
i have created a custom provider in web.config <membership defaultProvider="CustomisedProvider"> <providers> <clear/> <add name="CustomisedProvider" ...
2
2755
by: GaryDean | last post by:
My ASP.Net application, that uses the SQL Membership Provider, runs fine on my development box (server2003) as long as I use the standard provider. But, in anticipation of deployment to other...
3
1958
by: Sunfire | last post by:
I need to use a custom database for all of the user membership and rolls. How do you do this?
1
1906
by: =?Utf-8?B?VGhvbWFz?= | last post by:
I'm running into a bizzare sitution with the SqlMembershipProvider. I am using a SqlMembershipProvider and SqlRoleProvider. The are each set to a different applicationName. like so: <roleManager...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5594
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5022
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4688
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
746
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.