/// <summary> /// Enables tickets /// </summary> /// <returns>True if successful, otherwise false</returns> public static bool EnableTickets() { try { ISSOAdmin admin = new ISSOAdmin(); int flags = 0; int appDeleteMax = -1; int mappingDeleteMax = -1; int ntpLookupMax = -1; int xplLookupMax = -1; int ticketTimeout = -1; int cacheTimeout = -1; string secretServer = null; string ssoAdminGroup = null; string affiliateAppMgrGroup = null; // Get current default settings admin.GetGlobalInfo(out flags, out appDeleteMax, out mappingDeleteMax, out ntpLookupMax, out xplLookupMax, out ticketTimeout, out cacheTimeout, out secretServer, out ssoAdminGroup, out affiliateAppMgrGroup); // Update global settings admin.UpdateGlobalInfo(SSOFlag.SSO_FLAG_ALLOW_TICKETS | SSOFlag.SSO_FLAG_VALIDATE_TICKETS, SSOFlag.SSO_FLAG_ALLOW_TICKETS | SSOFlag.SSO_FLAG_VALIDATE_TICKETS, ref appDeleteMax, ref mappingDeleteMax, ref ntpLookupMax, ref xplLookupMax, ref ticketTimeout, ref cacheTimeout, null, null, null); } catch { return(false); } return(true); }