CN113542322A - Installation method and device for active directory program, computing equipment and medium - Google Patents

Installation method and device for active directory program, computing equipment and medium Download PDF

Info

Publication number
CN113542322A
CN113542322A CN202010297579.8A CN202010297579A CN113542322A CN 113542322 A CN113542322 A CN 113542322A CN 202010297579 A CN202010297579 A CN 202010297579A CN 113542322 A CN113542322 A CN 113542322A
Authority
CN
China
Prior art keywords
cloud server
active directory
domain controller
program
instance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010297579.8A
Other languages
Chinese (zh)
Inventor
梁志尚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202010297579.8A priority Critical patent/CN113542322A/en
Publication of CN113542322A publication Critical patent/CN113542322A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The present disclosure provides an installation method for an active directory program, comprising: storing a target script in a storage server, wherein the target script comprises an installation file of an active directory program; creating a plurality of cloud server instances; and controlling each cloud server instance in the plurality of cloud server instances to execute preset operations, wherein the preset operations comprise: and acquiring the target script from the storage server, and running the target script so as to install the corresponding active directory program on the cloud server instance. The present disclosure also provides an installation apparatus, a computing device, and a medium for an active directory program.

Description

Installation method and device for active directory program, computing equipment and medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an installation method and apparatus for an active directory program, a computing device, and a medium.
Background
With the development of the internet and the maturity of cloud computing technology in recent years, cloud servers (ECS) are also adopted by more and more enterprises, and compared with traditional physical servers, the ECS have irreplaceable advantages, such as simple deployment and configurable use in only a few minutes; the cost is saved, and compared with the traditional purchase of IT infrastructure and equipment, the cost is lower; pay as required, because the resources of the cloud server are elastic, the expansibility of the cloud server is really better than that of the physical server, and enterprises can increase the configuration in time according to the development needs of the business.
An Active Directory (Active Directory) is a Directory service, which provides a series of Directory service functions for centrally organizing, managing and accessing network resources, and can perform unified authentication and management on computers and users through the Active Directory.
In the related art, when the active directory program is installed on the cloud server, a worker needs to manually install the active directory program in the cloud server, and the efficiency is low.
Disclosure of Invention
In view of the above, the present disclosure provides an installation method, apparatus, computing device and medium for an active directory program.
One aspect of the present disclosure provides an installation method for an active directory program, including: storing a target script in a storage server, wherein the target script comprises an installation file of an active directory program; creating a plurality of cloud server instances; and controlling each cloud server instance in the plurality of cloud server instances to execute preset operations, wherein the preset operations comprise: and acquiring the target script from the storage server, and running the target script so as to install the corresponding active directory program on the cloud server instance.
According to an embodiment of the present disclosure, the creating a plurality of cloud server instances includes: for each cloud server instance, allocating hardware resources for bearing the cloud server instance to each cloud server instance; acquiring a mirror image file, wherein the mirror image file comprises an operating system installation file and a client program installation file; and installing an operating system and a client program for each cloud server instance through the mirror image file.
According to an embodiment of the present disclosure, the controlling each cloud server instance in the plurality of cloud server instances to execute a preset operation includes: calling an interface of the middle layer; and sending a control instruction to the client program installed in each cloud server instance through the called middle layer interface so as to instruct each cloud server instance to acquire and run the target script from the storage server.
According to an embodiment of the present disclosure, the method further includes: determining a target cloud server instance from a plurality of cloud server instances in which an active directory program is installed; configuring a target cloud server instance as a master domain controller, wherein the master domain controller is used for providing active directory service by running an active directory program; and configuring other cloud server instances except the target cloud server instance in the plurality of cloud server instances as an auxiliary domain controller, wherein the auxiliary domain controller is used for assisting the main domain controller to provide active directory service by running an active directory program.
According to an embodiment of the present disclosure, the method further includes: monitoring whether the main domain controller is abnormal or not; and in response to detecting an anomaly in the primary domain controller, configuring at least one secondary domain controller as a new primary domain controller.
According to the embodiment of the disclosure, the hardware resources bearing different cloud server instances are independent of each other.
Another aspect of the present disclosure provides an installation apparatus for an active directory program, including: the storage module is used for storing the target script in a storage server, wherein the target script comprises an installation file of the active directory program; the creating module is used for creating a plurality of cloud server instances; and a control module, configured to control each cloud server instance in the multiple cloud server instances to execute a preset operation, where the preset operation includes: and acquiring the target script from the storage server, and running the target script so as to install the corresponding active directory program on the cloud server instance.
According to an embodiment of the present disclosure, the creating module includes: the allocation submodule is used for allocating hardware resources for bearing cloud server instances for each cloud server instance; the mirror image acquisition submodule is used for acquiring a mirror image file, wherein the mirror image file comprises an operating system installation file and a client program installation file; and the installation submodule is used for installing the operating system and the client program for each cloud server instance through the mirror image file.
According to an embodiment of the present disclosure, the control module includes: the calling submodule is used for calling an interface of the middle layer; and the sending submodule is used for sending a control instruction to the client program installed in each cloud server instance through the called middle layer interface so as to instruct each cloud server instance to acquire and run the target script from the storage server.
According to an embodiment of the present disclosure, the apparatus further includes: the determining module is used for determining a target cloud server instance from a plurality of cloud server instances provided with the active directory program; the system comprises a first configuration module, a second configuration module and a third configuration module, wherein the first configuration module is used for configuring a target cloud server instance as a master domain controller, and the master domain controller is used for providing active directory service by running an active directory program; and a second configuration module, configured to configure, as an auxiliary domain controller, other cloud server instances, except for the target cloud server instance, from the plurality of cloud server instances, wherein the auxiliary domain controller is configured to assist the main domain controller in providing the active directory service by running the active directory program.
According to an embodiment of the present disclosure, the apparatus further includes: the monitoring module is used for monitoring whether the main domain controller is abnormal or not; and an exception handling module for configuring at least one secondary domain controller as a new primary domain controller in response to detecting an exception to the primary domain controller.
Another aspect of the disclosure provides a computing device comprising: one or more processors; storage means for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as described above.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method as described above when executed.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
According to the embodiment of the disclosure, the script comprising the installation file of the active directory program is stored in the storage server in advance, then the cloud server instance is created, the cloud server instance is controlled to acquire and execute the target script from the storage server, the installation and configuration of the active directory program are automatically completed without any manual intervention, and the efficiency is high.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an exemplary system architecture to which an installation method for an active directory program may be applied, according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of an installation method for an active directory program according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of an installation method for an active directory program according to another embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow chart of an installation method for an active directory program according to another embodiment of the present disclosure;
FIG. 5A schematically illustrates a flow diagram for installing and running an active directory service according to an embodiment of the disclosure;
FIG. 5B schematically shows a lifecycle diagram for an instance of a cloud server, in accordance with an embodiment of the disclosure;
fig. 6A schematically illustrates a block diagram of an installation apparatus for an active directory program according to an embodiment of the present disclosure;
FIG. 6B schematically shows a block diagram of a structure of a create module according to an embodiment of the disclosure;
FIG. 6C schematically illustrates a block diagram of a control module, according to an embodiment of the present disclosure;
fig. 7 schematically shows a block diagram of a configuration of an installation apparatus for an active directory program according to another embodiment of the present disclosure;
fig. 8 is a block diagram schematically illustrating a configuration of an installation apparatus for an active directory program according to another embodiment of the present disclosure; and
FIG. 9 schematically illustrates a block diagram of a computer system suitable for implementing the above-described method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Embodiments of the present disclosure provide an installation method for an active directory program and an apparatus to which the method can be applied. The method comprises the steps of storing a target script in a storage server, wherein the target script comprises an installation file of an active directory program; creating a plurality of cloud server instances; and controlling each cloud server instance in the plurality of cloud server instances to execute preset operations, wherein the preset operations comprise: and acquiring the target script from the storage server, and running the target script so as to install the corresponding active directory program on the cloud server instance.
Fig. 1 schematically illustrates an exemplary system architecture to which an installation method for an active directory program may be applied, according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, the system architecture according to this embodiment may include a Cloud platform 10, the Cloud platform 10 includes a Virtual Private Cloud (VPC) 11 and an Object Storage Service (OSS) server 12, the Virtual Private Cloud 11 includes a Gateway (NAT Gateway)111 and a Domain Controller (DC), and the Domain Controller may include a main Domain Controller (Primary DC)112 and an auxiliary Domain Controller (Extra DC)113, for example.
The virtual private cloud 11 is a private network on a public cloud, and can be customized by a user, and the user can deploy cloud service resources such as a cloud server instance, a load balancing module, a database, and the like in the virtual private cloud 11.
And the object storage server 12 can be used for providing cloud storage service.
The Primary domain controller (Primary DC)112 and the auxiliary domain controller (Extra DC)113 are respectively disposed at AZ1 and AZ2, where AZ1 and AZ2 are two different available areas (AZ, AZ) in the same region. The available areas are mutually independent physical areas between power and networks, intranet intercommunication environments are provided among different available areas in the same region, and fault isolation can be achieved among the available areas.
Fig. 2 schematically illustrates a flow chart of an installation method for an active directory program according to an embodiment of the present disclosure.
As shown in fig. 2, the method includes operations S210 to S230.
More specifically, in operation S210, the target script is stored in the storage server.
According to an embodiment of the present disclosure, the target script includes an installation file of the active directory program. An Active Directory (Active Directory) may be used to store information about network objects, such as users, groups, computers, shared resources, printers, and contacts, and to allow administrators and users to conveniently find and use these network resources.
According to embodiments of the present disclosure, the target script may include, for example, Windows Power Shell script. The storage server may be, for example, an object storage server.
Then, in operation S220, a plurality of cloud server instances are created.
According to an embodiment of the present disclosure, operation S220 may include, for example, allocating a hardware resource for bearing each cloud server instance to each cloud server instance, then obtaining an image file, where the image file includes an operating system installation file and a client program installation file, and then installing the operating system and the client program for each cloud server instance through the image file. The operating system may be a Windows series operating system, such as Windows Server 2012.
According to the embodiment of the disclosure, different cloud server instances can be created in at least 2 Available Zones (AZ), so that hardware resources bearing different cloud server instances are mutually independent, thereby reducing the probability of simultaneous failure of the cloud server instances and enabling services running in the cloud server instances to be more stable.
In operation S230, each of the plurality of cloud server instances is controlled to perform a preset operation.
According to an embodiment of the present disclosure, the preset operation includes: and acquiring the target script from the storage server, and running the target script so as to install the corresponding active directory program on the cloud server instance.
According to an embodiment of the present disclosure, operation S230 may include, for example, calling an interface of the middle layer, and sending a request for installing the active directory program to the client program installed in each cloud server instance through the called middle layer interface to instruct each cloud server instance to acquire, from the storage server, a target script for installing the active directory program, and install the active directory program by running the target script. The middle layer comprises program service between the back end of the directory service and the cloud server instance, and can be used as a channel for completing communication between the back end of the directory service and the cloud server instance.
According to the embodiment of the disclosure, the script comprising the installation file of the active directory program is stored in the storage server in advance, then the cloud server instance is created, the cloud server instance is instructed to acquire and execute the target script from the storage server, the installation and the configuration of the active directory program are automatically completed without any manual intervention, and the efficiency is high.
According to embodiments of the present disclosure, an active directory may be used to store information about network objects, such as user, group, computer, access rights, and the like. The active directory program may be used to manage interactions between computers in the local private domain and the cloud platform, thereby enabling the cloud-up of computers in the local private domain. When a user sends a request for accessing cloud resources to a cloud platform through a computer located in a local private domain, the cloud server instance provided with the active directory program can verify the identity of a requester according to the active directory, then judge whether the requester has the authority of accessing the cloud resources, and release or block the request according to the judgment result. In addition, the user can also manage and maintain the active directory through the cloud server installed with the active directory.
At present, cloud service manufacturers have limited cloud products aiming at Microsoft Windows, and cannot support local computers adopting Windows systems. According to the embodiment of the disclosure, the active directory is installed by using the Windows Power Shell script supporting the Windows system, so that the local computer adopting the Windows system is supported.
Fig. 3 schematically illustrates a flow chart of an installation method for an active directory program according to another embodiment of the present disclosure.
As shown in fig. 3, the method includes operations S340 to S360 in addition to operations S210 to S230.
In operation S340, a target cloud server instance is determined from a plurality of cloud server instances in which the active directory program is installed.
According to the embodiment of the disclosure, the target cloud server instance can be determined from the multiple cloud server instances according to the sequence of the installation of the active directory program of each cloud server instance. More specifically, a first cloud server instance to install the active directory program may be determined from the plurality of cloud server instances as a target cloud server instance.
In operation S350, the target cloud server instance is configured as a master domain controller.
According to an embodiment of the present disclosure, a request to install a primary domain controller service may be sent to a client program in a target cloud server instance through an intermediate layer to instruct a target server to install the primary domain controller service to configure it as a primary domain controller. More specifically, a request for installing the main domain controller service may be sent to the target cloud server instance by calling an interface of the middle layer, and a client program in the target cloud server instance parses the request and then invokes a Windows Power Shell script corresponding to the request to execute code for creating the main domain controller, thereby configuring the main domain controller as the main domain controller.
According to embodiments of the present disclosure, the primary domain controller may be configured to provide active directory services by running an active directory program.
In operation S360, other cloud server instances than the target cloud server instance among the plurality of cloud server instances are configured as the auxiliary domain controller.
According to an embodiment of the present disclosure, a request for installing the auxiliary domain controller service may be sent to client programs in other cloud server instances, except for the target cloud server instance, through the intermediate layer to instruct the servers to install the auxiliary domain controller service, thereby configuring it as an auxiliary domain controller. More specifically, the request for installing the auxiliary domain controller service may be sent to other cloud server instances other than the target cloud server instance by calling an interface of the middle layer. Upon receiving the request, the client program in the cloud server instance parses the request and then invokes the Windows Power Shell script corresponding to the request to execute the code that created the secondary domain controller, thereby configuring it as a secondary domain controller.
According to an embodiment of the present disclosure, the secondary primary domain controller is configured to provide the active directory service by running an active directory program. For example, the secondary domain controller may implement fault tolerance of the active directory, accelerate verification speed of the active directory, share load for the primary domain controller, and the like.
According to the embodiment of the disclosure, when a new extended function needs to be added to a domain controller (a main domain controller or an auxiliary domain controller) in the following, a script corresponding to the extended function may be stored in a storage server, and then the domain controller may automatically acquire the script from the storage server and operate to add the extended function. Therefore, new extended functions can be automatically added to the domain controller without changing the code of the original system.
Fig. 4 schematically illustrates a flow chart of an installation method for an active directory program according to another embodiment of the present disclosure.
As shown in fig. 4, the method includes operations S470 to S480 in addition to operations S210 to S230, and S340 to S360.
In operation S470, it is monitored whether an abnormality occurs in the master domain controller.
In operation S480, in response to detecting the abnormality of the main domain controller, at least one auxiliary domain controller is configured as a new main domain controller.
According to embodiments of the present disclosure, exceptions may include, for example, timeout not recovered, failures, and the like. Correspondingly, when detecting that the main domain controller is not recovered due to time-out, executing a main domain degradation process to adjust the main domain controller into an auxiliary domain controller, then selecting one auxiliary domain controller which works normally, and upgrading the auxiliary domain controller into the main domain controller; when the fault of the main domain controller is detected, selecting an auxiliary domain controller which normally works, lifting the auxiliary domain controller to the main domain controller to replace the main domain controller with the fault, and then executing an instance initialization process to recreate the auxiliary domain controller. The role of the main domain controller can be automatically switched to other auxiliary domain controllers when the main domain controller fails, so that the usability is improved.
According to the embodiment of the disclosure, while monitoring the main domain controller, whether the auxiliary domain controller is abnormal or not can be monitored, and under the condition that the auxiliary domain controller is abnormal, the instance initialization process is executed to recreate the auxiliary domain controller, so that the service is ensured to be normal.
According to another embodiment of the present disclosure, after installing the active directory program, the cloud server instance may continue to execute other scripts related to the active directory service, such as a script to create a user, a script to verify login, a script to query a user list, and the like, thereby running the active directory service.
The method for installing and running an active directory service (directory service for short) is further described with reference to fig. 5A-5B in conjunction with specific embodiments.
FIG. 5A schematically illustrates a flow diagram for installing and running an active directory service according to an embodiment of the disclosure.
As shown in fig. 5A, the directory service backend initiates a ps (power shell) script management process, updates an Agent script, uploads a script for installing an active directory program and other related scripts to an object storage server, and synchronously notifies the middle layer, and builds an execution environment through the middle layer to create a cloud server instance set. After the cloud server instance set is created, each cloud server instance in the cloud server instance set receives scripts from the object storage server and executes the scripts, and accordingly the directory service is operated.
Additionally, fig. 5B schematically illustrates a lifecycle diagram of a cloud server instance, according to an embodiment of the disclosure.
As shown in fig. 5B, first, basic services are installed on the cloud service, where the basic services include an active directory service, a cloud platform agent, a directory service background agent, and the like. OEM (Original Equipment Manufacturer) Management is then performed, which may include operations such as changing SID (Security Identifiers) of instances, activating through Windows KMS (Key Management Service), and the like. Instance creation may then follow, which may include operations such as electing an instance as a primary domain controller, installing primary domain controller services in the instance as a primary domain controller, installing secondary domain controller services in other instances, and so forth. After the instance creation is completed, a service script is run in the instance, for example, a script including creating a user, verifying login, querying a user list, and the like. If an instance fails or the service expires, the instance is released.
Fig. 6A schematically shows a block diagram of a structure of an installation apparatus for an active directory program according to an embodiment of the present disclosure.
As shown in fig. 6A, the installation apparatus 600 for an active directory program may include a storage module 610, a creation module 620, and a control module 630.
A storage module 610, configured to store an object script in a storage server, where the object script includes an installation file of an active directory program.
A creating module 620 is configured to create a plurality of cloud server instances.
A control module 630, configured to control each cloud server instance in the multiple cloud server instances to execute a preset operation. Wherein the preset operation comprises: and acquiring the target script from the storage server, and running the target script so as to install the corresponding active directory program on the cloud server instance.
Fig. 6B schematically shows a block diagram of the structure of the creation module according to an embodiment of the present disclosure.
As shown in fig. 6B, the creation module 620 may include an assignment sub-module 621, an image acquisition sub-module 622, and an installation sub-module 623.
The allocating submodule 621 is configured to allocate, to each cloud server instance, a hardware resource for carrying the cloud server instance.
According to the embodiment of the disclosure, hardware resources bearing different cloud server instances are independent of each other.
And an image obtaining sub-module 622 configured to obtain image files, where the image files include an operating system installation file and a client installation file.
And the installation sub-module 623 is configured to install an operating system and a client program for each cloud server instance through the image file.
Fig. 6C schematically shows a block diagram of a control module according to an embodiment of the present disclosure.
As shown in fig. 6C, the control module 630 may include a calling sub-module 631 and a transmitting sub-module 632.
And the calling submodule 631 is used for calling the interface of the middle layer.
The sending submodule 632 is configured to send a control instruction to the client program installed in each cloud server instance through the called middle layer interface, so as to instruct each cloud server instance to acquire and run the target script from the storage server.
Fig. 7 schematically shows a block diagram of a configuration of an installation apparatus for an active directory program according to another embodiment of the present disclosure.
As shown in fig. 7, the apparatus 700 may further include a determination module 740, a first configuration module 750, and a second configuration module 760 in addition to the storage module 610, the creation module 620, and the control module 630.
A determining module 740, configured to determine a target cloud server instance from a plurality of cloud server instances in which the active directory program is installed.
A first configuration module 750, configured to configure the target cloud server instance as a master domain controller, where the master domain controller is configured to provide an active directory service by running the active directory program.
A second configuring module 760, configured to configure other cloud server instances except the target cloud server instance in the plurality of cloud server instances as an auxiliary domain controller, where the auxiliary domain controller is configured to assist the primary domain controller in providing the active directory service by running the active directory program.
Fig. 8 schematically shows a block diagram of a configuration of an installation apparatus for an active directory program according to another embodiment of the present disclosure.
As shown in fig. 8, apparatus 800 may include a monitoring module 870 and an exception handling module 880 in addition to storage module 610, creation module 620, control module 630, determination module 740, first configuration module 750, and second configuration module 760.
A monitoring module 870, configured to monitor whether the master domain controller is abnormal.
An exception handling module 880, configured to configure at least one secondary domain controller as a new primary domain controller in response to detecting an exception to the primary domain controller.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any of the storage module 610, the creation module 620, the control module 630, the determination module 740, the first configuration module 750, the second configuration module 760, the monitoring module 870, and the exception handling module 880 may be combined into one module to be implemented, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the storage module 610, the creation module 620, the control module 630, the determination module 740, the first configuration module 750, the second configuration module 760, the monitoring module 870, and the exception handling module 880 may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in any one of three implementations of software, hardware, and firmware, or in any suitable combination of any of them. Alternatively, at least one of the storage module 610, the creation module 620, the control module 630, the determination module 740, the first configuration module 750, the second configuration module 760, the monitoring module 870 and the exception handling module 880 may be at least partially implemented as a computer program module, which when executed, may perform a corresponding function.
FIG. 9 schematically illustrates a block diagram of a computer system suitable for implementing the above-described method according to an embodiment of the present disclosure. The computer system illustrated in FIG. 9 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the disclosure.
As shown in fig. 9, a computer system 900 according to an embodiment of the present disclosure includes a processor 901 which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)902 or a program loaded from a storage section 908 into a Random Access Memory (RAM) 903. Processor 901 may comprise, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 901 may also include on-board memory for caching purposes. The processor 901 may comprise a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 903, various programs and data necessary for the operation of the system 900 are stored. The processor 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. The processor 901 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 902 and/or the RAM 903. Note that the programs may also be stored in one or more memories other than the ROM 902 and the RAM 903. The processor 901 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
System 900 may also include an input/output (I/O) interface 905, input/output (I/O) interface 905 also connected to bus 904, according to an embodiment of the present disclosure. The system 900 may also include one or more of the following components connected to the I/O interface 905: an input portion 906 including a keyboard, a mouse, and the like; an output section 907 including components such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drive 910 is also connected to the I/O interface 905 as necessary. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 910 as necessary, so that a computer program read out therefrom is mounted into the storage section 908 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 909, and/or installed from the removable medium 911. The computer program, when executed by the processor 901, performs the above-described functions defined in the system of the embodiment of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 902 and/or the RAM 903 described above and/or one or more memories other than the ROM 902 and the RAM 903.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (14)

1. An installation method for an active directory program, comprising:
storing a target script in a storage server, wherein the target script comprises an installation file of an active directory program;
creating a plurality of cloud server instances; and
control each of the plurality of cloud server instances to perform a preset operation,
wherein the preset operation comprises:
obtaining the target script from the storage server, an
And running the target script so as to install the corresponding active directory program on the cloud server instance.
2. The method of claim 1, wherein the creating a plurality of cloud server instances comprises: for each instance of the cloud server instance,
allocating hardware resources for bearing the cloud server instances for each cloud server instance;
acquiring a mirror image file, wherein the mirror image file comprises an operating system installation file and a client program installation file; and
and installing an operating system and a client program for each cloud server instance through the mirror image file.
3. The method of claim 2, wherein the controlling each of the plurality of cloud server instances to perform a preset operation comprises:
calling an interface of the middle layer; and
and sending a control instruction to a client program installed in each cloud server instance through a called middle layer interface so as to instruct each cloud server instance to acquire and run the target script from the storage server.
4. The method of claim 1, further comprising:
determining a target cloud server instance from a plurality of cloud server instances on which the active directory program is installed;
configuring the target cloud server instance as a master domain controller, wherein the master domain controller is used for providing active directory services by running the active directory program; and
configuring other cloud server instances except the target cloud server instance in the plurality of cloud server instances as an auxiliary domain controller, wherein the auxiliary domain controller is used for assisting the main domain controller in providing the active directory service by running the active directory program.
5. The method of claim 4, further comprising:
monitoring whether the main domain controller is abnormal or not; and
in response to detecting an anomaly in the primary domain controller, configuring at least one secondary domain controller as a new primary domain controller.
6. The method of claim 2, wherein hardware resources carrying different cloud server instances are independent of each other.
7. An installation apparatus for an active directory program, comprising:
the storage module is used for storing the target script in a storage server, wherein the target script comprises an installation file of the active directory program;
the creating module is used for creating a plurality of cloud server instances; and
a control module for controlling each cloud server instance of the plurality of cloud server instances to perform a preset operation,
wherein the preset operation comprises:
obtaining the target script from the storage server, an
And running the target script so as to install the corresponding active directory program on the cloud server instance.
8. The apparatus of claim 7, wherein the creation module comprises:
the allocation submodule is used for allocating hardware resources for bearing the cloud server instances for each cloud server instance;
the image acquisition submodule is used for acquiring an image file, wherein the image file comprises an operating system installation file and a client program installation file; and
and the installation submodule is used for installing an operating system and a client program for each cloud server instance through the mirror image file.
9. The apparatus of claim 8, wherein the control module comprises:
the calling submodule is used for calling an interface of the middle layer; and
and the sending submodule is used for sending a control instruction to the client program installed in each cloud server instance through the called middle layer interface so as to instruct each cloud server instance to acquire and run the target script from the storage server.
10. The apparatus of claim 7, further comprising:
the determining module is used for determining a target cloud server instance from a plurality of cloud server instances provided with the active directory program;
a first configuration module, configured to configure the target cloud server instance as a master domain controller, wherein the master domain controller is configured to provide an active directory service by running the active directory program; and
a second configuration module, configured to configure, as an auxiliary domain controller, other cloud server instances except the target cloud server instance in the plurality of cloud server instances, where the auxiliary domain controller is configured to assist the primary domain controller in providing the active directory service by running the active directory program.
11. The apparatus of claim 10, further comprising:
the monitoring module is used for monitoring whether the main domain controller is abnormal or not; and
and the exception handling module is used for responding to the detection that the main domain controller is abnormal and configuring at least one auxiliary domain controller as a new main domain controller.
12. The apparatus of claim 8, wherein hardware resources carrying different cloud server instances are independent of each other.
13. A computing device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1 to 6.
14. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 6.
CN202010297579.8A 2020-04-15 2020-04-15 Installation method and device for active directory program, computing equipment and medium Pending CN113542322A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010297579.8A CN113542322A (en) 2020-04-15 2020-04-15 Installation method and device for active directory program, computing equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010297579.8A CN113542322A (en) 2020-04-15 2020-04-15 Installation method and device for active directory program, computing equipment and medium

Publications (1)

Publication Number Publication Date
CN113542322A true CN113542322A (en) 2021-10-22

Family

ID=78120200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010297579.8A Pending CN113542322A (en) 2020-04-15 2020-04-15 Installation method and device for active directory program, computing equipment and medium

Country Status (1)

Country Link
CN (1) CN113542322A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115361270A (en) * 2022-08-19 2022-11-18 济南浪潮数据技术有限公司 Method, device and medium for accessing AD domain by storage cluster

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101542472A (en) * 2007-02-16 2009-09-23 Lg电子株式会社 Method for managing domain using multi domain manager and domain system
CN101788917A (en) * 2010-02-26 2010-07-28 浪潮(北京)电子信息产业有限公司 Deployment method of utility software and the system thereof
US20140019960A1 (en) * 2012-07-12 2014-01-16 Microsoft Corporation Systems and methods of creating custom virtual machines
CN109271171A (en) * 2018-09-17 2019-01-25 杭州安恒信息技术股份有限公司 A kind of method and apparatus based on mono- key of Docker deployment big data platform
CN109391688A (en) * 2018-09-29 2019-02-26 郑州云海信息技术有限公司 The acquisition methods and device of image file in cloud computing system
CN109710281A (en) * 2018-12-28 2019-05-03 中科曙光国际信息产业有限公司 The installation method and device of big data platform
CN110149409A (en) * 2019-06-04 2019-08-20 平安科技(深圳)有限公司 Cloud host Metadata Service management method, system, equipment and storage medium
CN110196722A (en) * 2019-05-07 2019-09-03 平安科技(深圳)有限公司 Cloud host batch management method, system, equipment and storage medium
CN110457555A (en) * 2019-06-24 2019-11-15 平安国际智慧城市科技股份有限公司 Collecting method, device and computer equipment, storage medium based on Docker
US10509663B1 (en) * 2015-02-04 2019-12-17 Amazon Technologies, Inc. Automatic domain join for virtual machine instances
CN110688142A (en) * 2019-10-10 2020-01-14 星环信息科技(上海)有限公司 Method, device and storage medium for publishing application programming interface

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101542472A (en) * 2007-02-16 2009-09-23 Lg电子株式会社 Method for managing domain using multi domain manager and domain system
CN101788917A (en) * 2010-02-26 2010-07-28 浪潮(北京)电子信息产业有限公司 Deployment method of utility software and the system thereof
US20140019960A1 (en) * 2012-07-12 2014-01-16 Microsoft Corporation Systems and methods of creating custom virtual machines
CN104412231A (en) * 2012-07-12 2015-03-11 微软公司 Systems and methods of creating custom virtual machines
US10509663B1 (en) * 2015-02-04 2019-12-17 Amazon Technologies, Inc. Automatic domain join for virtual machine instances
CN109271171A (en) * 2018-09-17 2019-01-25 杭州安恒信息技术股份有限公司 A kind of method and apparatus based on mono- key of Docker deployment big data platform
CN109391688A (en) * 2018-09-29 2019-02-26 郑州云海信息技术有限公司 The acquisition methods and device of image file in cloud computing system
CN109710281A (en) * 2018-12-28 2019-05-03 中科曙光国际信息产业有限公司 The installation method and device of big data platform
CN110196722A (en) * 2019-05-07 2019-09-03 平安科技(深圳)有限公司 Cloud host batch management method, system, equipment and storage medium
CN110149409A (en) * 2019-06-04 2019-08-20 平安科技(深圳)有限公司 Cloud host Metadata Service management method, system, equipment and storage medium
CN110457555A (en) * 2019-06-24 2019-11-15 平安国际智慧城市科技股份有限公司 Collecting method, device and computer equipment, storage medium based on Docker
CN110688142A (en) * 2019-10-10 2020-01-14 星环信息科技(上海)有限公司 Method, device and storage medium for publishing application programming interface

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115361270A (en) * 2022-08-19 2022-11-18 济南浪潮数据技术有限公司 Method, device and medium for accessing AD domain by storage cluster
CN115361270B (en) * 2022-08-19 2024-06-14 郑州浪潮数据技术有限公司 Method, device and medium for accessing AD domain by storage cluster

Similar Documents

Publication Publication Date Title
US11784940B2 (en) Detecting faulty resources of a resource delivery system
US10635423B2 (en) Methods and apparatus for software lifecycle management of a virtual computing environment
CN110581855B (en) Application control method and device, electronic equipment and computer readable storage medium
US8806015B2 (en) Workload-aware placement in private heterogeneous clouds
US11327821B2 (en) Systems and methods to facilitate infrastructure installation checks and corrections in a distributed environment
US11153149B2 (en) System and method for proactive distributed agent based network diagnosis
US20130007435A1 (en) Server management with dynamic construction of pre-boot images
US11461082B2 (en) Systems and methods for managing releases of global services in a controlled manner
US20200021480A1 (en) Data plane api in a distributed computing network
US20210089415A1 (en) High availability for a relational database management system as a service in a cloud platform
WO2017049997A1 (en) Virtual machine monitoring method, apparatus and system based on cloud computing service
WO2020123693A1 (en) Control token and hierarchical dynamic control
US9959136B2 (en) Optimizations and enhancements of application virtualization layers
US9959127B2 (en) Systems and methods for exporting diagnostic data and securing privileges in a service operating system
JP2015158773A (en) Operation verification device for virtual apparatus, operation verification system for virtual apparatus, and program
CN113542322A (en) Installation method and device for active directory program, computing equipment and medium
US11449393B2 (en) Automatic restore for a failed virtual computing session
US20230289203A1 (en) Server maintenance control device, server maintenance system, server maintenance control method, and program
US20210234757A1 (en) Information processing device, information processing system, and network communication confirmation method
US11093301B2 (en) Input output adapter error recovery concurrent diagnostics
WO2021034468A1 (en) Desktop virtualization with a dedicated cellular network connection for client devices
US20230336407A1 (en) Automated server restoration construct for cellular networks
NL2027692B1 (en) Pre-provisioning server hardware for deployment on an edge network
US20210357239A1 (en) Methods and systems for managing computing virtual machine instances
KR20240085328A (en) Failure node eliminator and control method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination