// // PListManager.h // OpenAFS // // Created by Claudio Bisegni LNF - INFN on 25/04/08. // Copyright 2008 Infn. All rights reserved. // #import #define DELETE_IN_10_4 @"authinternal" #define DELETE_IN_10_5 @"builtin:authenticate,privileged" #define ADD_IN_PLIST @"builtin:krb5authnoverify,privileged" #define AUTH_FILE_DIR @"/etc" #define AUTH_FILE @"/etc/authorization" #define AUTH_FILE_BK @"/etc/authorization_bk" #define TMP_FILE @"/tmp/authorization" #define HOME_LAUNCHD_AGENT_FOLDER @"~/Library/LaunchAgents" #define AKLOG_LAUNCHD_CONTROL_FILE @"~/Library/LaunchAgents/it.infn.lnf.afslogintimedaemon.plist" #define AKLOG_LAUNCHD_TMP_CONTROL_FILE @"/tmp/it.infn.lnf.afslogintimedaemon.plist" #define LOGIN_TIME_DAEMON_NAME @"LoginTimeDaemon" #define LAUNCHD_DAEMON_FOLDER @"/Library/LaunchDaemons" #define AFS_STARTUP_TMP_CONTROL_FILE @"/tmp/it.infn.lnf.afsstartup.plist" #define AFS_STARTUP_CONTROL_FILE @"/Library/LaunchDaemons/it.infn.lnf.afsstartup.plist" /*! @class PListManager @abstract Utility class for modify the plist used by sistem for make login @discussion <#(comprehensive description)#> */ @interface PListManager : NSObject { } /*! @method krb5TiketAtLoginTime @abstract Enable or disable the system to get kerberos ticket at login time @discussion <#(comprehensive description)#> */ +(void) krb5TiketAtLoginTime:(BOOL)enable; /*! @method checkKrb5AtLoginTimeLaunchdEnable @abstract check if the system is configured to ket krb5 ticket at login @discussion <#(comprehensive description)#> */ +(BOOL) checkKrb5AtLoginTimeLaunchdEnable; /*! @method installLaunchdFile @abstract Install the afs agent launchd config file @discussion <#(comprehensive description)#> */ +(void) installLaunchdFile:(BOOL)install resourcePath:(NSString*) rsrcPath; /*! @method checkAklogAtLoginTimeLaunchdEnable @abstract check if the user has installed or enabled the afs agent @discussion <#(comprehensive description)#> */ +(BOOL) checkAklogAtLoginTimeLaunchdEnable; /*! @method installAfsStartupLaunchdFile @abstract Install the afs daemon launchd config file for startup afs at boot @discussion <#(comprehensive description)#> */ +(void) manageAfsStartupLaunchdFile:(BOOL)enable afsStartupScript:(NSString*)afsStartupScript afsBasePath:(NSString*)afsBasePath afsdPath:(NSString*)afsdPath; @end