1 / 10

Claudio Bisegni Workshop AFS 09, Roma

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)

sona
Download Presentation

Claudio Bisegni Workshop AFS 09, Roma

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. AFS Preference the OpenAFS preference panel for OSX Claudio Bisegni Workshop AFS 09, Roma

  2. 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

  3. 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

  4. 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

  5. <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

  6. 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

  7. AFS Preference Pane parameter view • Cache parameter view OpenAFS Preference Claudio Bisegni AFS Workshop ’09

  8. 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

  9. AFS Preference Pane development • Desktop Link implementation • Manage user and group in preference pane OpenAFS Preference Claudio Bisegni AFS Workshop ’09

  10. AFS Preference Pane any help for developing is appreciated :-) Questions? OpenAFS Preference Claudio Bisegni AFS Workshop ’09

More Related