[OpenAFS-port-darwin] OS X: afs tokens at login

Claudio Bisegni Claudio.Bisegni@lnf.infn.it
Mon, 2 Jun 2008 18:32:05 +0200


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

Hi Duncan
Now with preference pane i write a file, TheseCell, wich contains user  
selected cells for wich he want to get token.

Using loginhook we must read the file TheseCell and call aklog for  
every cell, or make aklog modification to use TheseCell. There should  
be a version for aklog that work in this way.

Using launchd I have made a little deamon to do this, reading user  
pref managed by AFSPreference and calling aklog for each cell in  
TheseCell file.

Also if we are gonig to use loginhook we must always use a little  
daemon that will manage the creation a destruction of desktop sym link  
to an afs path( the next update for AFSPreference).

What do you think about PreLogin Agents(http://developer.apple.com/samplecode/PreLoginAgents/index.html)? 
  it' seems that it run before login app is closed... should be seen  
if run also befor user home is used.

We must also begin to think for use launchd for afs startup.

Ciao
Claudio


On 02/giu/08, at 18:14, Duncan S Kincaid wrote:

> caudio
>
> loginhook is run by root (hence the required 'su' in line below) in  
> the very earliest stages of the user login procedure.
> more info on loginhook can be found here:
> <http://docs.info.apple.com/article.html?artnum=301446>
>
> ciao
> dk
>
> On Jun 2, 2008, at 4:19 AM, Claudio Bisegni wrote:
>
>> hi derrick and Duncan,
>> do you know if loginhoock occur befor or after mi launchd login  
>> startup hack?
>> i was thinking also to the prelogin launchd agent as described in  
>> one apple tutorial.
>> On 02/giu/08, at 06:51, Derrick Brashear wrote:
>>
>>> On Sun, Jun 1, 2008 at 10:14 PM, Duncan Kincaid <dsk@mit.edu> wrote:
>>>> ciao claudio
>>>>
>>>> our solution is to use mac os x 'loginhook'.
>>>> the script called by loginhook needs to have this one line:
>>>> `su "$1" -c /usr/bin/'aklog -cell cellnamehere'`
>>>>
>>>
>>> I thought Leopard broke loginhook. I guess tomorrow I should just  
>>> set
>>> up a host to try this on permanently.
>>> _______________________________________________
>>> port-darwin mailing list
>>> port-darwin@openafs.org
>>> https://lists.openafs.org/mailman/listinfo/port-darwin
>>
>> ----------------------------------------------------------------
>> Claudio Bisegni
>> mail: claudio.bisegni@lnf.infn.it
>> Fotografie: http://www.flickr.com/photos/jacod/
>>
>>
>
> _______________________________________________
> port-darwin mailing list
> port-darwin@openafs.org
> https://lists.openafs.org/mailman/listinfo/port-darwin

----------------------------------------------------------------
Claudio Bisegni
mail: claudio.bisegni@lnf.infn.it
Fotografie: http://www.flickr.com/photos/jacod/



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

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIESzCCBEcw
ggMvoAMCAQICAh29MA0GCSqGSIb3DQEBBQUAMC4xCzAJBgNVBAYTAklUMQ0wCwYDVQQKEwRJTkZO
MRAwDgYDVQQDEwdJTkZOIENBMB4XDTA3MDcxOTE0MjcyMFoXDTA4MDcxODE0MjcyMFowYzELMAkG
A1UEBhMCSVQxDTALBgNVBAoTBElORk4xHTAbBgNVBAsTFFBlcnNvbmFsIENlcnRpZmljYXRlMQww
CgYDVQQHEwNMTkYxGDAWBgNVBAMTD0NsYXVkaW8gQmlzZWduaTCCASIwDQYJKoZIhvcNAQEBBQAD
ggEPADCCAQoCggEBAKRPR+nFrOu4MrnhHkAjqR8e05jnyyBmE4b8WcKUJleLjFaVl9iL3QC5RYma
rT9UgpzrtZCN8WdGlCQLkLlOzlyRasXSHFaXzmtOEdMIOk1ZBXE/jy83+9TXSoKwFM84qHZFAzQc
J+XubQ6NnIKpmY9i04ctql/JPeilY1FnNvXcFZrYXraskztYn722dX6b0mYTjbufg42aHbUY60WC
/NMMlxzbUrZJLYcyYyy7GpAkbIceDH76vm2pCfRoP9TLN8Eng116K0z76fHgheBOOU9/UF5dIAVg
oJ+J8VDXu1xojWMeEJHbmOZYaBYrTUFioifrGv9BAWuNLFVAdT7ncxcCAwEA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