473,322 Members | 1,496 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Count Current Invalid Password Attempts

I would like to be notified via email when a user account has been
locked due to the user exceeding the "MaxInvalidPasswordAttempts"
property of the membership provider. I know that SQL tracks this
current count number, but is there any way for me to access it?
Remember, this count is only increased when the username matches and
the password or password-answer doesn't. Since there is a distinction
between failing validation and failing to enter a correct password I
can't just implement a value each time the account comes up as not
valid.
Nov 18 '08 #1
1 4094

I am not "all knowing" in this area, but my idea would be to:
using System;
using System.Collections.Generic;
using System.Text;
using System.Web.Security;

namespace MyCompany.Security.Web.Providers
{
public class MySuperCoolMembershipProvider : SqlMembershipProvider
{
}
}
Then you could override some methods, call "base.MethodWhatever", but track
some things.

This is a loose idea, I don't know if its an exact fit for your need(s).


<ba*********@gmail.comwrote in message
news:05**********************************@u29g2000 pro.googlegroups.com...
>I would like to be notified via email when a user account has been
locked due to the user exceeding the "MaxInvalidPasswordAttempts"
property of the membership provider. I know that SQL tracks this
current count number, but is there any way for me to access it?
Remember, this count is only increased when the username matches and
the password or password-answer doesn't. Since there is a distinction
between failing validation and failing to enter a correct password I
can't just implement a value each time the account comes up as not
valid.

Nov 18 '08 #2

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

Similar topics

2
by: IronMan | last post by:
Hi group. I can't get a part of coding to work. It's for a Log in part of a system. So far it all work, apart from the last part. Where the number of bad passwords are counted, and when...
7
by: Dica | last post by:
i've used the sample code from msdn to create an encyption/decryption assembly as found here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT10.asp i'm...
4
by: Skeets | last post by:
i have an application that should allow acces to linux administrators only. iow, i want to code a php script that will be able to compare the entered password with the linux adminstrator's...
68
by: Martin Joergensen | last post by:
Hi, I have some files which has the following content: 0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 0 0 0 0 0
1
by: ad | last post by:
I want the if a user enter invalid password by tree times, the system will hold. How can I limit max Invalid Password Attempts with Login Controls? I have set the maxInvalidPasswordAttempts in...
1
by: =?Utf-8?B?am1obWFpbmU=?= | last post by:
I want to lock out a user after 5 failed password attempts with no Password attempt window. Meaning after 5 bad attempts, the account is locked until an administrator unlocks the account. How do I...
30
by: diane | last post by:
I've got an application running with table-based security: i capture the user's windows login with fOsusername, then have them enter a password checked against their username/login in my own table....
1
by: danibecr | last post by:
I'm trying to make a table that will daily count the records imported and save them to a seperate table along with the date imported. But as of now after all the processing is complete I delete...
5
by: itgaurav198 | last post by:
Hi all, I have a JSP that asks for userid and password. I want to develop an application that should be able to check how many attempts the same user has taken so that he can be redirected to some...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.