473,568 Members | 2,882 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Case sensitive username/password

I've included a list of username/password combinations in the
Web.Config file and I've a simple .aspx page with a username and
password field for the users to log in. While the password field is
automatically case sensitive, the username field is not. How can I
force the username field to be case sensitive, i.e. match exactly what
I have on the Web.config file? Do I have to use regular expressions?

thanks
Nemo

Apr 21 '06 #1
4 4709
IMO you'll have to compare yourself using a case sensitive comparison in
your login page.

I'm not sure about the goal (as this is unusual it could confuse users, if
this is for additional protection I would rather enforce a particular policy
for passwords).

--

"nemo" <pa*****@gmail. com> a écrit dans le message de news:
11************* *********@t31g2 00...legr oups.com...
I've included a list of username/password combinations in the
Web.Config file and I've a simple .aspx page with a username and
password field for the users to log in. While the password field is
automatically case sensitive, the username field is not. How can I
force the username field to be case sensitive, i.e. match exactly what
I have on the Web.config file? Do I have to use regular expressions?

thanks
Nemo

Apr 21 '06 #2
Thanks Patrice for your response. The problem I'm facing is as follows:
I don't want multiple users to log in with the same username. However
if I have "user" as the username and "pass" as the password in my
Web.Config file, the program I've written is allowing "user", "User" as
well as "USER" to log in with the same password "pass". But I want to
allow only "user".

thanks
Nemo

Apr 21 '06 #3
Why? do you wish to give out user, User and USER to different users as
usernames. Windows users do not expect usernames to be case sensitive, case
sensitive usernames are more of a *nix thing. What are you trying to acheive
by hacing case sensitive user names.

"nemo" wrote:
Thanks Patrice for your response. The problem I'm facing is as follows:
I don't want multiple users to log in with the same username. However
if I have "user" as the username and "pass" as the password in my
Web.Config file, the program I've written is allowing "user", "User" as
well as "USER" to log in with the same password "pass". But I want to
allow only "user".

thanks
Nemo

Apr 21 '06 #4
Thanks a lot. So I take it that if an user logs in as "user", closes
the browser window, and logs back as "USER", she will "see" her old
session, right? To asp both are the same, right?

Apr 21 '06 #5

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

Similar topics

9
1804
by: Jeff | last post by:
i have this on my signup page Set rs = Conn.Execute("SELECT * from rounds") DO WHILE NOT rs.EOF IF request.form("username") = rs.fields.item("username").value THEN response.redirect("register2.asp") END IF
1
3510
by: Joe | last post by:
Hi, I have a login script and right now it is not case sensitive. I want to make it case sensitive. The userid and password is stored in MS Access DB and not in web.config. Can someone give me some clue as how to do it? I have pasted my code to give you an idea as what code I have. This code works fine. I only want to make it case...
1
1114
by: Claire-Louise | last post by:
I have a strange occurrence on a test internal website with a control that appears at the top of every page. The website is on a test Windows 2000 Server running IIS with a domain name 'DARASD06'. Once the URL (below) has been entered, the user clicks a link that takes you to a login page. This is authenticated and then uses 'returnURL' to...
2
1594
by: Showjumper | last post by:
How can i go about doing case sensitive passwords w/ forms auth, vbnet and asp.net 1.1? I found an msdn mag article that used cast as varbinary in the sql statement but i cant get it to work. Is the sql approach best? What other approaches are there? Ashok
7
2969
by: vunet.us | last post by:
So, I came across the problem every developer comes across with once: case in SQL. My users login with their selected user name and when SQL checks for user name value, case is ignored. For example, user1 is equal to User1. This causes some problems in cases where I validate user names for authentication to access some secure files. Anyway,...
1
2779
by: samanthavernon | last post by:
Hi All, I'm using Windows Vista with Python 2.5. I need the code to check for case sensitive letters and digits, but something isn't right with it. The code is below: # -*- coding: cp1252 -*- from easygui import * accounttype=buttonbox("Would you like to create an account or login?", "Password Storage System Pro", choices=)
1
2666
nirmalsingh
by: nirmalsingh | last post by:
hai all, in a table user master i have username:Admin , password:admin and userid:1 i have to retrieve user id where username='Admin' and password:'admin' if i enter username='admin' and password:'Admin' (check case for field value) the user id should not retrieved. how to write a simple query for this? thanx in advance
10
409
by: Les Desser | last post by:
In article <fcebdacd-2bd8-4d07-93a8-8b69d3452f3e@s50g2000hsb.googlegroups.com>, The Frog <Mr.Frog.to.you@googlemail.comMon, 14 Apr 2008 00:45:10 writes Thank you for that. It was very clear and I actually understand it!
6
4442
by: Derik | last post by:
Okay, I THINK this is a PHP question... I've been mucking with PHP for awhile now, but just recently I've been poking at some ajax stuff, and I ran into something confusing; my Queries were coming back case-sensitive. I.e. WHERE user_name LIKE 'd%' would return "david" but not "Daryl" That's weirding me out- I thought sql queries were...
0
7693
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7604
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7916
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7660
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6275
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2101
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 we have to send another system
1
1207
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.