You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mick Knutson <mi...@hotmail.com> on 2003/10/14 06:06:45 UTC

Urgent: username case insensitive for j_security_check?

I guess I never thought about this, but all my usernames have not been entered in a case insensitive fashion. I can easily enough fix this in the Action Class to make everything lowercase, but how do I do this with the j_security_check form?
I also need a solution that does not rely on JavaScript. Maybe I can use a filter?


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our "Personal Emergency Alert & Contact System" can help you Play Smart. 

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

Re: Urgent: username case insensitive for j_security_check?

Posted by Mick Knutson <mi...@hotmail.com>.
Currently I am just using the JBoss framework, and have not done my own.


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our "Personal Emergency Alert &
Contact System" can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

----- Original Message ----- 
From: "Adam Hardy" <ah...@cyberspaceroad.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Tuesday, October 14, 2003 7:27 AM
Subject: Re: Urgent: username case insensitive for j_security_check?


> Mick,
> it depends on your login framework. Are you using a tomcat realm or have
> you rolled your own? If you are using a JDBC realm with a database, you
> could change the query to make the conversion, for instance.
>
>
> Adam
>
> On 10/14/2003 04:06 PM Mick Knutson wrote:
> > The issues is that I have seen the users that will be on my system. and
they
> > are already adding "TheUserFromOhio" as a username etc... Now I can
always
> > change everything to lower case when they register. But then I still
have
> > the issue about the login.
> > And many of my users are Mac users, so I seem to have heaps of
JavaScript
> > issues.
> >
> >
> > ---
> > Thanks
> > Mick Knutson
> >
> > The world is a playground...Play Hard, Play Smart.
> > Visit  http://www.YourSoS.com to learn how our "Personal Emergency Alert
&
> > Contact System" can help you Play Smart.
> >
> > +00 1 (708) 570-2772 Fax
> > MSN: mickknutson
> > ICQ: 316498480
> > ICQ URL: http://wwp.icq.com/316498480
> >
> > ---
> >
> > ----- Original Message ----- 
> > From: "Adam Hardy" <ah...@cyberspaceroad.com>
> > To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> > Sent: Tuesday, October 14, 2003 12:53 AM
> > Subject: Re: Urgent: username case insensitive for j_security_check?
> >
> >
> >
> >>On 10/14/2003 06:06 AM Mick Knutson wrote:
> >>
> >>>I guess I never thought about this, but all my usernames have not been
> >
> > entered in a case insensitive fashion. I can easily enough fix this in
the
> > Action Class to make everything lowercase, but how do I do this with the
> > j_security_check form?
> >
> >>>I also need a solution that does not rely on JavaScript. Maybe I can
use
> >
> > a filter?
> >
> >>Hi Mick,
> >>a filter won't work. You won't be able to put anything between the
> >>browser submit and the container-managed authentication - it's
> >>completely tomcat and allows no programmatic interference. Can't you
> >>convert your user names with a script or something?
>
>
> -- 
> struts 1.1 + tomcat 5.0.12 + java 1.4.2
> Linux 2.4.20 RH9
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Urgent: username case insensitive for j_security_check?

Posted by Adam Hardy <ah...@cyberspaceroad.com>.
Mick,
it depends on your login framework. Are you using a tomcat realm or have 
you rolled your own? If you are using a JDBC realm with a database, you 
could change the query to make the conversion, for instance.


Adam

On 10/14/2003 04:06 PM Mick Knutson wrote:
> The issues is that I have seen the users that will be on my system. and they
> are already adding "TheUserFromOhio" as a username etc... Now I can always
> change everything to lower case when they register. But then I still have
> the issue about the login.
> And many of my users are Mac users, so I seem to have heaps of JavaScript
> issues.
> 
> 
> ---
> Thanks
> Mick Knutson
> 
> The world is a playground...Play Hard, Play Smart.
> Visit  http://www.YourSoS.com to learn how our "Personal Emergency Alert &
> Contact System" can help you Play Smart.
> 
> +00 1 (708) 570-2772 Fax
> MSN: mickknutson
> ICQ: 316498480
> ICQ URL: http://wwp.icq.com/316498480
> 
> ---
> 
> ----- Original Message ----- 
> From: "Adam Hardy" <ah...@cyberspaceroad.com>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> Sent: Tuesday, October 14, 2003 12:53 AM
> Subject: Re: Urgent: username case insensitive for j_security_check?
> 
> 
> 
>>On 10/14/2003 06:06 AM Mick Knutson wrote:
>>
>>>I guess I never thought about this, but all my usernames have not been
> 
> entered in a case insensitive fashion. I can easily enough fix this in the
> Action Class to make everything lowercase, but how do I do this with the
> j_security_check form?
> 
>>>I also need a solution that does not rely on JavaScript. Maybe I can use
> 
> a filter?
> 
>>Hi Mick,
>>a filter won't work. You won't be able to put anything between the
>>browser submit and the container-managed authentication - it's
>>completely tomcat and allows no programmatic interference. Can't you
>>convert your user names with a script or something?


-- 
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Urgent: username case insensitive for j_security_check?

Posted by Mick Knutson <mi...@hotmail.com>.
The issues is that I have seen the users that will be on my system. and they
are already adding "TheUserFromOhio" as a username etc... Now I can always
change everything to lower case when they register. But then I still have
the issue about the login.
And many of my users are Mac users, so I seem to have heaps of JavaScript
issues.


---
Thanks
Mick Knutson

The world is a playground...Play Hard, Play Smart.
Visit  http://www.YourSoS.com to learn how our "Personal Emergency Alert &
Contact System" can help you Play Smart.

+00 1 (708) 570-2772 Fax
MSN: mickknutson
ICQ: 316498480
ICQ URL: http://wwp.icq.com/316498480

---

----- Original Message ----- 
From: "Adam Hardy" <ah...@cyberspaceroad.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Tuesday, October 14, 2003 12:53 AM
Subject: Re: Urgent: username case insensitive for j_security_check?


> On 10/14/2003 06:06 AM Mick Knutson wrote:
> > I guess I never thought about this, but all my usernames have not been
entered in a case insensitive fashion. I can easily enough fix this in the
Action Class to make everything lowercase, but how do I do this with the
j_security_check form?
> > I also need a solution that does not rely on JavaScript. Maybe I can use
a filter?
> >
>
> Hi Mick,
> a filter won't work. You won't be able to put anything between the
> browser submit and the container-managed authentication - it's
> completely tomcat and allows no programmatic interference. Can't you
> convert your user names with a script or something?
>
> Adam
>
> -- 
> struts 1.1 + tomcat 5.0.12 + java 1.4.2
> Linux 2.4.20 RH9
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Urgent: username case insensitive for j_security_check?

Posted by Adam Hardy <ah...@cyberspaceroad.com>.
On 10/14/2003 06:06 AM Mick Knutson wrote:
> I guess I never thought about this, but all my usernames have not been entered in a case insensitive fashion. I can easily enough fix this in the Action Class to make everything lowercase, but how do I do this with the j_security_check form?
> I also need a solution that does not rely on JavaScript. Maybe I can use a filter?
> 

Hi Mick,
a filter won't work. You won't be able to put anything between the 
browser submit and the container-managed authentication - it's 
completely tomcat and allows no programmatic interference. Can't you 
convert your user names with a script or something?

Adam

-- 
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org