PC Review


Reply
Thread Tools Rate Thread

How to delete Kerberos tickets

 
 
Frank Perry
Guest
Posts: n/a
 
      27th Apr 2009
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?
--
Frank Perry
LavaLeaf Software
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      27th Apr 2009
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.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Frank Perry" <(E-Mail Removed)> wrote in message
news:3EF5C1E2-3937-4DEB-81B4-(E-Mail Removed)...
> 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?
> --
> Frank Perry
> LavaLeaf Software



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Track Kerberos Tickets =?Utf-8?B?U2FzaQ==?= Microsoft Windows 2000 Active Directory 1 27th Jun 2006 02:54 AM
Kerberos Tickets =?Utf-8?B?QnJhZHk=?= Microsoft Windows 2000 Security 1 28th Dec 2005 07:00 PM
Kerberos tickets are taking me down.. Help Many servers Fail Kerberos netdiag test... Scott Townsend Microsoft Windows 2000 Active Directory 3 22nd Apr 2004 07:40 PM
Kerberos tickets and group membership Brian Nielsen Microsoft Windows 2000 Security 1 11th Sep 2003 04:09 AM
Kerberos tickets and group membership Brian Nielsen Microsoft Windows 2000 Active Directory 8 10th Sep 2003 03:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:40 PM.