Skip to Content

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.

To report this post you need to login first.

6 Comments

You must be Logged on to comment or reply to a post.

  1. Jwala ESS MSS

    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

    (0) 
  2. prasad badal

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

    Thanks

    Prasad B.

    (0) 

Leave a Reply