The loginsuccess subroutine resets this attribute to a value of 0. Additionally, a login success audit record is cut to indicate in the audit trail that this user has successfully logged in. A message is returned in the Msg parameter that indicates the time, host, and port of the last successful and unsuccessful login. The number of unsuccessful login attempts since the last successful login is also provided to the user. Parameters User Specifies the login name of the user who has successfully logged in.
Host Specifies the name of the host from which the user logged in.
If the Host parameter is a null value, the name of the local host is used. Tty Specifies the name of the terminal which the user used to log in. Msg Returns a message indicating the delete time, host, and port of the last successful and unsuccessful logins. The number of unsuccessful login attempts since the last successful login is also provided. Upon return, the value is either a pointer to a valid string within memory allocated storage or a null pointer.