Re: Login Field to be Converted to Upper case automaticaly (401 Views)
Reply
Valued Contributor
GayathriTCS
Posts: 271
Registered: ‎07-22-2010
Message 1 of 7 (488 Views)

Login Field to be Converted to Upper case automaticaly

 

Hi Experts,

 

We have a requirement of making the login field in Web client to be auto converted to Upper case when any user Type in their User ID , by default it should be converted to Upper Case and we are using SM 9.33 and the changes has to be done in smlogin.jsp file , Please suggest how to make these changes.

 

Regular Advisor
ArpitAggarwal07
Posts: 104
Registered: ‎09-10-2013
Message 2 of 7 (472 Views)

Re: Login Field to be Converted to Upper case automaticaly

Access the smlogin.jsp file within the deployed WAR/EAR

 

Locate the following entries:

<td class="loginInput">
  <input id="LoginUsername" type="text" name="user.id" tabindex="1">
</td>

 

Modify the middle entry:

<td class="loginInput">
  <input id="LoginUsername" type="text" name="user.id" tabindex="1" style="text-transform:uppercase;">
</td>

 

Regards

AA

Valued Contributor
GayathriTCS
Posts: 271
Registered: ‎07-22-2010
Message 3 of 7 (451 Views)

Re: Login Field to be Converted to Upper case automaticaly

Hi,

 

Thanks for your reply, however the field was replaced with Upper case when keying in the Login name , but it displayes " Invalid login name/Password " after making these changes, Please suggest whether any more changes to be done else where.

 

 

Honored Contributor
Abhijit K
Posts: 900
Registered: ‎10-14-2010
Message 4 of 7 (414 Views)

Re: Login Field to be Converted to Upper case automaticaly

Hi ,

Is your database case-sensitive, if so Gayathri wont be same as GAYATHRI because in your operator record login.id will be Gayathri.

Re,
Abhijit
Valued Contributor
GayathriTCS
Posts: 271
Registered: ‎07-22-2010
Message 5 of 7 (401 Views)

Re: Login Field to be Converted to Upper case automaticaly

Waht could be solution for this now , because even in the windows client the user ID should be Upper case if lower case is keyes in then the login will not happen.

 

So the same should work even in Web client where only the text is automatically changed to upper case and in operator record the field is stored as upper case itself.

 

 

HP Expert
FrankRen
Posts: 23
Registered: ‎03-18-2014
Message 6 of 7 (376 Views)

Re: Login Field to be Converted to Upper case automaticaly

Even when using case sensitive database and ldap, users can login with ether upper case or lower case.  This is fixed by change request family QCCR1E71976 "Operators should log in successfully even LDAP and SM DB opeartor cases do not match after upgrading to SM9.20". 

The key point is , you should use LDAP for user authentication,  add the following parameters in sm.ini:
ldapdisable:0
ldapbinddn: FQDN like cn=admin,cn=users,DC=QA-01,DC=SMCPE,DC=SH,DC=lab
ldapbindpass:the password of LDAP admin
ldapnostrictlogin:1
ldapstats:1
ldapauthenticateonly:1

 

ldapnostrictlogin:1 ==> when the user name is not in LDAP, this one will try to find him/her in local DB incasesensitively.

ldapauthenticateonly:1 ==> This one tell RTE to authenticate with LDAP.

 

This fix is released in SM7.11P19, Sm9.21P5 and 930P4, a long time ago.

 

 

 

Valued Contributor
GayathriTCS
Posts: 271
Registered: ‎07-22-2010
Message 7 of 7 (357 Views)

Re: Login Field to be Converted to Upper case automaticaly

we have noticed that when typing the User name it says invalid user name and password , however when copying the same opertor ID and pasting in the Login field it works fine though it is for the same ID , Please suggest whether anything else needs to be done.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.