Re: Obatain AFS Token in ASCII format

Jeffrey Altman <[email protected]> Tue, 09 Oct 2007 13:45:32 -0600
Newsgroups gmane.comp.file-systems.openafs.devel.win32
Organization Secure Endpoints Inc.
Message-ID <[email protected]>
The token length is variable and depends on the type of Kerberos ticket
used within the token and how the ticket was acquired.

Luigi Alfano wrote:
> Thank you Jeffrey, I just finished yesterday to make this work.
> I used the this two routine!
> 
> Now can you say me about the lenght of the secret token? Reading the code of
> cklog.c I have understood that the kerberos server send it to the client,
> but I'm not so sure.
> I notice that in windows is always long 40byte, but in Unix it goes from 56
> to 166...
> 
> Bye
> 
> 
> 
> Jeffrey Altman-2 wrote:
>> Luigi Alfano wrote:
>>> Hi Jeffrey!
>>>
>>> I'm studing openafs for a research project in my university. 
>>> I've written a routine that print on stout the afs token in standard
>>> ASCII
>>> format, but only for linux. Now I'm tryng to do the same thing for
>>> windows
>>> servers. 
>>> Can you help me to write this routine?
>>> I'm starting studing hte source code of "ctokens.c" (in src/winnt/afsd
>>> directory).
>>>
>>> Please help me!
>>> ;)
>> The function should be identical for Windows.   ctokens.c shows you that
>> it calls the ktc_ListTokens() and ktc_GetToken() just like on UNIX.
>> The format of the tokens are the same.
>>
>> Jeffrey Altman
>>
>>  
>>
>
smime.p7s (application/x-pkcs7-signature, 3.3 KB) - not displayed