How to delete Kerberos tickets

F

Frank Perry

Howdy,

I have an app that requests data from a server. I am using Kerberos tickets
for authentication. My problem is that users of remote machines don't log
off those machines and after a number of days, the ticket granting ticket
reaches the end of its renewal period. Under Windows XP sp2 (can't go to sp3
yet), my calls to get a new ticket fail. If I can delete the ticket with
klist.exe, the program will get a new ticket and the user is authenticated.

I am trying to get the function CredDelete to remove the Kerberos ticket so
I can request a new one, but all the calls return that they can't find the
ticket (error 1168). The code looks like

LPCWSTR pwstrPrincipal = (LPCWSTR) "krbtgt/myPlace";
BOOL bCredBack = ::CredDeleteW(pwstrPrincipal,(DWORD) 1,(DWORD)0);

Any ideas what I'm doing wrong?
 
D

Douglas J. Steele

Sorry, but this newsgroup is for questions about security in Access, the
database product that's part of Office Professional.

You'd be best off reposting your question to a newsgroup related to Windows.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top