Exemplo n.º 1
0
        /// <summary>
        /// Starts the thread service.
        /// </summary>
        public void Start()
        {
            log.Debug("IdentityManagement service Start called");

            // Instantiate the server domain
            // The domain will be created the first time the
            // server is run
            EnterpriseDomain enterpriseDomain = new EnterpriseDomain(true);

            if (enterpriseDomain != null)
            {
                // Valid enterprise domain - start the external
                // identity sync service
                Simias.IdentitySynchronization.Service.Start();

                if (userProvider == null)
                {
                    LoadIdentityProvider();
                }

                // Register with the domain provider service.
                if (authProvider == null)
                {
                    authProvider = new Simias.Identity.Authentication();
                    DomainProvider.RegisterProvider(this.authProvider);
                }
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Starts the thread service.
        /// </summary>
        public void Start()
        {
            log.Debug("Start called");

            //Thread.Sleep( 30 * 1000 );

            // Instantiate the server domain
            // The domain will be created the first time the
            // server is run
            EnterpriseDomain enterpriseDomain = new EnterpriseDomain(true);

            if (enterpriseDomain != null)
            {
                new Simias.Host.HostProvider(enterpriseDomain.GetServerDomain(false));
                //new Simias.Host.HostProvider( new EnterpriseDomain( false ).GetServerDomain( false ) );

                if (Simias.Service.Manager.LdapServiceEnabled == false)
                {
                    // Valid enterprise domain - start the external
                    // identity sync service
                    Simias.IdentitySync.Service.Start();
                }

                if (userProvider == null)
                {
                    LoadIdentityProvider();
                }

                if (Simias.Service.Manager.LdapServiceEnabled == false)
                {
                    // Register with the domain provider service.
                    if (authProvider == null)
                    {
                        authProvider = new Simias.Server.Authentication();
                        DomainProvider.RegisterProvider(this.authProvider);
                    }
                }

                Simias.Server.Catalog.StartCatalogService();
                ExtractMemberPoliciesOnMaster();
                CheckStoreAndLoadRA();
                CheckServerForChageMasterError();
            }
        }