Ticket 366 - Change DS to purge ticket from krb cache in case of authentication error
also
Ticket 378 - unhashed#user#password visible after changing password
fix func declaration from previous patch
(cherry picked from commit 4054ea5970c730d2ab03ee5ad8b3e89b18a7076a)