sp_displaylogin is enhanced to display the encryption version(s) used for a login. For example, when both old and new encryption is used during the password downgrade period, the output of sp_displaylogin has the new line “Password encryption.”
In this example, both the old Sybase proprietary encryption algorithm is used as well as the new algorithm SHA-256:
1> sp_displaylogin 'mylogin' 2> go
Suid: 121 Loginame: mylogin Fullname: Default Database: master Default Language: Auto Login Script: Configured Authorization: sa_role (default ON) sso_role (default ON) oper_role (default ON) sybase_ts_role (default ON) Locked: NO Date of Last Password Change: Aug 10 2006 11:17AM Password expiration interval: 0 Password expired: NO Minimum password length: 6 Maximum failed logins: 0 Current failed login attempts: Authenticate with: NONE Login password encryption: SYB-PROP, SHA-256 Last login date : Aug 17 2006 5:55PM (return status = 0)
When only the new encryption is used, the output of sp_displaylogin has the line “Login password encryption: SHA-256”:
1> sp_displaylogin 'mylogin' 2> go
Suid: 121 Loginame: mylogin ... Authenticate with: NONE Login password encryption: SHA-256 Last login date : Aug 17 2006 5:55PM (return status = 0)
When a login has not occurred after upgrade, the old encryption is still in place, and the output of sp_displaylogin has the line “Login password encryption: SYB-PROP”:
1> sp_displaylogin 'mylogin' 2> go
Suid: 121 Loginame: mylogin ... Authenticate with: NONE Login password encryption: SYB-PROP Last login date : Aug 17 2006 5:55PM (return status = 0)
When a login has been locked, sp_displaylogin shows the date, reason, and login that locked the account.The lastlogindate value is also displayed:
1> sp_displaylogin 'mylogin' 2> go
Suid: 121 Loginame: mylogin Fullname: Default Database: master Default Language: Auto Login Script: Configured Authorization: sa_role (default ON) sso_role (default ON) oper_role (default ON) sybase_ts_role (default ON) Locked: YES Date when locked: Aug 18 2006 9:15AM Reason: Account locked by Adaptive Server due to failed login attempts reaching max failed logins. Locking suid: 121 Date of Last Password Change: Aug 10 2006 11:17AM Password expiration interval: 0 Password expired: NO Minimum password length: 6 Maximum failed logins: 3 Current failed login attempts: 3 Authenticate with: ANY Login password encryption: SYB-PROP, SHA-256 Last login date : Aug 17 2006 5:55PM (return status = 0)