Method and apparatus for synchronizing information of different host environments
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INDUSTRIAL AND COMMERCIAL BANK OF CHINA
- Filing Date
- 2023-08-24
- Publication Date
- 2026-06-02
Smart Images

Figure CN117076566B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and specifically to a method and apparatus for synchronizing information across different host environments. Background Technology
[0002] Mainframes are an important component of enterprise-level computer systems and are widely used in fields such as finance, telecommunications, and manufacturing.
[0003] Currently, many banking operations require the use of mainframes. During operation, mainframes necessitate maintenance by dedicated personnel to ensure service reliability. In existing technology, maintenance personnel typically manage multiple mainframes, each configured with multiple host environments. For maintenance purposes, these personnel maintain users on each of these environments, with separate configurations and databases for each environment. When maintenance personnel need to modify user information, such as usernames and passwords, they must log into each user account on different mainframe environments and modify the information individually, which is time-consuming and inefficient. Summary of the Invention
[0004] To address the problems in the prior art, embodiments of the present invention provide a method and apparatus for synchronizing information in different host environments, which can at least partially solve the problems existing in the prior art.
[0005] In a first aspect, the present invention proposes a method for information synchronization in different host environments, comprising:
[0006] Receive a user information synchronization request, wherein the user information synchronization request includes a first user identifier, a second user identifier, and information to be synchronized;
[0007] Based on the first user identifier and the second user identifier, query the association relationship between the first user identifier corresponding to the first user identifier and the second user identifier corresponding to the second user identifier;
[0008] If the association between the first user and the second user is a preset relationship, then the user information of the second user is updated based on the information to be synchronized; wherein, the first user and the second user are users in different host environments.
[0009] Secondly, the present invention provides an information synchronization device for different host environments, comprising:
[0010] The receiving module is used to receive user information synchronization requests, wherein the user information synchronization requests include a first user identifier, a second user identifier, and information to be synchronized;
[0011] The query module is used to query the association relationship between the first user corresponding to the first user identifier and the second user corresponding to the second user identifier based on the first user identifier and the second user identifier;
[0012] The update module is used to update the user information of the second user based on the information to be synchronized if the association relationship between the first user and the second user is a preset relationship; wherein the first user and the second user are users in different host environments.
[0013] Thirdly, the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the information synchronization method for different host environments described in any of the above embodiments.
[0014] Fourthly, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the information synchronization method for different host environments described in any of the above embodiments.
[0015] Fifthly, the present invention provides a computer program product, the computer program product comprising a computer program, which, when executed by a processor, implements the information synchronization method for different host environments described in any of the above embodiments.
[0016] The information synchronization method and apparatus for different host environments provided in this invention can receive user information synchronization requests, which include a first user identifier, a second user identifier, and information to be synchronized. Based on the first user identifier and the second user identifier, the association relationship between the first user identifier and the second user identifier is queried. If the association relationship between the first user and the second user is a preset relationship, the user information of the second user is updated based on the information to be synchronized. This eliminates the need to log in to different host environments one by one to modify the user information, thus improving the synchronization efficiency of user information. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings:
[0018] Figure 1 This is a schematic diagram of the host system provided in the first embodiment of the present invention.
[0019] Figure 2 This is a flowchart illustrating the information synchronization method for different host environments provided in the second embodiment of the present invention.
[0020] Figure 3 This is a flowchart illustrating the information synchronization method for different host environments provided in the third embodiment of the present invention.
[0021] Figure 4 This is a schematic diagram of the structure of the information synchronization device for different host environments provided in the fourth embodiment of the present invention.
[0022] Figure 5 This is a schematic diagram of the structure of the information synchronization device for different host environments provided in the fifth embodiment of the present invention.
[0023] Figure 6 This is a schematic diagram of the information synchronization device for different host environments provided in the sixth embodiment of the present invention.
[0024] Figure 7 This is a schematic diagram of the structure of the information synchronization device for different host environments provided in the seventh embodiment of the present invention.
[0025] Figure 8 This is a schematic diagram of the physical structure of the electronic device provided in the eighth embodiment of the present invention. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. Here, the illustrative embodiments and their descriptions are used to explain the present invention, but are not intended to limit the present invention. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of this application can be arbitrarily combined with each other. The acquisition, storage, use, and processing of data in the technical solutions of this application all comply with relevant laws and regulations. The user information in the embodiments of this application is obtained through legal and compliant means, and the acquisition, storage, use, and processing of user information have been authorized and agreed upon by the customer.
[0027] To facilitate understanding of the technical solution provided in this application, the relevant content of the technical solution in this application will be explained below.
[0028] The Resource Access Control Facility (RACF) is an add-on software product for IBM mainframes. It protects the security of system resources and application data by managing the authorization and access control of users, groups, data sets, and general resources, thereby preventing unintentional or malicious use, leakage, damage, and tampering of resources. It also has functions such as user authentication, resource authorization checks, security auditing, and security management.
[0029] Advanced Program-to-Program Communication (APPC) is a communication protocol and a programming interface standard that primarily operates at the presentation and session layers.
[0030] Multiple Virtual Storage (MVS) is the most commonly used operating system for IBM mainframes.
[0031] APPC / MVS is an application of Virtual Telecommunications Access Method (VTAM) that extends APPC support for the Z / OS operating system.
[0032] Transaction Program (TP): An application that uses APPC communication scheduling.
[0033] Logical unit (LU): A network port that enters the IBM Systems Network Architecture (SNA) and allows access to network resources. NOSCHED LU: Refers to a LU that is not associated with a transaction scheduler.
[0034] A session is a logical connection established between two LUs.
[0035] Logon Modes: A set of defined call characteristics, including parameters and protocols.
[0036] Database Token (DBTOKEN): A token is a string generated by the server and used as a pass for client requests. Upon the first login, the server generates a token and returns it to the client. Subsequent client requests only require this token, eliminating the need to include the username and password. The purpose of using tokens is to reduce server load, decrease frequent database queries, and make the server more robust. DBTOKENs are also used to assign different security levels to different client types.
[0037] Access method control block name (ACBNAME): This is the name specified by the ACB macro instruction in the IBM VTAM APP definition statement, and this name is recognized by VTAM.
[0038] LUTYPE 6.2 is also known as APPC connectivity. To support data communication in transaction processing systems, the APPC architecture defines a subset of features that allow APPC endpoints to communicate with application systems.
[0039] The bank's mainframe can be configured with multiple host environments (SYSPLEX), including but not limited to personal environments, corporate environments, primary city disaster recovery environment PPK1, secondary city disaster recovery environment PPK2, and off-site disaster recovery environments. Each host environment has multiple operating systems; for example, the personal and corporate environments each have eight operating systems. Each host environment shares a single RACF database; different host environments use different RACF databases.
[0040] Figure 1 This is a schematic diagram of the host system provided in the first embodiment of the present invention, as shown below. Figure 1 As shown, the host system provided in this embodiment of the invention includes multiple hosts 1, wherein:
[0041] Each host 1 is configured with a host environment, and each host environment has at least one operating system. The host environments configured on each host 1 are different, and each host 1 corresponds to one RACF database. For host 1 with two or more operating systems, one of the operating systems will be configured as the master system.
[0042] Each host 1 can establish a RACF remote shared network link to achieve communication. The host 1 that establishes the RACF remote shared network link becomes a node in the RACF remote shared network. A host 1 with a single operating system can be called a single-system node, and a host 1 with multiple operating systems can be called a multi-system node. Host 1 can be an IBM mainframe.
[0043] For a single-system node, requests can only be sent to the master system of a multi-system node; for a multi-system node, requests can be sent to either the master system of a single-system node or the master system of a multi-system node; the various operating systems within a multi-system node cannot communicate with each other.
[0044] In this application, to distinguish between the various hosts 1, the host 1 that sends the request is referred to as the local host, and the host 1 that receives the request is referred to as the remote host. Since each host can send or receive requests, each host 1 can be either a local host or a remote host.
[0045] The following describes the specific implementation process of the information synchronization method for different host environments provided in this embodiment of the invention, using a remote host as the execution subject as an example.
[0046] Figure 2 This is a flowchart illustrating the information synchronization method for different host environments provided in the second embodiment of the present invention, as shown below. Figure 2 As shown, the information synchronization method for different host environments provided in this embodiment of the invention includes:
[0047] S201. Receive a user information synchronization request, wherein the user information synchronization request includes a first user identifier, a second user identifier, and information to be synchronized;
[0048] Specifically, when host maintenance personnel need to synchronize user information across different host environments, they can send a user information synchronization request from the local host to the remote host. This user information synchronization request includes a first user identifier, a second user identifier, and information to be synchronized. The first user identifier uniquely corresponds to a first user; the second user identifier uniquely corresponds to a second user. The information to be synchronized may include username, password, etc., and can be set according to actual needs; this embodiment of the invention does not impose limitations.
[0049] S202. Based on the first user identifier and the second user identifier, query the association relationship between the first user identifier corresponding to the first user identifier and the second user identifier corresponding to the second user identifier;
[0050] Specifically, after receiving the user information synchronization request, the remote host queries the association relationship between the first user corresponding to the first user identifier and the second user corresponding to the second user identifier based on the first user identifier and the second user identifier.
[0051] S203. If the association between the first user and the second user is a preset relationship, then update the user information of the second user based on the information to be synchronized; wherein the first user and the second user are users in different host environments.
[0052] Specifically, if the remote host finds the association between the first user and the second user, it will determine whether the association between the first user and the second user is a preset relationship. If the association between the first user and the second user is a preset relationship, it means that the first user and the second user are associated users, and the user information of the first user and the second user can be synchronized. Then, the remote host can update the user information of the second user according to the information to be synchronized. The preset relationship is set according to actual needs, and this embodiment of the invention does not impose limitations. The preset relationship between the first user and the second user is pre-set, and the first user and the second user are users in different host environments.
[0053] For example, preset relationships include hierarchical relationships and peer relationships. In a hierarchical relationship, a superior user can modify the user information of a subordinate user, but a subordinate user cannot modify the user information of a superior user. In a peer relationship, users can synchronize their user information.
[0054] For example, server maintenance personnel A are responsible for maintaining N servers. Since the server environments differ across these servers, A has a user account on each of the N servers and needs to log in to each server to perform related operations. To facilitate login, A sets the same username and password for all N users, establishing a peer-to-peer relationship among them. When passwords need to be changed periodically, A can change the password on one of the servers, and the changed password will then be synchronized to the other N-1 servers. This eliminates the need to log in to each server individually, improving password change efficiency.
[0055] For example, the first user is a user of the local host, and the second user is a user of the remote host.
[0056] The information synchronization method for different host environments provided in this invention can receive user information synchronization requests, which include a first user identifier, a second user identifier, and information to be synchronized. Based on the first user identifier and the second user identifier, the method queries the association relationship between the first user corresponding to the first user identifier and the second user corresponding to the second user identifier. If the association relationship between the first user and the second user is a preset relationship, the method updates the user information of the second user based on the information to be synchronized. This eliminates the need to log in to different host environments one by one to modify the user information, thus improving the synchronization efficiency of user information.
[0057] Based on the above embodiments, the information synchronization method for different host environments provided in this embodiment of the invention further includes:
[0058] In the host environment to which the second user belongs, establish the association between the first user and the second user.
[0059] Specifically, the host maintenance personnel can set the association between the first user and the second user in the host environment to which the second user belongs through the remote host, and store the association between the first user and the second user in the RACF database corresponding to the host environment to which the second user belongs.
[0060] Based on the above embodiments, the information synchronization method for different host environments provided in this embodiment of the invention further includes:
[0061] A remote shared network link is established between the host environment to which the first user belongs and the host environment to which the second user belongs.
[0062] Specifically, in order to enable communication between hosts in different host environments, it is necessary to establish a remote shared network connection between them. In this application, a remote shared network link needs to be established between the host environment to which the first user belongs and the host environment to which the second user belongs, that is, between the local host and the remote host.
[0063] For IBM mainframes, a RACF remote sharing session can be set up to enable communication between the local host and a remote host.
[0064] (1) Configure the LU of the local host, which can be achieved through the following code.
[0065]
[0066] The LU (ACBNAME) is defined in SYS1.PARMLIB (APPCPM00). APPCPM00 records parameters used to define or modify the APPC / MVS configuration, which are read when APPC starts. The settings of these parameters directly affect system performance. &SYSNAME.RACF is ACBNAME, and &SYSNAME is the system symbol. The keyword is specified as NOSCHED, and TPDATA specifies the TP filename associated with this LU, which is CPAC.APPCTP in the example above. TPLEVEL specifies the TP level for LU lookup, and SYSTEM is the system level. These settings are configured according to actual needs and are not limited in this embodiment of the invention.
[0067] After configuration, you need to use the command "RO*ALL,SET APPC=00" to update APPC so that the above configuration takes effect in real time.
[0068] (2) Define APPC LOGMODE, which can be achieved through the following code.
[0069]
[0070]
[0071] Here, MODETAB (logon mode table name) is the registration mode table name, which should be set according to actual needs. IRRMODE is the registration mode name, which is an assembly program that needs to be linked and edited into SYS1.VTAMLIB. The generated MODETAB is named APPCRRSF. The SYS1.VTAMLIB dataset is a partitioned dataset that contains ACF / VTAM loading module kernel login exit routines, security management and audit exit routines, etc.
[0072] (3) Configure the LU of the local host to VTAM, which can be achieved through the following code.
[0073]
[0074] The local host's LU is named APPLRRSF. It needs to be configured in SYS1.VTAMLST to be called by VTAM, and a refresh is required after configuration for it to take effect.
[0075] After the above code completes execution, the input information is as follows:
[0076] -PP1AV NET,ACT,ID=APPLRRSF / / Activation command, PP1A is an MVS system.
[0077] IST097I VARY ACCEPTED
[0078] IST1132I APPLRRSF IS ACTIVE,TYPE=APPL SEGMENT
[0079] Check if APPLRRSF already exists by using the command: D NET,ID=APPLRRSF,E.
[0080] (4) Configure DBTOKEN. You can complete the DBTOKEN configuration using the following code.
[0081] / / STEP1 EXEC PGM=ATBSDFMU
[0082] / / SYSPRINT DD SYSOUT=*
[0083] / / SYSSDOUT DD SYSOUT=*
[0084] / / SYSSDLIB DD DSN=CPAC.APPCTP,DISP=SHR
[0085] / / SYSIN DD*
[0086] DBMODIFY
[0087] DBTOKEN(RRSFTOKN)
[0088] / *
[0089] Here, ATBSDFMU is the name of the APPC / MVS management program, DBMODIFY is one of its functions, and RRSFTOKN is the name of the DBTOKEN. The above code needs to be configured in CPAC.APPCTP, i.e., the TP file in step (1).
[0090] The above steps (1) to (4) complete the configuration on the local host.
[0091] Based on a process similar to steps (1) to (4) above, the configuration on the remote host can be completed.
[0092] (5) Reconfigure RACF
[0093] 1) Configure RACFUSER, which is used to start the RACF subsystem. RACFUSER can be configured using the following code.
[0094] AU RACFUSER DFLTGRP(#GRPSTC)OWNER(#GRPSTC)NOPASSWORD
[0095] NAME('RACF USER')OMVS(UID(0))OPERATIONS
[0096] Here, AU is an abbreviation for ADDUSER, indicating the addition of a user. DFLTGRP(#GRPSTC) indicates that the default user group is #GRPSTC, OWNER(#GRPSTC) indicates that the owner is #GRPSTC, and NOPASSWORD indicates that the user has no password. OPERATIONS are user attributes, that is, whether the user has operator permissions.
[0097] The following code configures the startup user of the RACF subsystem as RACFUSER and refreshes to apply the changes.
[0098]
[0099] In this context, RDEF is the keyword for the resource definition statement, STARTED is the CLASS name, and RACF.* is the RACF address space policy name. STDATA(USER(RACFUSER)GROUP(#GRPSTC)) indicates that the startup user is RACFUSER and OWNER($GRPMVS) is the resource owner, which is $GRPMVS.
[0100] 2) Reconfigure the RACF subsystem program name and copy it to the program call library. The specific implementation code is as follows:
[0101] / / RACF PROC
[0102] / / RRSF EXEC PGM=IRRSSM00,REGION=0M,PARM='OPT=AB'
[0103] / / RACFPARM DD DSN=PVS1030.P9.RRSF.PARM,DISP=SHR
[0104] Among them, PVS1030.P9.RRSF.PARM is the file where the remote shared parameters are located, and PARM='OPT=AB' specifies the MEMBER name where the parameters are located, namely IRROPTAB.
[0105] For example, the password synchronization function between personal and public environments can be configured in PVS1030.P9.RRSF.PARM using the following code.
[0106]
[0107]
[0108] In this configuration, TARGET is the keyword for configuring remote sharing. NODE (NODEAB) is the node name of the local host, consisting of PP1A and PP1B, where PP1A is the host's master system. NODE (NODEAE) is the node name of the remote host, consisting of CP1A and CP1E, where CP1A is the master system. SET PWSYNC sets the password synchronization keyword and notifies the user of NODEAB's PVS0030 of the password synchronization information. SET NOAUTOPWD indicates that automatic password propagation is not enabled.
[0109] 3) Downstream RACF subsystem
[0110] 4) Restart the RACF subsystem
[0111] After modifying the RACF subsystem configuration, a restart is required for the changes to take effect. After restarting, you can check if the RACF remote sharing function has been established. Once the RACF remote sharing function is successfully established, a remote sharing network link is created, allowing communication between the local host and the remote host via the RACF remote sharing session.
[0112] After establishing a remote shared network link between the two hosts, workspace datasets can be used to temporarily store data. Both the local and remote hosts have INMSG and OUTMSG workspace datasets.
[0113] (1) IMNSG workspace dataset
[0114] The local IMNSG workspace dataset is used to temporarily store requests sent from the local host to itself; the remote IMNSG workspace dataset is used to store requests sent from remote hosts to the local host. It includes:
[0115] 1) Commands sent to the local host;
[0116] 2) RACF commands, application updates, and password changes sent to remote hosts.
[0117] (2) OUTMSG workspace dataset
[0118] OUTMSG is used to temporarily store requests destined for the local host. For example:
[0119] 1) Commands, application updates, and password changes from the local host.
[0120] 2) Output returned to another host.
[0121] (3) RRSFLIST dataset
[0122] The RRSFLIST dataset is a user dataset. User datasets are used to receive information, which can come from ONLYAT and AT propagation commands, as well as OUTPUT settings established by the SET command.
[0123] Based on the above embodiments, the information to be synchronized further includes a user password; correspondingly, if the association relationship between the first user and the second user is a preset relationship, then updating the user information of the second user based on the information to be synchronized includes:
[0124] Update the second user's password to the password included in the information to be synchronized.
[0125] Specifically, the information to be synchronized may include user passwords. If the association between the first user and the second user is a preset relationship, then the remote host can update the second user's password to the user password included in the information to be synchronized, thereby achieving synchronization between the first user's password and the second user's password.
[0126] Understandably, to improve the reliability of password synchronization, a second user can log in to the remote host to confirm the second user's password update, and then synchronize the password.
[0127] You can use the #RACLINK command to check and confirm the password synchronization status. If you find that ASSOCIATIONSTATUS displays "ESTABLISHED", it means that password synchronization has been successfully completed.
[0128] For example, after logging into the local host, the host maintenance personnel can use the PASSWORD or ALTUSER command to change the password of user X. They can then send a user information synchronization request carrying the modified password to the remote host, so that the password of user Y, who has a preset relationship with user X, on the remote host is updated to the modified password included in the user information synchronization request.
[0129] Figure 3 This is a flowchart illustrating the information synchronization method for different host environments provided in the third embodiment of the present invention, as shown below. Figure 3 As shown, based on the above embodiments, the information synchronization method for different host environments provided in this embodiment of the invention further includes:
[0130] S301. Receive a command propagation request, wherein the command propagation request includes a first user identifier, a second user identifier, and command information;
[0131] Specifically, if a host maintenance personnel executes a RACF command on the local host and wishes to execute it on a remote host, they can send a command propagation request from the local host to the remote host. The command propagation request includes a first user identifier, a second user identifier, and command information. The command information is the RACF command executed on the local host.
[0132] S302. Based on the first user identifier and the second user identifier, query the association relationship between the first user identifier corresponding to the first user identifier and the second user identifier corresponding to the second user identifier;
[0133] Specifically, after receiving the user information synchronization request, the remote host queries the association relationship between the first user corresponding to the first user identifier and the second user corresponding to the second user identifier based on the first user identifier and the second user identifier.
[0134] S303. If the association between the first user and the second user is a preset relationship, then the relevant operation is performed based on the command information in the host environment where the second user is located.
[0135] If the remote host finds the association between the first user and the second user, it will determine whether the association between the first user and the second user is a preset relationship. If the association between the first user and the second user is a preset relationship, it means that the first user and the second user are associated users and command propagation can be performed. Then the remote host can perform related operations based on the command information in the host environment where the second user is located, that is, repeat the process of executing the RACF command on the local host.
[0136] Through the command propagation process described above, RACF commands executed by host maintenance personnel in one host environment can be executed under the relevant user privileges in another host environment without having to log in to the other host environment and repeatedly enter the RACF commands, thus improving host maintenance efficiency.
[0137] Based on the above embodiments, the information synchronization method for different host environments provided in this embodiment of the invention further includes:
[0138] If the association between the first user and the second user is not the preset relationship, a message will be displayed indicating that information synchronization cannot be performed.
[0139] Specifically, if the remote host finds the association between the first user and the second user, it will determine whether the association between the first user and the second user is a preset relationship. If the association between the first user and the second user is not a preset relationship, it means that the first user and the second user are not associated users. The remote host can return a prompt message to the local host to indicate that information synchronization cannot be performed. The prompt message can explain that information synchronization cannot be performed because the first user and the second user are not associated users, so that the host maintenance personnel are aware of this.
[0140] Based on the above embodiments, the preset relationship is further defined as either a first relationship or a second relationship; the first relationship indicates that the first user is the superior user of the second user, and the second relationship indicates that the first user and the second user are peers.
[0141] Specifically, the first user is the superior user of the second user, indicating that the first user has the authority to modify the second user's user information. When logged in as the first user on the local host, a user information synchronization request can be sent to the remote host to modify the second user's user information. For example, if the person corresponding to the second user forgets their password for the remote host, the host maintenance personnel corresponding to the first user can be found. These personnel can then log in to the local host as the first user and send a user information synchronization request carrying a password reset message to the remote host, causing the remote host to reset the second user's password.
[0142] If the first user and the second user are peers, then the user information of the first user can be remotely synchronized to the second user. For example, the first user and the second user are users of the host maintenance personnel in different host environments.
[0143] The information synchronization method for different host environments provided in this invention, through RACF remote sharing technology, can realize user password synchronization and command propagation, facilitate RACF database synchronization and unified user management, and improve host maintenance efficiency.
[0144] Figure 4 This is a schematic diagram of the structure of the information synchronization device for different host environments provided in the fourth embodiment of the present invention, as shown below. Figure 4 As shown, the information synchronization device for different host environments provided in this embodiment of the invention includes a receiving module 401, a query module 402, and an update module 403, wherein:
[0145] The receiving module 401 is used to receive a user information synchronization request, which includes a first user identifier, a second user identifier, and information to be synchronized; the query module 402 is used to query the association relationship between the first user identifier and the second user identifier based on the first user identifier and the second user identifier; the updating module 403 is used to update the user information of the second user based on the information to be synchronized if the association relationship between the first user and the second user is a preset relationship; wherein, the first user and the second user are users in different host environments.
[0146] Specifically, when host maintenance personnel need to synchronize user information across different host environments, they can send a user information synchronization request to the receiving module 401 via the local host. The user information synchronization request includes a first user identifier, a second user identifier, and information to be synchronized. The receiving module 401 receives the user information synchronization request. The first user identifier uniquely corresponds to a first user; the second user identifier uniquely corresponds to a second user. The information to be synchronized may include username, password, etc., and can be set according to actual needs; this embodiment of the invention does not impose limitations.
[0147] After receiving the user information synchronization request, the query module 402 queries the association relationship between the first user corresponding to the first user identifier and the second user corresponding to the second user identifier based on the first user identifier and the second user identifier.
[0148] If the update module 403 finds a relationship between the first user and the second user, it will determine whether this relationship is a preset relationship. If the relationship is a preset relationship, it means the first user and the second user are associated users, and their user information can be synchronized. The remote host can then update the second user's user information based on the information to be synchronized. The preset relationship is set according to actual needs, and this embodiment of the invention does not impose limitations. The preset relationship between the first user and the second user is pre-set, and the first user and the second user are users in different host environments.
[0149] The information synchronization device for different host environments provided in this embodiment of the invention can receive user information synchronization requests, which include a first user identifier, a second user identifier, and information to be synchronized. Based on the first user identifier and the second user identifier, the device queries the association relationship between the first user corresponding to the first user identifier and the second user corresponding to the second user identifier. If the association relationship between the first user and the second user is a preset relationship, the device updates the user information of the second user based on the information to be synchronized. This eliminates the need to log in to different host environments one by one to modify the user information, thus improving the synchronization efficiency of user information.
[0150] Figure 5 This is a schematic diagram of the structure of the information synchronization device for different host environments provided in the fifth embodiment of the present invention, as shown below. Figure 5 As shown, based on the above embodiments, the information synchronization device for different host environments provided in this embodiment of the invention further includes an establishment module 404, wherein:
[0151] The module 404 is used to establish the association between the first user and the second user in the host environment to which the second user belongs.
[0152] Based on the above embodiments, the information synchronization device for different host environments provided in the embodiments of the present invention further includes:
[0153] A remote shared network link is established between the host environment to which the first user belongs and the host environment to which the second user belongs.
[0154] Based on the above embodiments, the information to be synchronized further includes the user password; correspondingly, the update module 403 is specifically used for:
[0155] Update the second user's password to the password included in the information to be synchronized.
[0156] Figure 6 This is a schematic diagram of the structure of the information synchronization device for different host environments provided in the sixth embodiment of the present invention, as shown below. Figure 6 As shown, based on the above embodiments, the information synchronization device for different host environments provided in this embodiment of the invention further includes a request receiving module 405, an association query module 406, and an execution module 407, wherein:
[0157] The request receiving module 405 is used to receive a command propagation request, which includes a first user identifier, a second user identifier, and command information; the association query module 406 is used to query the association relationship between the first user identifier and the second user identifier based on the first user identifier and the second user identifier; the execution module 407 is used to execute related operations based on the command information in the host environment where the second user is located if the association relationship between the first user and the second user is a preset relationship.
[0158] Figure 7 This is a schematic diagram of the structure of the information synchronization device for different host environments provided in the seventh embodiment of the present invention, as shown below. Figure 7 As shown, based on the above embodiments, the information synchronization device for different host environments provided in this embodiment of the invention further includes a prompting module 408, wherein:
[0159] The prompt module 408 is used to prompt that information synchronization cannot be performed if the association relationship between the first user and the second user is not the preset relationship.
[0160] Based on the above embodiments, the preset relationship is further defined as either a first relationship or a second relationship; the first relationship indicates that the first user is the superior user of the second user, and the second relationship indicates that the first user and the second user are peers.
[0161] The embodiments of the device provided in this invention can be used to execute the processing flow of the above-described method embodiments. Its functions will not be repeated here, but can be referred to the detailed description of the above-described method embodiments.
[0162] It should be noted that the information synchronization method and apparatus for different host environments provided in the embodiments of the present invention can be used in the financial field, or in any technical field other than the financial field. The embodiments of the present invention do not limit the application field of the information synchronization method and apparatus for different host environments.
[0163] Figure 8 This is a schematic diagram of the physical structure of the electronic device provided in the eighth embodiment of the present invention, as shown below. Figure 8 As shown, the electronic device may include: a processor 801, a communication interface 802, a memory 803, and a communication bus 804, wherein the processor 801, the communication interface 802, and the memory 803 communicate with each other through the communication bus 804. The processor 801 can call logical instructions in the memory 803 to execute the following method: receiving a user information synchronization request, the user information synchronization request including a first user identifier, a second user identifier, and information to be synchronized; querying the association relationship between the first user identifier and the second user identifier based on the first user identifier and the second user identifier; if the association relationship between the first user and the second user is a preset relationship, then updating the user information of the second user based on the information to be synchronized; wherein the first user and the second user are users in different host environments.
[0164] Furthermore, the logical instructions in the aforementioned memory 803 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0165] This embodiment discloses a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions, and when the program instructions are executed by a computer, the computer can execute the methods provided in the above-described method embodiments, such as: receiving a user information synchronization request, the user information synchronization request including a first user identifier, a second user identifier, and information to be synchronized; querying the association relationship between a first user corresponding to the first user identifier and a second user corresponding to the second user identifier based on the first user identifier and the second user identifier; if the association relationship between the first user and the second user is a preset relationship, then updating the user information of the second user based on the information to be synchronized; wherein the first user and the second user are users in different host environments.
[0166] This embodiment provides a computer-readable storage medium storing a computer program that causes a computer to execute the methods provided in the above-described method embodiments. For example, the method includes: receiving a user information synchronization request, the user information synchronization request including a first user identifier, a second user identifier, and information to be synchronized; querying the association relationship between a first user corresponding to the first user identifier and a second user corresponding to the second user identifier based on the first user identifier and the second user identifier; if the association relationship between the first user and the second user is a preset relationship, then updating the user information of the second user based on the information to be synchronized; wherein the first user and the second user are users in different host environments.
[0167] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0168] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of 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, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0169] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0170] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0171] In the description of this specification, the references to terms such as "an embodiment," "a specific embodiment," "some embodiments," "for example," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0172] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for synchronizing information across different host environments, characterized in that, include: Receive a user information synchronization request, wherein the user information synchronization request includes a first user identifier, a second user identifier, and information to be synchronized; In the resource access control device database corresponding to the host environment to which the second user belongs, the association relationship between the first user corresponding to the first user identifier and the second user corresponding to the second user identifier is queried based on the first user identifier and the second user identifier, wherein the association relationship is established in the host environment to which the second user belongs; If the association between the first user and the second user is a preset relationship, then the user information of the second user is updated based on the information to be synchronized; wherein, the first user and the second user are users in different host environments; the preset relationship is a first relationship or a second relationship; the first relationship indicates that the first user is the superior user of the second user, and the second relationship indicates that the first user and the second user are peers; The method further includes: Receive a command propagation request, the command propagation request including a first user identifier, a second user identifier, and command information; Based on the first user identifier and the second user identifier, query the association relationship between the first user identifier corresponding to the first user identifier and the second user identifier corresponding to the second user identifier; If the association between the first user and the second user is a preset relationship, then the relevant operation will be performed based on the command information in the host environment where the second user is located.
2. The method according to claim 1, characterized in that, Also includes: A remote shared network link is established between the host environment to which the first user belongs and the host environment to which the second user belongs.
3. The method according to claim 1, characterized in that, The information to be synchronized includes the user password; correspondingly, if the association between the first user and the second user is a preset relationship, then updating the user information of the second user based on the information to be synchronized includes: Update the second user's password to the password included in the information to be synchronized.
4. The method according to claim 1, characterized in that, Also includes: If the association between the first user and the second user is not the preset relationship, a message will be displayed indicating that information synchronization cannot be performed.
5. An information synchronization device for different host environments, characterized in that, The apparatus implements the method according to any one of claims 1 to 4, the apparatus comprising: The receiving module is used to receive user information synchronization requests, wherein the user information synchronization requests include a first user identifier, a second user identifier, and information to be synchronized; The query module is used to query the association relationship between the first user corresponding to the first user identifier and the second user corresponding to the second user identifier in the resource access control device database corresponding to the host environment to which the second user belongs, based on the first user identifier and the second user identifier, wherein the association relationship is established in the host environment to which the second user belongs; The update module is used to update the user information of the second user based on the information to be synchronized if the association relationship between the first user and the second user is a preset relationship; wherein the first user and the second user are users in different host environments; the preset relationship is a first relationship or a second relationship; the first relationship indicates that the first user is the superior user of the second user, and the second relationship indicates that the first user and the second user are peers.
6. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method according to any one of claims 1 to 4.
8. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method described in any one of claims 1 to 4.