Skip to Content
Author's profile photo Former Member

Change the Authentication Error Messages Text on Logon Page for SAP NetWeaver Portal 7.3

Through this blog putting a small effort to put detail information available at one place to meet subjected goal and reduce your search time.

Use:

Change the SAP standard authentication error messages text on sap portal logon page (including initial password change page) with custom /more generic messages as per client requirement.

E.g. in this blog we will be changing following sap logon page error messages with our custom error messages.

    1. authentication_049=User authentication failed
    2. authentication_026=Password change failed
    3. authentication_025=New password and password confirmation are not identical
    4. authentication_024=Password confirmation missing
    5. authentication_023=New password missing
    6. authentication_022=Password missing
    7. authentication_021=Authentication failed. Password locked
    8. authentication_003=User account locked
    9. authentication_002=User is not currently valid
    10. authentication_000=User authentication failed

Solution

SAP error messages for logon page are stored in LogonMessages.properties file within sap.com~tc~je~security~impl.jar.

Ø Get sap.com~tc~je~security~impl.jar file from following server location.

     \usr\sap\<sid>\<instid>\j2ee\cluster\bin\services\security\lib\private

Ø Take a backup of original jar before making modifications to it.

Ø Change the extension of jar from .jar to .zip. Unzip the content and navigate to

     com\sap\engine\services\security\exceptions\

Ø If you want to change the English text, edit both LogonMessages_EN.properties and LogonMessages.properties file.Change Following key in both properties file as below

    1. authentication_049=It is my custom message for – User authentication failed
    2. authentication_026=It is my custom message for – Password change failed
    3. authentication_025=It is my custom message for – New password and password confirmation are not identical
    4. authentication_024=It is my custom message for – Password confirmation missing
    5. authentication_023=It is my custom message for – New password missing
    6. authentication_022=It is my custom message for – Password missing
    7. authentication_021=It is my custom message for – Authentication failed. Password locked
    8. authentication_003=It is my custom message for – User account locked
    9. authentication_002=It is my custom message for – User is not currently valid
    10. authentication_000=It is my custom message for – User authentication failed

Ø zip the content  back with same name sap.com~tc~je~security~impl and change the extension  to .jar .Make sure not to corrupt the jar.

Approach 1:

Ø Replace the original jar on server with this jar

Ø Restart your server

  Approach 2:

  You can package the modified jar into security.sda and deploy the modified security.sda directly through the admin tools. Deployment of sceurity.sda will cause the server to restart.

That’s it …You are done. Now your new changes will reflect.

Note:

This jar is part of security.sda which in turn is part of SERVERCORExx_x.sca. These changes will get overwritten by a patch/update of this sca .You need to repeat above steps to make your custom changes available again in the system.

Below are the screen shots for changes done by me

Scenario 1: User authentication failed

User Authentication failed.png

Scenario 2: Password change failed

Password Change Failed .png

Scenario 3: New password and password confirmation are not identical

new and cnf pwd not identical.png

Scenario 4: Password confirmation missing

cnf password missing.png

Scenario 5: New password missing

new missing.png

Scenario 6: Password missing

Password Missing.png

Scenario 7: Authentication failed. Password locked

Auth Failed PAssword Locked.png

Scenario 8: User account locked

User Account Locked.png

Scenario 9: User is not currently valid

User is not currently valid.png

Regards,

Madhvika

Please do correct me if I have mentioned anything wrong.

Assigned Tags

      8 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      nice document madam

      Author's profile photo Former Member
      Former Member

      madam ....can i know if user password is locked ...can user by self can reset that password actually i had this requirement earlier ....i know this is not a correct option ...suggest me

      Author's profile photo Former Member
      Former Member

      Yes, you can do this from portal 6.0 onwards SAP provided this solution.

      Author's profile photo Former Member
      Former Member

      Useful Blog and time saving one, Thanks for sharing...

      Author's profile photo Priyesh Shah
      Priyesh Shah

      Useful blog

      Author's profile photo prasad badal
      prasad badal

      where can I find and edit the message "Invalid new password( must contain...." in the change password screen

      Thanks

      Prasad B.

      Author's profile photo Deepa Awasthi
      Deepa Awasthi

      Hi, nice blog.

      Can you tell me how to package the modified .jar file into security.sda.

       Thanks and Regards,

      Deepa.

      Author's profile photo Kanchanapalli Sridhar
      Kanchanapalli Sridhar

      For some reason, my .zip file is getting corrupted. I tried with different ZIP software.

      I am able to solve using the command prompt.

      Jar XF <File Name .jar>

      After changing the messages,

      Jar CF <file name .jar> META-INF com

      Here is more info on this.

      https://docs.oracle.com/javase/tutorial/deployment/jar/build.html

      Thanks,

      Sri