Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member

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

Scenario 2: Password change failed

Scenario 3: New password and password confirmation are not identical

Scenario 4: Password confirmation missing

Scenario 5: New password missing

Scenario 6: Password missing

Scenario 7: Authentication failed. Password locked

Scenario 8: User account locked

Scenario 9: User is not currently valid

Regards,

Madhvika

Please do correct me if I have mentioned anything wrong.

8 Comments
Labels in this area