I have a requirement where application is running as service on windows machine and i need to get user-name from kerberos cache if the user is logged-in via kerberos.
I am able to impersonate the logon user from my service. However, i don't know how to acess kerberos cache and get the kerberos user-name from it.
I have tried looking at SSPI and LSA but i don't find much help.
In fact earlier windows had "klist" sample code 'under platform\sdk\'. Similar to this is what i need.
Please suggest me if any other method to retrieve kerberos user-name.
Thanks and regards