[OpenAFS-port-darwin] Hoock for intercept tokens acquired/expired

Claudio Bisegni Claudio.Bisegni@lnf.infn.it
Mon, 10 Mar 2008 16:10:22 +0100


--Apple-Mail-162--778643355
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed;
	delsp=yes
Content-Transfer-Encoding: 7bit

I was thinking to use kernel kqueue call to get notification on file  
that contain the tokens. isn't a good idea?

On 10/mar/08, at 15:54, Jeffrey Altman wrote:

> Claudio Bisegni wrote:
>> Hi Folk,
>> i'm wondering how can intercept the afs tokens acquired/expired in  
>> openafs. Anyone as an idea?
>> I must use this for AFSCommander internal state and icon update.
> The way this is done in other tools is to periodically probe the  
> token list.
> Having read the token list you know when the tokens are expected to  
> expire and can use that information to handle automatic renewals or  
> prompting of the end user.
>

//---------------------------------------------------------------------//
Claudio Bisegni                	phone:  (+39)-06-9403-2345
LNF-INFN                       	fax:    (+39)-06-9403-2649
Via Enrico Fermi, 40           e-mail: Claudio.Bisegni@lnf.infn.it
I-00044 Frascati, Italy        	www:    http://www.lnf.infn.it/~bisegni


--Apple-Mail-162--778643355
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIESzCCBEcw
ggMvoAMCAQICAh29MA0GCSqGSIb3DQEBBQUAMC4xCzAJBgNVBAYTAklUMQ0wCwYDVQQKEwRJTkZO
MRAwDgYDVQQDEwdJTkZOIENBMB4XDTA3MDcxOTE0MjcyMFoXDTA4MDcxODE0MjcyMFowYzELMAkG
A1UEBhMCSVQxDTALBgNVBAoTBElORk4xHTAbBgNVBAsTFFBlcnNvbmFsIENlcnRpZmljYXRlMQww
CgYDVQQHEwNMTkYxGDAWBgNVBAMTD0NsYXVkaW8gQmlzZWduaTCCASIwDQYJKoZIhvcNAQEBBQAD
ggEPADCCAQoCggEBAKRPR+nFrOu4MrnhHk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