An authentication method, device, system, apparatus, storage medium and program product
By receiving and classifying user authentication requests in a big data cluster and using a synchronization engine to synchronize user information in a second cluster, the problem of Kerberos's inability to meet authentication security in a federated cluster is solved, achieving efficient and secure federated cluster authentication.
Patent Information
- Application Number
- CN202310186467.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-20
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-02-20
AI Technical Summary
In existing technologies, the Kerberos solution cannot meet the authentication and security requirements of federated big data clusters, especially in scenarios with multiple sub-clusters. The KDC master-slave architecture cannot effectively guarantee the security of the key distribution center and the real-time synchronization of data.
An authentication method is provided, which receives user authentication requests in a first cluster, performs classification authentication based on user information within the cluster, and uses a synchronization engine to synchronize user information in a second cluster, thereby achieving individual user authentication for each cluster and ensuring the security and authentication efficiency of the federated cluster.
It improves the authentication efficiency of the federated cluster, avoids multiple authentications, ensures the security of the federated cluster and the real-time data synchronization, and enhances the security and data consistency of the KDC.
Smart Images

Figure CN116226828B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of information technology, and in particular relates to an authentication method, apparatus, system, device, storage medium and program product. Background Technology
[0002] With the ever-increasing volume and computational demands of big data, the number of nodes in big data clusters is also growing, highlighting performance and operational challenges. Federated clusters break down big data clusters into multiple sub-clusters and connect them together, making them a single large cluster transparent to applications, effectively addressing cluster scalability issues.
[0003] Currently, big data clusters typically use the Kerberos computer network security system to ensure cluster security and reliability, preventing malicious impersonation of nodes from using or tampering with the Hadoop Distributed File System (Hadoop) cluster. To adapt to Kerberos security authentication for federated clusters, how to design a federated cluster security authentication architecture, how to ensure the security of the Key-Distribution Centers (KDCs) of multiple sub-clusters, and how to guarantee real-time data synchronization across multiple KDCs have become pressing issues that the industry needs to address.
[0004] In related technologies, the current Kerberos solution for big data clusters in the industry mainly uses a combination of master and backup servers. However, for multi-cluster scenarios, since multiple sub-clusters need to use their own separate KDC authentication, the KDC master-backup architecture cannot meet the authentication security requirements of the joint cluster. Summary of the Invention
[0005] This application provides an authentication method, apparatus, system, device, storage medium, and program product that can ensure the authentication security of a federated cluster.
[0006] On one hand, embodiments of this application provide an authentication method applied to a first cluster, the first cluster being connected to a client and at least one second cluster; the first cluster includes a synchronization engine for interaction between the first cluster and the second cluster; the method includes:
[0007] Receive user authentication requests;
[0008] In the case where the user authentication request is an external user authentication request sent by the client, the external user authentication request is authenticated according to the preset first cluster user information stored in the first cluster.
[0009] In the case where the user authentication request is an internal user authentication request sent by the second cluster, access to the second cluster is determined based on the internal user authentication request;
[0010] The synchronization engine synchronizes the preset second cluster user information stored in the second cluster to the first cluster.
[0011] The internal user authentication request is authenticated based on the preset second cluster user information.
[0012] In one possible implementation, the first cluster further includes two redundant master servers acting as hosts; the second cluster includes two redundant sub-servers acting as slave servers; the method further includes:
[0013] If the preset first cluster user information stored in any master server of the host changes, the changed preset first cluster user information will be synchronized to another master server.
[0014] If the preset second cluster user information stored in any of the sub-servers in the sub-machine changes, the changed preset second cluster user information will be synchronized to another sub-server.
[0015] The modified preset second cluster user information is synchronized to the first cluster through the synchronization engine.
[0016] In one possible implementation, the method further includes:
[0017] Receive data operation requests;
[0018] When the data operation request is of a preset type and the data operation request is successfully responded to, the data operation request is recorded in the operation record table to obtain a data operation request record; the operation record table includes data operation request records with time information.
[0019] Based on the difference analysis between the data operation request record at the current moment and the data operation request record at the first moment closest to the current moment, the incremental record is determined;
[0020] The incremental record is updated to access the second cluster in the data operation request.
[0021] In one possible implementation, after updating the incremental record to the data operation access second cluster in the data operation request, the method further includes:
[0022] If the incremental record is successfully updated, the incremental record will be deleted.
[0023] If the incremental record update fails, an abnormal alarm message will be output;
[0024] Return to the second cluster to perform the data operation request that updates the incremental record to the data operation request.
[0025] In one possible implementation, the method further includes:
[0026] Obtain the mapping relationship between clusters and servers; the clusters include the first cluster and the second cluster; the servers include the master server and the sub-servers;
[0027] The process and network status of the first server are monitored through a server monitoring cluster; the first server is the server that is currently running.
[0028] If the process information and / or network information of the first server are abnormal, the name of the server in the mapping relationship will be changed to the name of the second server by switching the server cluster.
[0029] Change the status of the second server to an unswitchable state.
[0030] In one possible implementation, after modifying the state of the second server to a non-switchable state, the method further includes:
[0031] If the process information and network information of the second server are normal, synchronize the data between the first server and the second server;
[0032] Change the status of the second server to a switchable state.
[0033] On the other hand, embodiments of this application provide an authentication system, including:
[0034] A first cluster, connected to a client and at least one second cluster, the first cluster including a synchronization engine for interaction between the first cluster and the second cluster, for performing the authentication method as described in any of the preceding claims;
[0035] The second cluster is used to send internal user authentication requests to the first cluster.
[0036] In one possible implementation, the first cluster also includes two redundant master servers acting as hosts;
[0037] The second cluster includes two redundant sub-servers acting as slave machines.
[0038] In another aspect, embodiments of this application provide an authentication device applied to a first cluster, the first cluster being connected to a client and at least one second cluster; the first cluster includes a synchronization engine for interaction between the first cluster and the second cluster; the device includes:
[0039] The receiving module is used to receive user authentication requests;
[0040] An external authentication module is used to authenticate the external user authentication request based on preset first cluster user information stored in the first cluster when the user authentication request is an external user authentication request sent by the client.
[0041] The acquisition module is used to determine access to the second cluster based on the internal user authentication request when the user authentication request is an internal user authentication request sent by the second cluster.
[0042] The synchronization module is used to synchronize the preset second cluster user information stored in the second cluster to the first cluster through the synchronization engine;
[0043] An internal authentication module is used to authenticate the internal user authentication request based on the preset second cluster user information.
[0044] In another aspect, embodiments of this application provide an authentication device, the device comprising: a processor and a memory storing computer program instructions;
[0045] When the processor executes the computer program instructions, it implements the authentication method as described in any of the above.
[0046] In another aspect, embodiments of this application provide a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the authentication method as described in any of the preceding claims.
[0047] In another aspect, embodiments of this application provide a computer program product, wherein instructions in the computer program product, when executed by a processor of an electronic device, cause the electronic device to perform the authentication method as described in any of the above.
[0048] The authentication method, apparatus, system, device, storage medium, and program product of this application embodiment receive user authentication requests, classify and process user authentication requests, and when the user authentication request is an external user authentication request sent by a client, authenticate the external user authentication request according to the preset first cluster user information stored in the first cluster, avoiding multiple authentications and improving the authentication efficiency of the federated cluster. When the user authentication request is an internal user authentication request sent by a second cluster, the access to the second cluster is determined according to the internal user authentication request, and the preset second cluster user information stored in the access to the second cluster is synchronized to the first cluster through a synchronization engine. The internal user authentication request is then authenticated according to the preset second cluster user information, realizing individual user authentication for each cluster and ensuring the security of the federated cluster. Attached Figure Description
[0049] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0050] Figure 1 This is a flowchart illustrating the authentication method provided in an embodiment of this application;
[0051] Figure 2 This is a flowchart illustrating the authentication information synchronization method provided in an embodiment of this application;
[0052] Figure 3 This is a flowchart illustrating the data synchronization method provided in an embodiment of this application;
[0053] Figure 4 This is a flowchart illustrating the server switching method provided in an embodiment of this application;
[0054] Figure 5 This is a schematic diagram of the authentication system provided in the embodiments of this application;
[0055] Figure 6 This is a schematic diagram of the authentication device provided in the embodiments of this application;
[0056] Figure 7 This is a schematic diagram of the structure of the authentication device provided in the embodiments of this application. Detailed Implementation
[0057] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.
[0058] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.
[0059] Related technologies, such as the background technology, provide an authentication method, apparatus, system, device, storage medium, and program product. This method receives user authentication requests, classifies and processes them, and authenticates external user authentication requests sent by clients based on preset first cluster user information stored in the first cluster. This avoids multiple authentications and improves the authentication efficiency of the federated cluster. When user authentication requests are internal user authentication requests sent by the second cluster, the method determines whether to access the second cluster based on the internal user authentication request, synchronizes preset second cluster user information stored in the second cluster to the first cluster via a synchronization engine, and authenticates the internal user authentication request based on the preset second cluster user information. This achieves individual user authentication for each cluster, ensuring the security of the federated cluster.
[0060] To address the problems of the prior art, embodiments of this application provide an authentication method, apparatus, system, device, storage medium, and program product. The authentication method provided in this application embodiment will be described first below.
[0061] Figure 1 This is a flowchart illustrating the authentication method provided in an embodiment of this application. Figure 1As shown, the authentication method provided in this application embodiment is applied to a first cluster, which is connected to a client and at least one second cluster respectively; the first cluster includes a synchronization engine for interaction between the first cluster and the second cluster; and includes the following steps: S101 to S105.
[0062] S101, Receive user authentication request;
[0063] As one possible implementation of S101, user authentication requests can be sent by an external client or by an internal cluster.
[0064] In one example, the client can be an electronic device such as a mobile phone, computer, or tablet.
[0065] S102, when the user authentication request is an external user authentication request sent by the client, the external user authentication request is authenticated according to the preset first cluster user information stored in the first cluster.
[0066] As one possible implementation of S102, the user authentication request includes a user identifier, which determines whether the user authentication request is an external or internal request. If the user authentication request is an external request sent by the client, it is determined whether the preset first cluster user information stored in the first cluster matches the external user authentication request. If the preset first cluster user information matches the external user authentication request, authentication succeeds. If the preset first cluster user information does not match the external user authentication request, authentication fails.
[0067] In one example, the first cluster is the entry point for external access to the federated cluster.
[0068] S103, if the user authentication request is an internal user authentication request sent by the second cluster, determine access to the second cluster based on the internal user authentication request;
[0069] As one possible implementation of S103, if the user authentication request is an internal user authentication request sent by the second cluster, the access to the second cluster in the internal user authentication request is extracted. In S103, the second cluster is the initiator of the access, and the object accessing the second cluster is the object to be accessed.
[0070] S104, synchronize the preset second cluster user information stored in the second cluster to the first cluster through the synchronization engine;
[0071] As one possible implementation of S104, the system checks whether preset second cluster user information exists in the synchronization engine based on access to the second cluster. If the preset second cluster user information does not exist in the synchronization engine, the system synchronizes the preset second cluster user information stored in the accessed second cluster to the first cluster.
[0072] S105, authenticate the internal user authentication request based on the preset second cluster user information.
[0073] As one possible implementation of S105, it determines whether the preset second cluster user information stored in the second cluster matches the internal user authentication request. If the preset second cluster user information and the internal user authentication request match, authentication succeeds. If the preset second cluster user information and the internal user authentication request do not match, authentication fails.
[0074] The above describes a specific implementation of the authentication method in this application. It receives user authentication requests, classifies and processes them, and when the user authentication request is an external user authentication request sent by a client, it authenticates the external user authentication request based on preset first cluster user information stored in the first cluster, avoiding multiple authentications and improving the authentication efficiency of the federated cluster. When the user authentication request is an internal user authentication request sent by the second cluster, it determines whether to access the second cluster based on the internal user authentication request, synchronizes the preset second cluster user information stored in the second cluster to the first cluster through a synchronization engine, and authenticates the internal user authentication request based on the preset second cluster user information, thus achieving individual user authentication for each cluster and ensuring the security of the federated cluster.
[0075] In one possible implementation, the first cluster also includes two master servers that are redundantly configured as hosts; the second cluster includes two sub-servers that are redundantly configured as slaves. Figure 2 This is a flowchart illustrating the authentication information synchronization method provided in this application embodiment, such as... Figure 2 As shown, the authentication information synchronization method after the authentication information changes includes the following steps: S201 to S203.
[0076] S201, if the preset first cluster user information stored in any master server in the host changes, synchronize the changed preset first cluster user information to another master server;
[0077] As one possible implementation of S201, if the preset first cluster user information stored in either master server of the host changes, the preset first cluster user information stored in that master server after the change is compared with the preset first cluster user information in the other master server. If the preset first cluster user information in the two master servers is inconsistent, the changed preset first cluster user information is synchronized to the other master server, thereby keeping the preset first cluster user information in the two master servers of the host synchronized.
[0078] S202, if the preset second cluster user information stored in any of the sub-servers in the sub-machine changes, synchronize the changed preset second cluster user information to another sub-server.
[0079] As a possible implementation of S202, if the preset second cluster user information stored in any sub-server of the submachine changes, the preset second cluster user information stored in that sub-server after the change is compared with the preset second cluster user information in another sub-server. If the preset second cluster user information in the two sub-servers is inconsistent, the changed preset second cluster user information is synchronized to the other sub-server, thereby keeping the preset second cluster user information in the two sub-servers of the submachine synchronized.
[0080] S203 synchronizes the modified preset second cluster user information to the first cluster through the synchronization engine.
[0081] S203 can be executed after S202, or it can be executed synchronously with S202.
[0082] Therefore, if the authentication information used for authentication in any server in the cluster changes, the corresponding server that performs collaborative control can synchronously change its authentication information. To prevent the impact on internal authentication, the changed authentication information in the second cluster will also be synchronized to the synchronization engine in a timely manner.
[0083] In one possible implementation, Figure 3 This is a flowchart illustrating the data synchronization method provided in an embodiment of this application, as shown below. Figure 3 As shown, the data synchronization method includes the following steps: S301 to S304.
[0084] S301, Receive data operation request;
[0085] As one possible implementation of S301, data operation requests are received based on the current processor state. If the current processor state is idle, data operation requests are received. If the current processor state is busy, receiving data operation requests is paused.
[0086] S302, if the data operation request type is a preset data operation request type and the data operation request is successfully responded to, the data operation request is recorded in the operation record table to obtain the data operation request record;
[0087] As one possible implementation of S302, when the data operation request type is a preset data operation request type, the data operation request is tracked. If no feedback information indicating successful execution of the data operation request is received within a preset time, the data operation request is considered unsuccessful. If feedback information indicating successful execution of the data operation request is received, the data operation request is considered successfully executed. The data operation request is recorded in the operation record table based on the current time or the request initiation time, thus obtaining the data operation request record.
[0088] In one example, the operation log table includes data operation request records with time information. The default data operation request types are at least: add, delete, and modify.
[0089] S303, perform a difference analysis based on the data operation request record at the current time and the data operation request record at the time closest to the current time to determine the incremental record;
[0090] As a possible implementation of S303, the incremental record is determined by performing a difference analysis on the data operation request record at the current moment and the data operation request record at the first moment closest to the current moment based on the Remote Differential Compression (RDC) algorithm.
[0091] After S303, S302 and S304 will be triggered simultaneously.
[0092] S304 updates the incremental record to the data operation access second cluster in the data operation request.
[0093] The data operation request includes information about accessing the second cluster. Accessing the second cluster indicates the access object and execution object of the data operation request, that is, the data operation request is to operate on the data in the data operation accessing the second cluster.
[0094] Therefore, when data changes in the cluster, it is not necessary to update all data; only the parts that differ need to be updated, which greatly reduces the pressure on the processor and improves data synchronization efficiency.
[0095] In one possible implementation, after updating the incremental record to the data operation access second cluster in the data operation request, the method further includes:
[0096] If the incremental record is successfully updated, delete the incremental record.
[0097] As one possible implementation, incremental record deletion is logged as an event, so that it can be restored when needed.
[0098] If the incremental record update fails, output an abnormal alarm message;
[0099] Return to execute the data operation access to the second cluster that updates the incremental record to the data operation request.
[0100] Therefore, tracking whether data updates are successful and updating again promptly after a failure can effectively reduce the probability of data update failures.
[0101] In one possible implementation, Figure 4 This is a flowchart illustrating the server switching method provided in an embodiment of this application, as shown below. Figure 4 As shown, the server switching method includes the following steps: S401 to S404.
[0102] S401, retrieve the mapping relationship between the cluster and the server;
[0103] As one possible implementation of S401, the cluster includes a first cluster and a second cluster, and the servers include a master server and a sub-server.
[0104] S402 monitors the process and network status of the primary server through a server monitoring cluster;
[0105] As one possible implementation of S402, the first server is the currently running server. To avoid system errors and resource waste, only one server works at a time.
[0106] S403, if the process information and / or network information of the first server are abnormal, the name of the server in the mapping relationship is changed to the name of the second server by switching the server cluster;
[0107] Server switching is achieved by automatically modifying the mapping relationship without human intervention. Since the data between the two servers is synchronized, the system will not be interrupted even if the server is switched.
[0108] S404 changes the status of the second server to an unswitchable state.
[0109] As one possible implementation of S404, the state of the second server is modified to an unswitchable state to prevent abnormal servers from being connected to the running system.
[0110] As a possible implementation of S404, after modifying the state of the second server to an unswitchable state, an attempt is made to restore the process information and / or network information of the second server to a normal state.
[0111] Therefore, based on the server's process status and network conditions, the two servers for collaborative work are switched to ensure the normal operation of the system.
[0112] In one possible implementation, after changing the state of the second server to a non-switchable state, the method further includes:
[0113] If the process and network information of the second server are normal, synchronize the data between the first and second servers;
[0114] Change the status of the second server to switchable.
[0115] In one example, to reduce resource waste, the server is not switched unless necessary.
[0116] Therefore, once any server recovers, data synchronization is performed first to ensure data accuracy.
[0117] Based on the above authentication method, this application also provides an authentication system. Figure 5 This is a schematic diagram of the structure of an authentication system provided in one embodiment of this application, as shown below. Figure 5 As shown, the authentication system includes:
[0118] A first cluster 510 is connected to a client 530 and at least one second cluster 520. The first cluster 510 includes a synchronization engine 512 for interaction between the first cluster 510 and the second cluster 520, and for performing authentication methods as described above.
[0119] The second cluster 520 is used to send internal user authentication requests to the first cluster 510.
[0120] In one possible implementation, the first cluster 510 further includes two redundant master servers 511 as hosts; the second cluster 520 includes two redundant sub-servers 521 as slaves.
[0121] Based on the above authentication method, correspondingly, this application embodiment also provides an authentication device applied to a first cluster, the first cluster being connected to a client and at least one second cluster respectively; the first cluster includes a synchronization engine for interaction between the first cluster and the second cluster; Figure 6 This is a schematic diagram of the authentication device provided in the embodiments of this application, such as... Figure 6 As shown, the authentication device 600 includes:
[0122] Receiver module 601 is used to receive user authentication requests;
[0123] The external authentication module 602 is used to authenticate the external user authentication request based on the preset first cluster user information stored in the first cluster when the user authentication request is an external user authentication request sent by the client.
[0124] The acquisition module 603 is used to determine access to the second cluster based on the internal user authentication request when the user authentication request is an internal user authentication request sent by the second cluster.
[0125] Synchronization module 604 is used to synchronize the preset second cluster user information stored in the second cluster to the first cluster through the synchronization engine;
[0126] The internal authentication module 605 is used to authenticate internal user authentication requests based on preset second cluster user information.
[0127] The above describes a specific implementation of the authentication device in this application. It receives user authentication requests, classifies and processes them, and when the user authentication request is an external user authentication request sent by a client, it authenticates the external user authentication request based on preset first cluster user information stored in the first cluster, avoiding multiple authentications and improving the authentication efficiency of the federated cluster. When the user authentication request is an internal user authentication request sent by the second cluster, it determines whether to access the second cluster based on the internal user authentication request, synchronizes the preset second cluster user information stored in the second cluster to the first cluster through a synchronization engine, and authenticates the internal user authentication request based on the preset second cluster user information, thus achieving individual user authentication for each cluster and ensuring the security of the federated cluster.
[0128] In one possible implementation, the first cluster further includes two redundant master servers acting as hosts; the second cluster includes two redundant sub-servers acting as slave servers. The authentication device 600 may also include:
[0129] The master server synchronization module is used to synchronize the modified user information of the first cluster stored in any master server in the host to another master server when the modified user information of the first cluster is changed.
[0130] The sub-server synchronization module is used to synchronize the modified preset second cluster user information to another sub-server when the preset second cluster user information stored in any sub-server in the sub-machine changes.
[0131] The synchronization engine module is used to synchronize the modified user information of the second cluster to the first cluster through the synchronization engine.
[0132] Therefore, if the authentication information used for authentication in any server in the cluster changes, the corresponding server that performs collaborative control can synchronously change its authentication information. To prevent the impact on internal authentication, the changed authentication information in the second cluster will also be synchronized to the synchronization engine in a timely manner.
[0133] In one possible implementation, the authentication device 600 may further include:
[0134] The data operation request receiving module is used to receive data operation requests;
[0135] The data operation request recording module is used to record the data operation request in the operation record table when the data operation request type is a preset data operation request type and the data operation request is successfully responded to, thus obtaining the data operation request record; the operation record table includes data operation request records with time information;
[0136] The incremental record determination module is used to perform difference analysis between the data operation request record at the current moment and the data operation request record at the moment closest to the current moment to determine the incremental record.
[0137] The incremental record update module is used to update incremental records to the data operation access second cluster in the data operation request.
[0138] Therefore, when data changes in the cluster, it is not necessary to update all data; only the parts that differ need to be updated, which greatly reduces the pressure on the processor and improves data synchronization efficiency.
[0139] In one possible implementation, after updating the incremental record to the data operation access second cluster in the data operation request, the authentication device 600 may further include:
[0140] The incremental record deletion module is used to delete incremental records when they are successfully updated.
[0141] The abnormal alarm information output module is used to output abnormal alarm information when incremental record update fails;
[0142] The return update module is used to return the data operation access to the second cluster that updates the incremental records to the data operation request.
[0143] Therefore, tracking whether data updates are successful and updating again promptly after a failure can effectively reduce the probability of data update failures.
[0144] In one possible implementation, the authentication device 600 may further include:
[0145] The mapping relationship acquisition module is used to obtain the mapping relationship between the cluster and the server; the cluster includes the first cluster and the second cluster; the server includes the master server and the sub-server.
[0146] The monitoring module is used to monitor the process and network status of the primary server through the server monitoring cluster; the primary server is the currently running server.
[0147] The switching module is used to change the name of the server in the mapping relationship to the name of the second server when the process information and / or network information of the first server are abnormal.
[0148] The status modification module is used to change the status of the second server to an unswitchable state.
[0149] Therefore, based on the server's process status and network conditions, the two servers for collaborative work are switched to ensure the normal operation of the system.
[0150] In one possible implementation, after the state of the second server is modified to a non-switchable state, the authentication device 600 may further include:
[0151] The data synchronization module is used to synchronize data between the first and second servers when the process and network information of the second server are normal.
[0152] The status modification module is used to change the status of the second server to a switchable state.
[0153] Therefore, once any server recovers, data synchronization is performed first to ensure data accuracy.
[0154] Based on the above authentication method, this application also provides an authentication device. Figure 7 This is a schematic diagram of the authentication device provided in the embodiments of this application, such as... Figure 7 As shown, the device includes a processor 701 and a memory 702 storing computer program instructions.
[0155] Specifically, the processor 701 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0156] Memory 702 may include mass storage for data or instructions. For example, and not limitingly, memory 702 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 702 may include removable or non-removable (or fixed) media. Where appropriate, memory 702 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 702 is non-volatile solid-state memory.
[0157] Memory 702 may include read-only memory (ROM), random access memory (RAM), disk storage media device, optical storage media device, flash memory device, electrical, optical, or other physical / tangible memory storage device. Therefore, generally, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of this application.
[0158] The processor 701 implements any of the authentication methods described in the above embodiments by reading and executing computer program instructions stored in the memory 702.
[0159] In one example, the authentication device may also include a communication interface 703 and a bus 710. Wherein, as... Figure 3 As shown, the processor 701, memory 702, and communication interface 703 are connected through bus 710 and complete communication with each other.
[0160] The communication interface 703 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.
[0161] Bus 710 includes hardware, software, or both, that couples components of an authenticating device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 710 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, any suitable bus or interconnect is contemplated herein.
[0162] The authentication device can execute the authentication method in the embodiments of this application, thereby achieving a combination Figure 1 and Figure 6 The described authentication methods and apparatus.
[0163] In addition, in conjunction with the authentication methods in the above embodiments, this application embodiment can provide a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the authentication method as described above.
[0164] In conjunction with the authentication methods described in the above embodiments, this application embodiment can provide a computer program product, wherein when the instructions in the computer program product are executed by the processor of an electronic device, the electronic device performs the authentication method as described above.
[0165] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.
[0166] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0167] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0168] The aspects of this application have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatuses, systems, and computer program products according to embodiments of this application. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.
[0169] The above description is merely a specific implementation of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.
Claims
1. An authentication method, characterized in that, The method is applied to a first cluster, which is connected to a client and at least one second cluster; the first cluster includes a synchronization engine for interaction between the first cluster and the second cluster; the method includes: Receive user authentication requests; In the case where the user authentication request is an external user authentication request sent by the client, the external user authentication request is authenticated according to the preset first cluster user information stored in the first cluster. In the case where the user authentication request is an internal user authentication request sent by the second cluster, the target second cluster to be accessed is determined based on the internal user authentication request; The synchronization engine synchronizes the preset second cluster user information stored in the accessed target second cluster to the first cluster. The internal user authentication request is authenticated based on the preset second cluster user information; The first cluster also includes two main servers that serve as redundant backups for each other and act as host servers; the second cluster includes two sub-servers that serve as redundant backups for each other and act as slave servers. If the preset first cluster user information stored in any master server of the host changes, the changed preset first cluster user information will be synchronized to another master server. If the preset second cluster user information stored in any of the sub-servers in the sub-machine changes, the changed preset second cluster user information will be synchronized to another sub-server. The modified preset second cluster user information is synchronized to the first cluster through the synchronization engine.
2. The authentication method according to claim 1, characterized in that, The method further includes: Receive data operation requests; When the data operation request is of a preset type and the data operation request is successfully responded to, the data operation request is recorded in the operation record table to obtain a data operation request record; the operation record table includes data operation request records with time information. Based on the difference analysis between the data operation request record at the current moment and the data operation request record at the first moment closest to the current moment, the incremental record is determined; Update the incremental record to the target second cluster in the data operation request.
3. The authentication method according to claim 2, characterized in that, After updating the incremental record to the target second cluster corresponding to the data operation request in the data operation request, the method further includes: If the incremental record is successfully updated, the incremental record will be deleted. If the incremental record update fails, an abnormal alarm message will be output; Return to the target second cluster corresponding to the data operation request in the data operation request that updates the incremental record to the data operation request.
4. The authentication method according to claim 1, characterized in that, The method further includes: Obtain the mapping relationship between clusters and servers; the clusters include the first cluster and the second cluster; the servers include the master server and the sub-servers; The process and network status of the first server are monitored through a server monitoring cluster; the first server is the server that is currently running. If the process information and / or network information of the first server are abnormal, the name of the server in the mapping relationship will be changed to the name of the second server by switching the server cluster. Change the status of the second server to an unswitchable state.
5. The authentication method according to claim 4, characterized in that, After changing the state of the second server to a non-switchable state, the method further includes: If the process information and network information of the second server are normal, synchronize the data between the first server and the second server; Change the status of the second server to a switchable state.
6. An authentication system, characterized in that, include: A first cluster is connected to a client and at least one second cluster, the first cluster including a synchronization engine for interaction between the first cluster and the second cluster, for performing the authentication method as described in any one of claims 1-5; The second cluster is used to send internal user authentication requests to the first cluster.
7. The authentication system according to claim 6, characterized in that, The first cluster also includes two main servers that serve as redundant backups for each other and act as host servers. The second cluster includes two redundant backup sub-servers that perform the functions of sub-servers.
8. An authentication device, characterized in that, The apparatus is applied to a first cluster, which is connected to a client and at least one second cluster; the first cluster includes a synchronization engine for interaction between the first cluster and the second cluster; the apparatus includes: The receiving module is used to receive user authentication requests; An external authentication module is used to authenticate the external user authentication request based on preset first cluster user information stored in the first cluster when the user authentication request is an external user authentication request sent by the client. The acquisition module is used to determine the target second cluster to be accessed based on the internal user authentication request when the user authentication request is an internal user authentication request sent by the second cluster. The synchronization module is used to synchronize the preset second cluster user information stored in the accessed target second cluster to the first cluster through the synchronization engine; An internal authentication module is used to authenticate the internal user authentication request based on the preset second cluster user information; The first cluster also includes two main servers that serve as redundant backups for each other and act as host servers; the second cluster includes two sub-servers that serve as redundant backups for each other and act as slave servers. The master server synchronization module is used to synchronize the changed preset first cluster user information to another master server when the preset first cluster user information stored in any master server in the host changes. The sub-server synchronization module is used to synchronize the changed preset second cluster user information stored in any of the sub-servers in the sub-machine to another sub-server when the preset second cluster user information is changed. The synchronization engine synchronization module is used to synchronize the modified preset second cluster user information to the first cluster through the synchronization engine.
9. An authentication device, characterized in that, The device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the authentication method as described in any one of claims 1-5.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions that, when executed by a processor, implement the authentication method as described in any one of claims 1-5.
11. A computer program product, characterized in that, When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device performs the authentication method as described in any one of claims 1-5.
Citation Information
Patent Citations
Authentication method, authentication system, firewall device and storage medium
CN111107106A
Login bill synchronization system and method, and related equipment
CN111651747A
