/// <summary>
        /// Loads the SSO server information.
        /// </summary>
        private static void LoadSSOServerInfo()
        {
            try
            {
                int flags;
                int auditAppDeleteMax;
                int auditMappingDeleteMax;
                int auditNtpLookupMax;
                int auditXpLookupMax;
                int ticketTimeout;
                int credCacheTimeout;

                ISSOAdmin2 ssoAdmin = new ISSOAdmin2();
                ssoAdmin.GetGlobalInfo(
                    out flags,
                    out auditAppDeleteMax,
                    out auditMappingDeleteMax,
                    out auditNtpLookupMax,
                    out auditXpLookupMax,
                    out ticketTimeout,
                    out credCacheTimeout,
                    out SSOManager.SSOSecrectServer,
                    out SSOManager.SSOAdminAccounts,
                    out SSOManager.SSOAffiliateAdminAccounts);

                SSOManager.SSODBServer = Registry.GetValue("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\ENTSSO\\SQL", "Server", "") as string;
                SSOManager.SSODatabase = Registry.GetValue("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\ENTSSO\\SQL", "Database", "") as string;
            }
            catch (Exception ex)
            {
                EventLog.WriteEntry("HR - SSO MMC Snap - LoadSSOServerInfo", ex.Message);
            }
        }
 public void GetSecretServerName()
 {
     try
     {
         ISSOAdmin2 iSSOAdmin = (ISSOAdmin2) new SSOAdmin();
         int        num;
         int        num2;
         int        num3;
         int        num4;
         int        num5;
         int        num6;
         int        num7;
         iSSOAdmin.GetGlobalInfo(out num, out num2, out num3, out num4, out num5, out num6, out num7, out this.strSecrectServer, out this.strSSOAdminGroup, out this.strAffiliateAppMgrGroup);
         this.strSsoDBServer = (Registry.GetValue("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\ENTSSO\\SQL", "Server", "") as string);
         this.strSsoDB       = (Registry.GetValue("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\ENTSSO\\SQL", "Database", "") as string);
     }
     catch (Exception ex)
     {
         EventLog.WriteEntry("SSOConfigCmdTool - GetSecretServerName", ex.Message);
     }
 }
示例#3
0
 public void GetSecretServerName()
 {
     try
     {
         ISSOAdmin2 iSSOAdmin = (ISSOAdmin2) new SSOAdmin();
         int        flags;
         int        auditAppDeleteMax;
         int        auditMappingDeleteMax;
         int        auditNtpLookupMax;
         int        auditXpLookupMax;
         int        ticketTimeout;
         int        credCacheTimeout;
         iSSOAdmin.GetGlobalInfo(out flags, out auditAppDeleteMax, out auditMappingDeleteMax, out auditNtpLookupMax, out auditXpLookupMax, out ticketTimeout, out credCacheTimeout, out _secrectServer, out _ssoAdminGroup, out _affiliateAppMgrGroup);
         _ssoDBServer = (Registry.GetValue("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\ENTSSO\\SQL", "Server", "") as string);
         _ssoDB       = (Registry.GetValue("HKEY_LOCAL_MACHINE\\Software\\Microsoft\\ENTSSO\\SQL", "Database", "") as string);
         DoSsoEvent("GetSecretServerName", string.Format("Server={0}, Database={1}", _ssoDBServer, _ssoDB), false);
     }
     catch (Exception ex)
     {
         DoSsoEvent("SSO Helper - GetSecretServerName", ex.Message, true);
     }
 }
示例#4
0
 private void Enlist(object obj, Transaction tx)
 {
     try
     {
         IPropertyBag propertyBag    = (IPropertyBag)obj;
         object       dtcTransaction = TransactionInterop.GetDtcTransaction(tx);
         ISSOAdmin2   iSSOAdmin      = (ISSOAdmin2) new SSOAdmin();
         int          flags;
         int          auditAppDeleteMax;
         int          auditMappingDeleteMax;
         int          auditNtpLookupMax;
         int          auditXpLookupMax;
         int          ticketTimeout;
         int          credCacheTimeout;
         iSSOAdmin.GetGlobalInfo(out flags, out auditAppDeleteMax, out auditMappingDeleteMax, out auditNtpLookupMax, out auditXpLookupMax, out ticketTimeout, out credCacheTimeout, out _secrectServer, out _ssoAdminGroup, out _affiliateAppMgrGroup);
         object secrectServer = _secrectServer;
         propertyBag.Write("CurrentSSOServer", ref secrectServer);
         propertyBag.Write("Transaction", ref dtcTransaction);
     }
     catch (Exception ex)
     {
         DoSsoEvent("SSO Helper - Enlist", ex.Message, true);
     }
 }
 private void Enlist(object obj, Transaction tx)
 {
     try
     {
         IPropertyBag propertyBag    = (IPropertyBag)obj;
         object       dtcTransaction = TransactionInterop.GetDtcTransaction(tx);
         ISSOAdmin2   iSSOAdmin      = (ISSOAdmin2) new SSOAdmin();
         int          num;
         int          num2;
         int          num3;
         int          num4;
         int          num5;
         int          num6;
         int          num7;
         iSSOAdmin.GetGlobalInfo(out num, out num2, out num3, out num4, out num5, out num6, out num7, out this.strSecrectServer, out this.strSSOAdminGroup, out this.strAffiliateAppMgrGroup);
         object obj2 = this.strSecrectServer;
         propertyBag.Write("CurrentSSOServer", ref obj2);
         propertyBag.Write("Transaction", ref dtcTransaction);
     }
     catch (Exception ex)
     {
         EventLog.WriteEntry("SSOConfigCmdTool - Enlist", ex.Message);
     }
 }