Log Redfish event for invalid login via RMCPP interface

This commit adds support for logging RedFish event log while user tries
to attempt login with invalid credentials.
When user trying to login with invalid credentials on RMCP+ session
interface event should be logged in RedFish event log.
This is a requirement for system events auditing purpose.

Tested:
1. Login with wrong credentials on RMCP+ interface.
2. Verified RedFish event logged successfully.

"Members": [
        {
            "@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/1622785246",
            "@odata.type": "#LogEntry.v1_4_0.LogEntry",
            "Created": "2021-06-04T05:40:46+00:00",
            "EntryType": "Event",
            "Id": "1622785246",
            "Message": "Invalid username or password attempted on RMCPP.",
            "MessageArgs": [
                "RMCP+"
            ],
            "MessageId": "OpenBMC.0.1.InvalidLoginAttempted",
            "Name": "System Event Log Entry",
            "Severity": "Warning"
        }
    ],
    "Members@odata.count": 1,
    "Name": "System Event Log Entries"
}

3. Verified RedFish validator passed

Signed-off-by: sunitakx <sunitax.kumari@linux.intel.com>
Change-Id: I40b37ff5dd518c52d01b00196e8607c9762a17bf
2 files changed