Banner for Locked Account

Hi,

I have enable Account lock for failed login attempts.
I have configured
1) /etc/security/policy.conf
2)/etc/default/login
To lock an account if it make multiple incorrect attempts to login to Solaris 10 server.

I can see the account gets locked in /etc/shadow.

I would like to see that once the account is locked and the user tries again he should get a message( Banner/motd like) that the account has been locked after 5-6 attempts.

Thanks,
KK

you can echo something in the /etc/profile when user attempts to login, eg timeout
but to make it check against the a/c status, you will need to script it anyway