Jump to content

login error handling?


johnnys
Go to solution Solved by mac_gyver,

Recommended Posts

Hi Guys,

 

I have created an application that has a login page and authenticates users based on Active Directory info.

 

It works fine for some users, however some are complaining of not being able to login. Currently when login fails, I have output 'Login Incorrect, please try again'. This is also sent to a log file which I can access,

 

I want to be able to troubleshoot this better, what would be the best way of doing this? All new to me im afraid!

 

Would it be an idea to create a custom message saying USERNAME incorrect and PASSWORD incorrect, narrowing it down for user?

 

Thanks in advance,

 

J

Link to comment
Share on other sites

  • Solution

the information you are logging should be as specific as possible. exactly why the login is failing, along with what the inputs are, the ip address, date/time...

 

while you need to give the user helpful information (is the login failing due to the values they entered, which if they re-enter correctly would work or due to a system error they cannot do anything about), you don't want to make it easy for someone to brute force/automate guessing usernames and passwords. unless you have bad-attempt counting and lockout, you would not want to tell the user if it is the username or the password that is causing the login to fail, just that it failed due to the values they entered ... try again.

Edited by mac_gyver
Link to comment
Share on other sites

Thanks for that advice, I was thinking I probably shouldn't make it easy for people to guess!

 

Currently my log file says 

2013-10-11 14:34:28 Cron Job - INFO --> Login Failed for: xxxxxxxxxxxx from IP xxx.xxx.xxx.xxx

How can I make this more detailed? I was searching alreday, but if anybody can point me in the right direction that would be great. 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.