CN114416767B - Multi-network-segment network disk account synchronization method and device, network disk and storage medium - Google Patents

Multi-network-segment network disk account synchronization method and device, network disk and storage medium Download PDF

Info

Publication number
CN114416767B
CN114416767B CN202210320963.4A CN202210320963A CN114416767B CN 114416767 B CN114416767 B CN 114416767B CN 202210320963 A CN202210320963 A CN 202210320963A CN 114416767 B CN114416767 B CN 114416767B
Authority
CN
China
Prior art keywords
account
information
change
network
synchronization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210320963.4A
Other languages
Chinese (zh)
Other versions
CN114416767A (en
Inventor
苏英杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin Lenovo Collaboration Technology Inc
Original Assignee
Tianjin Lenovo Collaboration Technology Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianjin Lenovo Collaboration Technology Inc filed Critical Tianjin Lenovo Collaboration Technology Inc
Priority to CN202210320963.4A priority Critical patent/CN114416767B/en
Publication of CN114416767A publication Critical patent/CN114416767A/en
Application granted granted Critical
Publication of CN114416767B publication Critical patent/CN114416767B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • G06F16/275Synchronous replication

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a multi-network segment network disk account synchronization method, a multi-network segment network disk account synchronization device, a network disk and a storage medium. Wherein the method comprises the following steps: searching account change information in a preset time period through a log, and merging and sorting the account change information based on an organization framework when the entry of the account change information exceeds an entry threshold; coding the merged and sorted account change information according to the corresponding coding information, account information and change flag bit of the minimum organizational hierarchy to generate an account change code; and sending the account change code to all slave network disks, so that all slave network disks decode the account change code to obtain the account change information and update the account information of the slave network disks. And calculating a time difference value between the current time and the account synchronization time of at least one slave network disk, generating account synchronization information when the time difference value is not less than a preset time difference value threshold, and sending the account synchronization information to all slave network disks.

Description

Multi-network segment network disk account synchronization method and device, network disk and storage medium
Technical Field
The embodiment of the invention relates to the technical field of network disks, in particular to a multi-network-segment network disk account synchronization method, a multi-network-segment network disk account synchronization device, a network disk and a storage medium.
Background
The network disk is an online storage service released by internet companies. The network disk system machine room divides a certain disk space for users, provides file management functions such as storage, access, backup and sharing of files for the users free or charged, and has high-level disaster recovery backup in all parts of the world. The user can realize the remote storage, reading and sharing of the files through the network disk, so that the use convenience and the access flexibility of the data materials can be greatly improved.
When some large enterprises or organizations use the network disk, the network disks of a plurality of different network segments are often set for use convenience, so that the file storage is localized, and the use efficiency of the network disks is improved.
In the process of implementing the invention, the inventor finds the following technical problems: in the use process of the multi-segment network disk, part of users have network disks which need to access a plurality of different network segments simultaneously. At present, the problem is solved by adopting a multi-network disk account synchronization mode. That is, each network disk broadcasts account change information to other network disks periodically, and because the account information stored in a plurality of network disk systems is inconsistent, account conflicts and safety problems are easily caused in the repeated synchronization process, thereby affecting the normal operation of the network disks.
Disclosure of Invention
The embodiment of the invention provides a multi-network-segment network disk account synchronization method, a multi-network-segment network disk account synchronization device, a network disk and a storage medium, and aims to solve the technical problem of account conflict caused by repeated synchronization of a plurality of network disk systems in the prior art.
In a first aspect, an embodiment of the present invention provides a method for synchronizing a multi-segment network disk account, including:
searching account change information in a preset time period through a log, wherein the account change information comprises: adding account information, modifying account information and deleting account information;
when the items of the account change information exceed an item threshold value, merging and sorting the account change information based on an organization framework;
coding the merged and sorted account change information according to the corresponding coding information, account information and change flag bit of the minimum organizational hierarchy to generate an account change code;
sending account change codes to all slave network disks, so that all slave network disks decode the account change codes to obtain the account change information and update the account information per se;
calculating a time difference value between the current time and at least one slave network disk account synchronization time, generating account synchronization information when the time difference value is not less than a preset time difference value threshold, and sending the account synchronization information to all slave network disks, so that all the slave network disks analyze the account synchronization information, and carry out account comprehensive coverage according to an analysis result.
In a second aspect, an embodiment of the present invention further provides a device for synchronizing an account of a multi-segment network disk, including:
the searching module is used for searching account change information in a preset time period through logs, and the account change information comprises: adding account information, modifying account information and deleting account information;
the merging module is used for merging and sorting the account change information based on an organization structure when the entry of the account change information exceeds an entry threshold;
the coding module is used for coding the merged and sorted account change information according to the corresponding coding information, account information and change flag bit of the minimum organizational hierarchy to generate an account change code;
the updating module is used for sending the account change codes to all the slave network disks, so that all the slave network disks decode the account change codes to obtain the account change information and update the account information of the slave network disks;
and the synchronization module is used for calculating a time difference value between the current time and the account synchronization time of at least one slave network disk, generating account synchronization information when the time difference value is not less than a preset time difference value threshold, sending the account synchronization information to all slave network disks, so that all the slave network disks analyze the account synchronization information, and comprehensively covering accounts according to an analysis result.
In a third aspect, an embodiment of the present invention further provides a network disk, including:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method for synchronizing the account of the multi-segment network disk provided by the above embodiment.
In a fourth aspect, an embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the method for synchronizing a multi-segment network disk account provided in the foregoing embodiment.
The multi-network segment network disk account synchronization method, device, network disk and storage medium provided by the embodiment of the invention search the account change information in the preset time period through the log, wherein the account change information comprises the following steps: adding account information, modifying account information and deleting account information; when the entry of the account change information exceeds an entry threshold value, sending the account information to all slave network disks, so that all slave network disks update the account information of the slave network disks according to the account change information; and calculating a time difference value between the current time and the account synchronization time of at least one slave network disk, and sending all account information to all slave network disks when the time difference value is not less than a preset time difference value threshold value so that all the slave network disks can carry out account comprehensive coverage according to all the account information. By setting the master network disk, the change or loss of the master data caused by the modification or deletion of the slave data is avoided, and the flexibility of account change in the slave network disk is also ensured. Avoid account data conflicts due to synchronization. Meanwhile, the problem of file security caused by account synchronization is effectively avoided. And the account information between the network disks is ensured to be uniform through a timing coverage mode. The normal operation of the multi-network segment network disk is ensured.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is a flowchart of a multi-segment network disk account synchronization method according to an embodiment of the present invention;
fig. 2 is a flowchart of a multi-segment network disk account synchronization method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method for synchronizing accounts of a multi-segment network disk according to a third embodiment of the present invention;
fig. 4 is a structural diagram of a multi-segment network disk account synchronization apparatus according to a fourth embodiment of the present invention;
fig. 5 is a structural diagram of a network disk according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for synchronizing accounts of a multi-segment network disk according to an embodiment of the present invention, where this embodiment is applicable to a situation where accounts are synchronized among multiple segment network disks having an association relationship, and the method may be executed by a multi-segment network disk account synchronization apparatus, and may be set in a host network disk, and specifically includes the following steps:
step 110, looking up account change information in a preset time period through a log, wherein the account change information comprises: adding account information, modifying account information and deleting account information.
In this embodiment, the association relationship between the network segments mainly includes the following two types: one is an equal relationship, which may correspond to usage between multiple organizations having the same hierarchy, such as: the network disk is correspondingly used by each branch company of the same company; the other is to have a hierarchical relationship, such as: the head office and each subordinate department correspond to the network disk.
When the network disk is used, the corresponding account is usually manually created by an administrator for the main use user. However, creating the same account by the administrator requires not only a great deal of manpower waste but also a long waiting time when the user uses other network disks. Therefore, an automatic synchronization mode is generally adopted at present. Namely, the network disks mutually broadcast the change information of the account, and other network disks are changed accordingly. However, this method has the following problems: during synchronization, some of the network disk accounts are deleted, while others are not deleted, and recovery may be achieved through synchronization. Creating an account conflict problem.
Therefore, in this embodiment, the above problem can be avoided by setting the master. Illustratively, the primary disk may be manually set by a user. Or the following rules can be set: the network disk with the highest hierarchy in the organization structure can be selected as a main network disk; and for the multiple network disks with equal relation, the network disk with the most account information can be selected as the main network disk.
In this embodiment, the master disk may scan the account change situation periodically to obtain the account change situation in this period of time. By using the mode, the influence of multi-frequency broadcasting on changing account information on the normal operation of the network disk can be avoided.
Optionally, the log may be used to search account change information within a preset time period, where the account change information includes: adding account information, modifying account information and deleting account information.
And 120, when the entry of the account change information exceeds an entry threshold, merging and sorting the account change information based on an organization architecture.
Because frequently sending account change information to other network disks not only affects network transmission performance, but also needs the network disk allocation computing power of the receiving end to process, and the external service performance of the network disk is seriously affected. Therefore, in the present embodiment, the account change information is not counted in a timing manner, but whether the changed account information satisfies the condition for sending to the outside is determined in a timing scanning manner. When the sending condition is met, the account change information is combined and sorted, the data volume of the broadcast data is reduced as much as possible through the combination and sorting, and meanwhile, the receiving end is convenient, namely, the account change data can be quickly processed from the network disk.
And 130, coding the combined and sorted account change information according to the corresponding coding information, account information and change flag bit of the minimum organizational hierarchy, and generating an account change code.
Because account change information includes a large amount of data, for example: the changed account password, the actual corresponding real user name, the corresponding position information in the organization framework and the like. Not only is the transmission inconvenient, but also the processing from the network disk is inconvenient. Therefore, in this embodiment, the account change information may be encoded and converted into a corresponding digital code, which not only effectively reduces the data transmission amount, but also facilitates fast processing of the account change data from the network disk.
And step 140, sending the account change code to all slave network disks, so that all slave network disks decode the account change code to obtain the account change information and update the account information of the slave network disks.
And the master network disk sends the account change codes to all the slave network disks, the slave network disks analyze the received account change codes according to the prearranged account change code rule after receiving the account change codes, and change and update the accounts stored by the slave network disks according to the analysis result.
Step 150, calculating a time difference between the current time and account synchronization time of at least one slave network disk, generating account synchronization information when the time difference is not less than a preset time difference threshold, and sending the account synchronization information to all slave network disks, so that all the slave network disks analyze the account synchronization information, and perform account comprehensive coverage according to an analysis result.
Because each network disk can generate self-created account information in the using process. Account information of each network disk is inconsistent with each other, and account conflicts are easy to generate. In addition, if the account information is important, the account information is created synchronously by an administrator of the main network disk, so that the account information stored in the main network disk is most accurate. Therefore, the slave network disks can be synchronized at a set time period, so that all network disks have the same account information. The interference of various temporary accounts and log-off accounts is reduced. And the management of each network disk account in the multi-network segment network disk is facilitated.
In this embodiment, a timing synchronization method may be adopted. Optionally, a time difference between the current time and at least one slave network disk account synchronization time may be calculated, and when the time difference is not less than a preset time difference threshold, synchronization may be started. And the master network disk generates account synchronization information according to the account stored in the master network disk, and sends the generated account synchronization information to all the slave network disks. And the slave network disk analyzes the received account synchronization information and covers the existing account information by using the analysis result so as to be consistent with the account information of the master network disk.
For example, the generating account synchronization information may include: determining whether the current organizational structure information is consistent with the previous synchronous account information; and if the information is consistent, the account information is encoded according to the organization structure information. Illustratively, the account may be encoded in a set encoding format. The set encoding format can be organization structure number + personnel name + account number + password. Because the authority corresponding to the file in the network disk is related to the personnel, namely the account. Therefore, in this embodiment, the staff number may be set according to the authority of the staff to the file, so that the management level of the account may be quickly analyzed by the network disk, and the corresponding network disk file authority may be further matched for the management level.
If the two codes are not consistent, determining a new or deleted department, and determining the corresponding codes according to the change property of the department, wherein 1 represents new and 2 represents deletion. Determining codes of a previous-level department and a next-level department of the newly added or deleted department, and giving a new code to the newly added department when the newly added department is added, wherein the new code is determined according to the codes of the previous-level department and the next-level department of the newly added department. When a department is deleted, determining the code of the deleted department, determining whether the deleted department has a next-level department, if so, determining a corresponding upper-level department of the next-level department, and giving a new code to the next-level department.
The master network disk first transmits the change information of the organization structure to the slave network disk, and generally, the organization structure is less likely to change. The master network disk may first send the organization structure change information to the slave network disk, so that the slave network disk first establishes a corresponding organization structure according to the organization structure change information.
After the organizational structure adjustment is completed, the account may be encoded according to the aforementioned encoding method. After the slave network disk establishes the corresponding organization architecture, the account code can be analyzed, and the account code is utilized to realize the coverage of the account. And further, the purpose of keeping consistent with the account of the main network disk is achieved.
In this embodiment, the account change information in the preset time period is searched through the log, where the account change information includes: adding account information, modifying account information and deleting account information; when the entry of the account change information exceeds an entry threshold value, sending the account information to all slave network disks so that all slave network disks update the account information of the slave network disks according to the account change information; and calculating a time difference value between the current time and the account synchronization time of at least one slave network disk, and sending all account information to all slave network disks when the time difference value is not less than a preset time difference value threshold value, so that all the slave network disks perform account comprehensive coverage according to all the account information. By setting the master network disk, the change or loss of the master data caused by the modification or deletion of the slave data is avoided, and the flexibility of account change in the slave network disk is also ensured. Avoiding account data conflicts due to synchronization. Meanwhile, the problem of file security caused by account synchronization is effectively avoided. And the account information between the network disks is ensured to be uniform through a timing coverage mode. The normal operation of the multi-network segment network disk is ensured.
Example two
Fig. 2 is a flowchart of a multi-segment network disk account synchronization method according to a second embodiment of the present invention. In this embodiment, the account change information may be merged and collated based on the organization structure, and specifically, the method is optimized as follows: extracting organization structure information corresponding to the changed accounts from the account change information, and combining changed accounts with the same level department in the organization structure information; coding the combined and sorted account change information according to the corresponding coding information, account information and change flag bit of the minimum organizational structure level to generate an account change code, comprising: acquiring hierarchical coding information of a minimum organization hierarchy; determining a corresponding change flag bit code according to the change type; generating account change information according to the sequence of the change flag bit codes and the account password information; the account change information pertaining to the minimum organizational hierarchy is arranged after the hierarchy-encoding information.
Correspondingly, the method for synchronizing the accounts of the multi-network segment network disks provided by the embodiment specifically includes:
step 210, looking up account change information in a preset time period through a log, wherein the account change information comprises: adding account information, modifying account information and deleting account information.
Step 220, when the entry of the account change information exceeds an entry threshold, extracting organization structure information corresponding to the changed account from the account change information, and merging changed accounts with the same hierarchical department in the organization structure information.
In this embodiment, since it is often necessary to transmit the account change information to the slave network disk, it is necessary to reduce the amount of data transmitted as much as possible, and the transmitted account change information should be easily analyzed from the network disk and quickly changed. Therefore, it is necessary to combine the account changes and compress the data amount of the account change information. Since accounts in the web disk are commonly tied to the organizational structure. Thus, the same change accounts for the hierarchy departments may be consolidated by each hierarchy department in the organizational structure.
And step 230, acquiring the hierarchical coding information of the minimum organization hierarchy.
The purpose of reducing account change information can be achieved by utilizing the coded information with the same organizational structure level. As multiple accounts may have multiple identical organizational hierarchy levels. To facilitate identification from the mesh disk, hierarchical coding information having the same minimum organizational structure level is acquired.
And 240, determining a corresponding change flag bit code according to the change type.
The account change can be divided into three types of adding, modifying and deleting, so that the corresponding account change type is determined according to the network disk log, and the corresponding change flag bit code is determined according to the rule.
And step 250, generating account change information according to the change flag bit codes and the account password information sequence.
Optionally, the account change information may be generated according to the change flag bit code and the account password information sequence, which is beneficial to quickly determining the account modification form and the corresponding form content from the network disk.
Step 260, arranging the account change information belonging to the minimum organizational hierarchy after the hierarchy coding information.
Accordingly, after the hierarchical code of the minimum organizational hierarchy corresponding to the account is added before the account change information, the account change information of a plurality of same departments can be represented by the same hierarchical code. And the organization structure level corresponding to the changed account can be quickly determined by the slave network disk, so that the corresponding account in the slave network disk can be quickly changed.
And 270, sending the account change code to all slave network disks, so that all slave network disks decode the account change code to obtain the account change information and update the account information of the slave network disks.
Step 280, calculating a time difference value between the current time and at least one slave network disk account synchronization time, generating account synchronization information when the time difference value is not less than a preset time difference value threshold, and sending the account synchronization information to all slave network disks, so that all the slave network disks analyze the account synchronization information, and performing account comprehensive coverage according to an analysis result.
In this embodiment, the merging and sorting of the account change information based on the organizational structure is specifically optimized as follows: extracting organization structure information corresponding to the changed accounts from the account change information, and combining changed accounts with the same level department in the organization structure information; encoding the merged and sorted account change information according to the corresponding encoding information, account information and change flag bit of the minimum organizational hierarchy to generate an account change code, and the method comprises the following steps: acquiring hierarchical coding information of a minimum organization hierarchy; determining a corresponding change flag bit code according to the change type; generating account change information according to the sequence of the change flag bit codes and the account password information; the account change information pertaining to the minimum organizational hierarchy is arranged after the hierarchy-encoding information. The coding of the changed account can be compressed by using the same hierarchy characteristic in the organization architecture, and the data transmission quantity is effectively reduced. The normal external service of the network disk due to the influence of the overlarge data volume is avoided. Meanwhile, corresponding account change information is set according to the minimum hierarchy of the organizational structure, so that the position for modifying the account information can be conveniently and quickly positioned from the network disk, and the account information can be quickly modified. The efficiency of modifying account information from the network disk is improved.
EXAMPLE III
Fig. 3 is a flowchart of a method for synchronizing accounts of a multi-segment network disk according to a third embodiment of the present invention. The method can also be added with the following steps: receiving new information of a slave network disk account sent by a slave network disk, and extracting organization information of the new account from the new information of the slave network disk account; determining whether the organization information is present in an organization framework; if the new account exists in the organization architecture, judging whether the new account is repeated with the existing account; and when the new account is not repeated, establishing a temporary account for the newly added account.
Correspondingly, the method for synchronizing the accounts of the multi-network segment network disks provided by the embodiment specifically includes:
step 310, searching account change information in a preset time period through a log, wherein the account change information comprises: adding account information, modifying account information and deleting account information.
And step 320, when the entry of the account change information exceeds an entry threshold, merging and sorting the account change information based on an organization architecture.
And step 330, coding the combined and sorted account change information according to the corresponding coding information, account information and change flag bit of the minimum organizational hierarchy, and generating an account change code.
And 340, sending the account change code to all slave network disks, so that all slave network disks decode the account change code to obtain the account change information and update the account information of the slave network disks.
And step 350, receiving the slave network disk account adding information sent by the slave network disk, and extracting the organization information of the added account from the slave network disk account adding information.
In some cases, the master network disk also needs to correspondingly set up a corresponding account on the master network disk according to the requirements of the slave network disk. To satisfy the use of the master network disk in special scenes. Therefore, in this embodiment, the primary disk may receive the new account information sent from the network disk. The new account information may include an account and organization information corresponding to the account. The primary disk may extract corresponding organization information and new account information from the new account information, where the organization information may be a minimum department organization corresponding to the account. The new account information may include: corresponding organization information and account name, account password and corresponding user name. Correspondingly, the extracting of the organization information of the new account from the new information of the network disk account includes: analyzing corresponding organization architecture information from the network disk account addition information; and extracting minimum level department information and account information from the organizational structure information.
And step 360, judging whether the organization information exists in an organization framework.
When the primary disk creates an account, it needs to first determine whether the account creation is legal, for example, a minimum level department may be selected according to a newly added account number sent from the network disk, and it may be determined whether the minimum level department information exists in the current organization structure of the primary disk. If not, the hierarchy may be considered too low or not matched and the create request is illegal. And a corresponding account cannot be correspondingly established in the main account.
Step 370, if the new account exists in the organizational structure, determining whether the new account is duplicated with the existing account.
If the current organization architecture of the main network disk comprises the corresponding organization information, the request can be considered to be legal, and whether the newly added account exists in the existing account is checked at first. For example, duplicate checking processing may be performed according to the name and the account number, respectively, so as to avoid repeatedly opening the account. And when the names are consistent and the account numbers are inconsistent, sending corresponding account modification information to the slave network disk so as to enable the slave network disk to be consistent with the master network disk account.
And 380, when the new account is not repeated, establishing a temporary account for the new account.
When it is determined not to be duplicated, a temporary account is created for it based on information sent from the network disk. Meanwhile, the organization structure of the main network disk is not adjusted at all, and only corresponding temporary accounts are created for the organization structure of the main network disk for temporary use of users. Therefore, any influence on the main network disk by the account information of the slave network disk is avoided, partial personnel can be ensured to be available when the main network disk is used, and the influence on work is avoided.
Step 390, calculating a time difference between the current time and the account synchronization time of the at least one slave network disk, generating account synchronization information when the time difference is not less than a preset time difference threshold, and sending the account synchronization information to all slave network disks, so that all the slave network disks analyze the account synchronization information, and perform account comprehensive coverage according to an analysis result.
The present embodiment adds the following steps: receiving the new information of the slave network disk accounts sent by the slave network disk, and extracting the organization information of the new accounts from the new information of the slave network disk accounts; determining whether the organization information is present in an organization framework; if the new account exists in the organization architecture, judging whether the new account is repeated with the existing account; and when the new account is not repeated, establishing a temporary account for the newly added account. The method and the system can effectively verify the effectiveness of the newly added account while providing convenience for other slave network disk users to access and use the master network disk, ensure the safety of the account of the master network disk and avoid confusion caused by changing the account of the master network disk. The account of each network disk can be synchronized with the main network disk without causing safety problems.
In a preferred embodiment of this embodiment, the method may further include the following steps: and sending the temporary account information to other slave network disks so that the other slave network disks generate other slave network disk accounts according to the temporary account information. The generated temporary account information may be sent to other slave network disks when the account change code is sent to the slave network disk, and the slave network disk may determine that the slave network disk is a temporary account according to the received account change code, so that the slave network disk first determines whether the same account exists locally according to the temporary account identifier, and if the same account exists, the processing is not performed, and if the same account does not exist, the corresponding account is newly added.
In addition, each account needs to be provided with a corresponding authority, in order to ensure the file security of the master network disk and the slave network disk, a lower authority can be set for the temporary account, and the temporary account can be authorized according to the account authority of the common staff in the minimum level of organization information. So as to avoid the leakage of confidential documents caused by setting over-high authority for the temporary account and ensure the normal use of the temporary account.
When the account synchronization is performed, the temporary account is used as an informal account, and the temporary account needs to be processed before the synchronization is performed. For example, the temporary account may be deleted before synchronization is performed, and the deleted account information may be sent to all slave network disks. And the slave network disk performs account synchronization according to the deleted temporary account, so that the influence of the temporary account on account synchronization is avoided.
Example four
Fig. 4 is a structural diagram of a multi-segment network disk account synchronization apparatus according to a fourth embodiment of the present invention, and as shown in fig. 4, the apparatus includes:
the searching module 410 is configured to search, through the log, account change information within a preset time period, where the account change information includes: adding account information, modifying account information and deleting account information;
a merging module 420, configured to merge and sort the account change information based on an organization architecture when an entry of the account change information exceeds an entry threshold;
the encoding module 430 is configured to encode the merged and sorted account change information according to the corresponding encoding information of the minimum organizational hierarchy, account information, and change flag bits, and generate an account change code;
the updating module 440 is configured to send the account change code to all slave network disks, so that all slave network disks decode the account change code to obtain the account change information, and update the account information of themselves;
the synchronization module 450 is configured to calculate a time difference between current time and at least one slave network disk account synchronization time, generate account synchronization information when the time difference is not less than a preset time difference threshold, and send the account synchronization information to all slave network disks, so that all the slave network disks analyze the account synchronization information, and perform account comprehensive coverage according to an analysis result.
The multi-network segment network disk account synchronization device provided in this embodiment searches for account change information within a preset time period through a log, where the account change information includes: adding account information, modifying account information and deleting account information; when the entry of the account change information exceeds an entry threshold value, sending the account information to all slave network disks so that all slave network disks update the account information of the slave network disks according to the account change information; and calculating a time difference value between the current time and the account synchronization time of at least one slave network disk, and sending all account information to all slave network disks when the time difference value is not less than a preset time difference value threshold value, so that all the slave network disks perform account comprehensive coverage according to all the account information. By setting the master network disk, the change or loss of the master data caused by modifying or deleting the slave data is avoided, and meanwhile, the flexibility of account change in the slave network disk is also ensured. Avoiding account data conflicts due to synchronization. Meanwhile, the file security problem caused by account synchronization is effectively avoided. And the account information among the network disks is ensured to be uniform in a timing coverage mode. The normal operation of the multi-network segment network disk is ensured.
On the basis of the above embodiments, the merging module includes:
the merging unit is used for extracting organization structure information corresponding to a changed account from the account change information and merging the changed accounts with the same hierarchical department in the organization structure information;
correspondingly, the encoding module comprises:
an acquisition unit configured to acquire hierarchical coding information of a minimum organization hierarchy;
the determining unit is used for determining the corresponding change flag bit code according to the change type;
the generating unit is used for generating account change information according to the change flag bit code and the account password information sequence;
and an arranging unit for arranging the account change information belonging to the minimum organizational hierarchy after the hierarchy coding information.
On the basis of the above embodiments, the apparatus further includes:
the receiving module is used for receiving the account newly-added information of the slave network disk sent by the slave network disk and extracting the organization information of the newly-added account from the account newly-added information of the slave network disk;
a judging module, configured to judge whether the organization information exists in an organization framework;
the repeated judging module judges whether the newly added account is repeated with the existing account or not if the newly added account exists in the organization structure;
and the temporary account establishing module is used for establishing a temporary account for the newly added account when the account is not repeated.
On the basis of the above embodiments, the apparatus further includes:
and the temporary information sending module is used for sending the temporary account information to other slave network disks so that the other slave network disks generate other slave network disk accounts according to the temporary account information.
On the basis of the above embodiments, the apparatus further includes:
and the temporary account deleting module is used for deleting the temporary account and sending the deleted account information to all slave network disks.
On the basis of the foregoing embodiments, the receiving module includes:
the analysis unit is used for analyzing corresponding organization structure information from the slave network disk account newly added information;
the extracting unit is used for extracting minimum first-level department information and account information from the organizational structure information;
correspondingly, the judging module includes:
and the judging unit is used for judging whether the minimum level organization information exists in the organization framework or not.
On the basis of the foregoing embodiments, the account information further includes:
account permissions;
the judging module is used for judging whether the collaborator and the user are in the same organization and/or team through the network disk organization architecture;
correspondingly, the temporary account establishing module includes:
and the authorization unit is used for authorizing the temporary account according to the account authority of the common staff in the minimum level of organization information.
The multi-network segment network disk account synchronizing device provided by the embodiment of the invention can execute the multi-network segment network disk account synchronizing method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 5 is a structural diagram of a network disk according to a fifth embodiment of the present invention. Fig. 5 shows a block diagram of an exemplary mesh disk 12 suitable for use in implementing embodiments of the present invention. The mesh tray 12 shown in fig. 5 is only an example, and should not bring any limitation to the function and the use range of the embodiment of the present invention.
As shown in fig. 5, the network disk 12 is in the form of a general purpose computing device. The components of the mesh tray 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The mesh tray 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by the network disk 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache 32. The network disk 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination of which may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of embodiments of the invention as described.
The network disk 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the network disk 12, and/or with any device (e.g., network card, modem, etc.) that enables the network disk 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the network disk 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the network disk 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the network disk 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, to name a few.
The processing unit 16 executes programs stored in the system memory 28 to execute various functional applications and data processing, for example, to implement the multi-segment network disk account synchronization method provided by the embodiment of the present invention.
Example six
The sixth embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform any one of the multi-segment network disk account synchronization methods provided in the foregoing embodiments.
Computer storage media for embodiments of the present invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will appreciate that the present invention is not limited to the particular embodiments described herein, and that various obvious changes, rearrangements and substitutions will now be apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in some detail by the above embodiments, the invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the invention, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. A multi-network segment network disk account synchronization method is characterized by comprising the following steps:
searching account change information in a preset time period through a log, wherein the account change information comprises: adding account information, modifying account information and deleting account information;
when the items of the account change information exceed an item threshold value, merging and sorting the account change information based on an organization framework;
coding the combined and sorted account change information according to the corresponding coding information, account information and change flag bit of the minimum organizational hierarchy to generate an account change code;
sending account change codes to all slave network disks, so that all slave network disks decode the account change codes to obtain the account change information and update the account information per se;
calculating a time difference value between the current time and at least one slave network disk account synchronization time, generating account synchronization information when the time difference value is not less than a preset time difference value threshold, and sending the account synchronization information to all slave network disks, so that all the slave network disks analyze the account synchronization information, and carry out account comprehensive coverage according to an analysis result.
2. The method of claim 1, wherein the consolidating the account change information based on an organizational structure comprises:
extracting organization structure information corresponding to changed accounts from the account change information, and merging changed accounts with the same hierarchical department in the organization structure information;
coding the combined and sorted account change information according to the corresponding coding information, account information and change flag bit of the minimum organizational structure level to generate an account change code, comprising:
acquiring hierarchical coding information of a minimum organization hierarchy;
determining a corresponding change zone bit code according to the change type;
generating account change information according to the sequence of the change flag bit codes and the account password information;
arranging the account change information belonging to the minimum organizational hierarchy after the hierarchy-encoded information.
3. The method of claim 2, further comprising:
receiving the new information of the slave network disk accounts sent by the slave network disk, and extracting the organization information of the new accounts from the new information of the slave network disk accounts;
determining whether the organization information is present in an organization framework;
if the new account exists in the organization architecture, judging whether the new account is repeated with the existing account;
and when the new account is not repeated, establishing a temporary account for the newly added account.
4. The method of claim 3, further comprising:
and sending the temporary account information to other slave network disks so that the other slave network disks generate other slave network disk accounts according to the temporary account information.
5. The method of claim 4, wherein sending the account synchronization information to all slave network disks comprises:
and deleting the temporary account, and sending the deleted account information to all slave network disks.
6. The method according to claim 3, wherein the extracting organization information of the newly added account from the account newly added information of the network disk comprises:
analyzing corresponding organization architecture information from the network disk account newly added information;
extracting minimum first-level department information and account information from the organizational structure information;
correspondingly, the determining whether the organization information exists in the organization framework includes:
it is determined whether minimum level of organizational information exists in the organizational structure.
7. The method of claim 6, wherein the account information further comprises:
account permissions;
correspondingly, the establishing a temporary account for the newly added account includes:
and authorizing the temporary account according to the account authority of the common employee in the minimum level of organization information.
8. A multi-network segment network disk account synchronization device is characterized by comprising:
the searching module is used for searching account change information in a preset time period through logs, and the account change information comprises: adding account information, modifying account information and deleting account information;
the merging module is used for merging and sorting the account change information based on an organization structure when the entry of the account change information exceeds an entry threshold;
the coding module is used for coding the combined and sorted account change information according to the corresponding coding information, account information and change flag bit of the minimum organizational hierarchy to generate an account change code;
the updating module is used for sending the account change codes to all the slave network disks, so that all the slave network disks decode the account change codes to obtain the account change information and update the account information of the slave network disks;
and the synchronization module is used for calculating a time difference value between the current time and the account synchronization time of at least one slave network disk, generating account synchronization information when the time difference value is not less than a preset time difference value threshold, and sending the account synchronization information to all slave network disks, so that all the slave network disks analyze the account synchronization information, and carry out account comprehensive coverage according to an analysis result.
9. A mesh tray, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the multi-segment network disk account synchronization method of any of claims 1-7.
10. A storage medium containing computer-executable instructions for performing the multi-segment network disk account synchronization method of any of claims 1-7 when executed by a computer processor.
CN202210320963.4A 2022-03-30 2022-03-30 Multi-network-segment network disk account synchronization method and device, network disk and storage medium Active CN114416767B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210320963.4A CN114416767B (en) 2022-03-30 2022-03-30 Multi-network-segment network disk account synchronization method and device, network disk and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210320963.4A CN114416767B (en) 2022-03-30 2022-03-30 Multi-network-segment network disk account synchronization method and device, network disk and storage medium

Publications (2)

Publication Number Publication Date
CN114416767A CN114416767A (en) 2022-04-29
CN114416767B true CN114416767B (en) 2022-07-26

Family

ID=81263614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210320963.4A Active CN114416767B (en) 2022-03-30 2022-03-30 Multi-network-segment network disk account synchronization method and device, network disk and storage medium

Country Status (1)

Country Link
CN (1) CN114416767B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115167785B (en) * 2022-09-06 2023-01-06 天津联想协同科技有限公司 Label-based network disk file management method and device, network disk and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008203909A (en) * 2007-02-16 2008-09-04 Hitachi Software Eng Co Ltd Account managing system
CN107220809A (en) * 2017-05-26 2017-09-29 携程旅游信息技术(上海)有限公司 The method and system of change tissue based on Active Directory organizational structure
CN107277066A (en) * 2017-08-11 2017-10-20 中国银行股份有限公司 Account management method, portable electric appts and account management system
CN109194711A (en) * 2018-07-27 2019-01-11 腾讯科技(深圳)有限公司 A kind of synchronous method of organizational structure, client, server-side and medium
CN109656921A (en) * 2018-11-26 2019-04-19 平安科技(深圳)有限公司 Organizational structure data processing method, device, computer equipment and storage medium
CN110414771A (en) * 2019-06-04 2019-11-05 腾讯科技(深圳)有限公司 Update method, device, server and the client of enterprise organization structure data
CN112686745A (en) * 2020-12-24 2021-04-20 平安信托有限责任公司 Financial account change processing method and device, computer equipment and storage medium
CN113872994A (en) * 2020-06-30 2021-12-31 腾讯科技(深圳)有限公司 Organization architecture synchronization method, device, computer equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008203909A (en) * 2007-02-16 2008-09-04 Hitachi Software Eng Co Ltd Account managing system
CN107220809A (en) * 2017-05-26 2017-09-29 携程旅游信息技术(上海)有限公司 The method and system of change tissue based on Active Directory organizational structure
CN107277066A (en) * 2017-08-11 2017-10-20 中国银行股份有限公司 Account management method, portable electric appts and account management system
CN109194711A (en) * 2018-07-27 2019-01-11 腾讯科技(深圳)有限公司 A kind of synchronous method of organizational structure, client, server-side and medium
CN109656921A (en) * 2018-11-26 2019-04-19 平安科技(深圳)有限公司 Organizational structure data processing method, device, computer equipment and storage medium
CN110414771A (en) * 2019-06-04 2019-11-05 腾讯科技(深圳)有限公司 Update method, device, server and the client of enterprise organization structure data
CN113872994A (en) * 2020-06-30 2021-12-31 腾讯科技(深圳)有限公司 Organization architecture synchronization method, device, computer equipment and storage medium
CN112686745A (en) * 2020-12-24 2021-04-20 平安信托有限责任公司 Financial account change processing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN114416767A (en) 2022-04-29

Similar Documents

Publication Publication Date Title
CN110414268B (en) Access control method, device, equipment and storage medium
CN110188103A (en) Data account checking method, device, equipment and storage medium
CN103914439A (en) Method, device and system for online document edition
US20060265375A1 (en) Masking object data based on user authorization
CN114416767B (en) Multi-network-segment network disk account synchronization method and device, network disk and storage medium
CN111401029A (en) Document version updating system and method based on document partition and collaborative editing
CN108718307B (en) Behavior tracing detection method for internal threats under IaaS cloud environment
CN109460400B (en) System and method for establishing safety baseline library of power monitoring system
WO2023005862A1 (en) Data governance apparatus and method, computer device, and storage medium
CN112818305A (en) Data access control method and device for resource guarantee investment and electronic equipment
CN112329043A (en) Information encryption processing method, device, computer equipment and medium
CN113886339B (en) Method and device for selecting out-link file, network disk and storage medium
CN111767574A (en) User permission determining method and device, electronic equipment and readable storage medium
CN115130130B (en) Network disk file unlocking method and device, network disk and storage medium
CN105718499A (en) Geological data cleaning method and system
CN115098889B (en) Authority management method, device, equipment and storage medium
KR101415528B1 (en) Apparatus and Method for processing data error for distributed system
CN115408358A (en) Network disk online file management method and device, network disk and storage medium
CN115033625A (en) Enterprise business data docking method and device and electronic equipment
CN112002130B (en) Data management method, device, server and computer readable storage medium
CN114942912A (en) Network disk file collection method and device, network disk and storage medium
CN112448972B (en) Data exchange and sharing platform
CN114021192A (en) File management system based on block chain
CN109697167B (en) Method and system for managing test variables, electronic device and storage medium
CN115114670B (en) File unlocking method and device based on external link, network disk and storage medium

Legal Events

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