100 likes | 227 Views
AFS Preference. the OpenAFS preference panel for OSX. Claudio Bisegni Workshop AFS 09, Roma. AFS Preference Pane News. From the version 1.5.61 is officially integrated in the distribution package. Tree Software component, Preference Pane, AFSBackgrounder, afshlp(Helper Tool)
E N D
AFS Preference the OpenAFS preference panel for OSX Claudio Bisegni Workshop AFS 09, Roma
AFS Preference Pane News • From the version 1.5.61 is officially integrated in the distribution package. • Tree Software component, Preference Pane, AFSBackgrounder, afshlp(Helper Tool) • AFSBackgrounder is new developed agent started at login time with launchd technology. • The agent manage the NSStatusItem(menu bar icon) and the “token at login option”, it can be used for other work in the future OpenAFS Preference Claudio Bisegni AFS Workshop ’09
AFS Preference Pane main view • base OpenAFS client operation. • Tokens list • AKLog use • K5 ticket at login • AFSCommander activation Code for K5 at Login plistData = [NSDatadataWithContentsOfFile:AUTH_FILE]; plist = [NSPropertyListSerializationpropertyListFromData:plistData mutabilityOption:NSPropertyListMutableContainersAndLeaves format:&format errorDescription:&error]; NSMutableDictionary *rightsDic = [plist objectForKey:@"rights"]; NSMutableDictionary *loginConsoleDic = [rightsDic objectForKey:@"system.login.console"]; NSMutableArray *mechanismsArray = [loginConsoleDic objectForKey:@"mechanisms"]; in mechanismsArray is deleted "builtin:authenticate,privileged"and added"builtin:krb5authnoverify,privileged" OpenAFS Preference Claudio Bisegni AFS Workshop ’09
AFS Preference Pane main view Launchd code for AFSBackgrounder • <?xml version="1.0" encoding="UTF-8"?> • <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> • <plist version="1.0"> • <dict> <key>KeepAlive</key> • <dict> • <key>SuccessfulExit</key> • <false/> • </dict> • <key>Label</key> • <string>it.infn.lnf.network.AFSBackgrounder</string> • <key>LimitLoadToSessionType</key> • <string>Aqua</string> • <key>Program</key> • <string> • /Library/PreferencePanes/OpenAFS.prefPane/Contents/Resources/AFSBackgrounder.app/Contents/MacOS/AFSBackgrounder • </string> • <key>RunAtLoad</key> • <true/> • </dict> • </plist> OpenAFS Preference Claudio Bisegni AFS Workshop ’09
<key>Program</key> <string> /Library/PreferencePanes/OpenAFS.prefPane/Contents/Resources/ AFSBackgrounder.app/Contents/MacOS/AFSBackgrounder </string><key>RunAtLoad</key> AFSBackgrounder is contained into AFSPreferencePane <key>KeepAlive</key><dict><key>SuccessfulExit</key> <false/></dict> <key>LimitLoadToSessionType</key><string>Aqua</string> AFSBackgrounder is start at user login if AFSBackgrounder will crash it will be restarted, if quit well...no problem macbisegni:~ bisegni$ launchctl unload -S Aqua ~/Library/LaunchAgents/it.infn.lnf.network.AFSBackgrounder.plist macbisegni:~ bisegni$ launchctl load -S Aqua ~/Library/LaunchAgents/it.infn.lnf.network.AFSBackgrounder.plist AFS Preference Pane main view Launchd code for AFSBackgrounder OpenAFS Preference Claudio Bisegni AFS Workshop ’09
AFS Preference Pane CellServDB editor • CellServDB Editor • IP Editor for single cell • Selection for default cell and other cell for which we want get the token OpenAFS Preference Claudio Bisegni AFS Workshop ’09
AFS Preference Pane parameter view • Cache parameter view OpenAFS Preference Claudio Bisegni AFS Workshop ’09
AFS Preference Pane Parameter View Developing.... • Mount view • Can be set the name of the link and the path • AFS Backgrounder will use cocoa Mount/Unmount notification for create and delete on desktop the link, configured in this view. OpenAFS Preference Claudio Bisegni AFS Workshop ’09
AFS Preference Pane development • Desktop Link implementation • Manage user and group in preference pane OpenAFS Preference Claudio Bisegni AFS Workshop ’09
AFS Preference Pane any help for developing is appreciated :-) Questions? OpenAFS Preference Claudio Bisegni AFS Workshop ’09