CN106789315B - System configuration method and device - Google Patents
System configuration method and device Download PDFInfo
- Publication number
- CN106789315B CN106789315B CN201611264607.6A CN201611264607A CN106789315B CN 106789315 B CN106789315 B CN 106789315B CN 201611264607 A CN201611264607 A CN 201611264607A CN 106789315 B CN106789315 B CN 106789315B
- Authority
- CN
- China
- Prior art keywords
- configuration
- current
- user
- identifier
- authority
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0889—Techniques to speed-up the configuration process
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0823—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
- H04L41/0826—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability for reduction of network costs
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses a system configuration method and a system configuration device, wherein the method comprises the following steps: determining a current request user according to a current login request; determining current user data according to the corresponding relation between the user and the user data; determining a current tag identification corresponding to the current configuration identification according to the corresponding relation between the configuration identification and the tag identification; acquiring a configuration fragment according to the current configuration fragment access address; receiving a configuration identifier updating instruction; taking the target configuration identifier in the configuration identifier updating instruction as a new current configuration identifier, and returning to the step of determining the current tag identifier corresponding to the current configuration identifier; and when the number of the acquired configuration segments is equal to the number of each configuration identifier of the current requesting user, performing system configuration on the current requesting user according to the authority configuration item of the acquired configuration segments. The system configuration process is simple, the configuration fragment is searched accurately and quickly, the system configuration cost is reduced, the system configuration efficiency is improved, and the working intensity of system management personnel is reduced.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a system configuration method and apparatus.
Background
At present, with the rapid development of information technology and network technology, more and more application systems are used, and users must perform system configuration according to the corresponding system identities before using the application systems. However, the conventional system configuration needs to spend a lot of time to search the corresponding configuration segment in the configuration file of the application system plan, the system configuration cost is high, the efficiency is low, and the working intensity of the system management personnel is increased.
Disclosure of Invention
Therefore, it is necessary to provide a system configuration method and apparatus for solving the problems of high cost, low efficiency and increased work intensity of system administrators in the conventional system configuration.
In order to achieve the above purpose, the embodiment of the technical scheme of the invention is as follows:
a system configuration method, comprising the steps of:
determining a current request user according to a current login request;
determining current user data corresponding to the current requesting user according to a pre-stored corresponding relationship between the user and the user data, wherein the current user data comprises each configuration identifier and a current configuration identifier for the current requesting user to perform system configuration;
determining a current label identifier corresponding to the current configuration identifier according to a corresponding relation between a pre-stored configuration identifier and the label identifier, wherein the current label identifier comprises a current configuration segment access address;
acquiring a configuration fragment according to the current configuration fragment access address;
receiving a configuration identifier updating instruction, wherein the configuration identifier updating instruction comprises a target configuration identifier, and the target configuration identifier is any one of the configuration identifiers of the current requesting user except the current configuration identifier;
taking the target configuration identifier as a new current configuration identifier, and when the number of the acquired configuration segments is smaller than the number of each configuration identifier of the current request user, returning to the step of determining the current tag identifier corresponding to the current configuration identifier according to the corresponding relationship between the pre-stored configuration identifier and the tag identifier;
and when the number of the acquired configuration segments is equal to the number of each configuration identifier of the current requesting user, performing system configuration on the current requesting user according to the authority configuration item of the acquired configuration segments.
A system configuration apparatus, comprising:
the current request user determining module is used for determining a current request user according to a current login request;
a current user data determining module, configured to determine current user data corresponding to the current requesting user according to a pre-stored correspondence between users and user data, where the current user data includes each configuration identifier and a current configuration identifier for performing system configuration by the current requesting user;
a current tag identification determining module, configured to determine, according to a pre-stored correspondence between a configuration identifier and a tag identifier, a current tag identifier corresponding to the current configuration identifier, where the current tag identifier includes a current configuration segment access address;
a configuration segment obtaining module, configured to obtain a configuration segment according to the current configuration segment access address;
an instruction receiving module, configured to receive a configuration identifier update instruction, where the configuration identifier update instruction includes a target configuration identifier, and the target configuration identifier is any one of the configuration identifiers of the current requesting user except the current configuration identifier;
a configuration identifier updating module, configured to use the target configuration identifier as a new current configuration identifier, and when the number of the obtained configuration segments is smaller than the number of each configuration identifier of the current requesting user, return to the current tag identifier determining module;
and the system configuration module is used for performing system configuration on the current requesting user according to the authority configuration item of the acquired configuration segment when the number of the acquired configuration segments is equal to the number of each configuration identifier of the current requesting user.
Compared with the prior art, the invention has the beneficial effects that: the system configuration method and the device of the invention determine the current request user according to the current login request; determining current user data corresponding to the current request user according to the corresponding relation between the pre-stored user and the user data; determining a current label identifier corresponding to the current configuration identifier according to the corresponding relation between the pre-stored configuration identifier and the label identifier; acquiring a configuration fragment according to a current configuration fragment access address in a current label identifier; receiving a configuration identifier updating instruction, taking a target configuration identifier in the configuration identifier updating instruction as a new current configuration identifier, and when the number of the acquired configuration segments is less than the number of each configuration identifier of a current request user, returning to the step of determining a current tag identifier corresponding to the current configuration identifier according to the corresponding relationship between the pre-stored configuration identifier and the tag identifier; and when the number of the acquired configuration segments is equal to the number of each configuration identifier of the current requesting user, performing system configuration on the current requesting user according to the authority configuration item of the acquired configuration segments. According to the invention, the current label identification corresponding to the current request user is determined according to the pre-stored corresponding relationship between the user and the user data and the corresponding relationship between the configuration identification and the label identification, the configuration fragment is further obtained according to the current configuration fragment access address in the current label identification, and finally the system configuration is carried out on the current request user according to the obtained configuration fragment.
Drawings
FIG. 1 is a flow diagram of a system configuration method in one embodiment;
FIG. 2 is a flow chart of a system configuration method based on one specific example of the method shown in FIG. 1;
FIG. 3 is a block diagram of a system configuration apparatus according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the detailed description and specific examples, while indicating the scope of the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
The system configuration method in one embodiment, as shown in fig. 1, includes the following steps:
step S101: determining a current request user according to a current login request;
here, a current requesting user role corresponding to the current login request is determined according to a pre-stored correspondence between the login request and the user.
Step S102: determining current user data corresponding to the current requesting user according to a pre-stored corresponding relationship between the user and the user data, wherein the current user data comprises each configuration identifier and a current configuration identifier for the current requesting user to perform system configuration;
specifically, the user-user data correspondence is stored in a user storage (such as a database DB or a user Directory LDAP (Lightweight Directory Access Protocol)), and the user data includes a current configuration identifier for identifying a user configuration condition and each configuration identifier for performing system configuration by the user.
Step S103: determining a current label identifier corresponding to the current configuration identifier according to a corresponding relation between a pre-stored configuration identifier and the label identifier, wherein the current label identifier comprises a current configuration segment access address;
here, the configuration identifier and the tag identifier have a unique mapping relationship, and the current tag identifier corresponding to the current configuration identifier can be directly determined. For example, the configuration identifier is a/B/C/D, the tag identifier is tab-0/1/2/3, the configuration identifier and tag identifier correspondence relationship is a tab-0 corresponding to a, a tab-1 corresponding to B, a tab-2 corresponding to C, and a tab-3 corresponding to D.
Specifically, each tag identification has a unique address access configuration fragment, such as http:// url/config? tab 1 may access the configuration fragment corresponding to the tag identification tab 1.
Step S104: acquiring a configuration fragment according to the current configuration fragment access address;
here, the configuration fragment under the current configuration fragment access address is entered directly.
Step S105: receiving a configuration identifier updating instruction, wherein the configuration identifier updating instruction comprises a target configuration identifier, and the target configuration identifier is any one of the configuration identifiers of the current requesting user except the current configuration identifier;
specifically, the client sends a configuration identifier update instruction, foreground data is packaged and then sent to the background for storage, and meanwhile, the configuration identifier is modified, for example, a- > B, where a is the current configuration identifier and B is the target configuration identifier.
Here, the target configuration identifier is any one of the configuration identifiers of the current requesting user that has not been processed in the above steps S103 to S104, for example, each configuration identifier of the current requesting user includes a/B/C, and if the current configuration identifier is a, the target configuration identifier is B or C.
Step S106: taking the target configuration identifier as a new current configuration identifier, and returning to the step S103 when the number of the acquired configuration segments is less than the number of each configuration identifier of the current requesting user;
specifically, the target configuration identifier is used as a new current configuration identifier, and the above steps S103 to S104 are repeated.
Step S107: and when the number of the acquired configuration segments is equal to the number of each configuration identifier of the current requesting user, performing system configuration on the current requesting user according to the authority configuration item of the acquired configuration segments.
Here, when the number of the configuration segments obtained by repeating the above steps S103 to S104 is equal to the number of the configuration identifiers of the current requesting user, the obtaining of the configuration segments is stopped, and the system configuration is performed on the current requesting user according to the authority configuration item of the obtained configuration segments.
As can be seen from the above description, in the system configuration method of the present invention, the current tag identifier corresponding to the current requesting user is determined according to the pre-stored corresponding relationship between the user and the user data and the corresponding relationship between the configuration identifier and the tag identifier, the configuration fragment is further obtained according to the current configuration fragment access address in the current tag identifier, and finally, the system configuration is performed on the current requesting user according to the obtained configuration fragment.
In addition, in a specific example, the manner of configuring the current requesting user according to the acquired permission configuration item of the configuration fragment includes:
determining the authority configuration item of the current user authority configuration segment corresponding to the current request user according to the user and the authority configuration item of each user authority configuration segment in a pre-stored user authority configuration file and the current request user;
and modifying the authority configuration item of the current user authority configuration fragment according to the acquired authority configuration item of the configuration fragment.
Here, the user authority configuration file is stored in a preset structured document format, for example, an xml document format.
Specifically, firstly, finding an authority configuration item corresponding to the acquired authority configuration item of the configuration fragment in the authority configuration item of the current user authority configuration fragment;
judging whether the found authority configuration item is the same as the authority configuration item of the acquired configuration fragment;
and when the judgment is different, modifying the found authority configuration item according to the acquired authority configuration item of the configuration fragment.
In addition, in a specific example, the manner of determining the permission configuration item of the current user permission configuration segment corresponding to the current requesting user includes:
according to the user of each user permission configuration segment, acquiring a current user permission configuration segment corresponding to the current request user in each user permission configuration segment;
and determining the authority configuration item of the current user authority configuration segment according to the authority configuration item of each user authority configuration segment.
Here, the current requesting user is matched with the users in each user authority configuration segment in the user authority configuration file, and after the matching is passed, the current user authority configuration segment corresponding to the current requesting user is obtained.
Specifically, the manner of obtaining the current user permission configuration segment corresponding to the current requesting user includes:
determining the user level of the current request user and the user level of each user permission configuration segment user according to the corresponding relation between the pre-stored user and the user level;
and acquiring a current user permission configuration segment corresponding to the current request user in each user permission configuration segment according to the user grade of each user permission configuration segment user, wherein the current user permission configuration segment is a user permission configuration segment corresponding to a user with the user grade smaller than or equal to the current request user.
In addition, in a specific example, each user permission configuration segment further includes an operation attribute;
the method for configuring the current request user according to the acquired permission configuration item of the configuration fragment further comprises the following steps:
determining the operation attribute of the current user authority configuration fragment according to the operation attribute of each user authority configuration fragment;
judging whether the operation attribute of the current user authority configuration segment is read-write;
and when the operation attribute of the current user permission configuration fragment is judged to be read-write, the step of modifying the permission configuration item of the current user permission configuration fragment according to the acquired permission configuration item of the configuration fragment is carried out.
Specifically, when the operation attribute of the current user permission configuration segment is read-write or read-only, the permission configuration item of the current user permission configuration segment is modified according to the acquired permission configuration item of the configuration segment, otherwise, the modification is stopped.
Here, the permission configuration item and the operation attribute hook prevent a user with low permission from accessing important configuration information, and simultaneously prevent the user with low permission from tampering the important configuration information, so that the configuration information is configurable and protected with a larger degree of freedom, and the requirement of multi-user/multi-tenant scene application is met.
Further, in one particular example, the current login request includes a login username and a login password;
the method for determining the current requesting user according to the current login request comprises the following steps:
and determining the current requesting user corresponding to the login user name and the login password according to the corresponding relation between the pre-stored user name and password and the user.
Here, the corresponding relationship between the user name and password and the user is prestored, the current requesting user is determined according to the login user name and login password, and when the login user name and login password are not in the corresponding relationship, the operation is terminated.
In order to better understand the above method, an application example of the system configuration method of the present invention is described in detail below.
As shown in fig. 2, the following steps may be included:
step S201: after the system configuration file is read in, the configuration file is analyzed into a specific data structure, and the specific data structure is placed under different tags in a classified manner, that is, the access addresses of different configuration fragments are placed under different tags, for example, the access address of a configuration fragment common to the system is placed under a tag with a tag identification of tab ═ 0, the access address of a common configuration fragment is placed under a tag with a tag identification of tab ═ 2, and so on;
here, the system configuration file is a readable and writable text file, and a system Parser (Parser) may be used to parse the system configuration file.
The user authority configuration files can be classified according to the importance, high level and low level of the configuration fragments.
Specifically, a configuration fragment access address common to the system, such as http:// url/config? Configuration fragment corresponding to tab 1-accessible tag identification tab 0
Step S202: and establishing a mapping relationship between the configuration identifier and the tag identifier, for example, the configuration identifier is a/B/C/D, the tag identifier is tab 0/1/2/3, the configuration identifier and tag identifier corresponding relationship is that tab corresponding to a is 0, tab corresponding to B is 1, tab corresponding to C is 2, and tab corresponding to D is 3.
Step S203: receiving a current login request sent by a client, wherein the current login request comprises a login user name and a login password;
step S204: determining a current request user according to a current login request;
specifically, according to the correspondence between the pre-stored user name and password and the user, the current requesting user corresponding to the login user name and the login password is determined.
Step S205: determining current user data corresponding to a current request user according to a pre-stored corresponding relationship between the user and the user data, wherein the current user data comprises various configuration identifications and current configuration identifications for the current request user to carry out system configuration;
specifically, the user-user data correspondence is stored in a user store (such as a database DB or a user directory LDAP), and the user data includes a current configuration identifier for identifying a user configuration condition and each configuration identifier for performing system configuration by the user.
Step S206: determining a current tag identifier corresponding to the current configuration identifier according to the corresponding relationship between the configuration identifier and the tag identifier established in the step S202, where the current tag identifier includes a current configuration segment access address;
step S207: obtaining a configuration fragment according to the current configuration fragment access address;
here, the configuration fragment under the current configuration fragment access address is entered directly.
Step S208: receiving a configuration identifier updating instruction sent by a client, wherein the configuration identifier updating instruction comprises a target configuration identifier, and the target configuration identifier is any one of the configuration identifiers of the current requesting user except the current configuration identifier;
specifically, the client sends a configuration identifier update instruction, foreground data is packaged and then sent to the background for storage, and meanwhile, the configuration identifier is modified, for example, a- > B, where a is the current configuration identifier and B is the target configuration identifier.
Here, the target configuration identifier is any one of the configuration identifiers of the current requesting user that has not been processed in the above steps S209 to S210, for example, the configuration identifiers of the current requesting user include a/B/C, and if the current configuration identifier is a, the target configuration identifier is B or C.
Step S209: taking the target configuration identifier as a new current configuration identifier, and returning to the step S206 when the number of the acquired configuration segments is less than the number of each configuration identifier of the current requesting user;
step S210: and when the number of the acquired configuration segments is equal to the number of each configuration identifier of the current requesting user, performing system configuration on the current requesting user according to the authority configuration item of the acquired configuration segments.
Here, when the number of the configuration segments obtained by repeating the above steps S206 to S207 is equal to the number of the configuration identifiers of the current requesting user, the obtaining of the configuration segments is stopped, and the system configuration is performed on the current requesting user according to the authority configuration item of the obtained configuration segments.
Specifically, the method for configuring the current requesting user according to the acquired permission configuration item of the configuration fragment includes:
acquiring a current user authority configuration segment corresponding to a current request user from each user authority configuration segment according to the user of each user authority configuration segment in a pre-stored user authority configuration file;
determining the authority configuration item of the current user authority configuration segment according to the authority configuration item of each user authority configuration segment;
determining the operation attribute of the current user authority configuration fragment according to the operation attribute of each user authority configuration fragment;
judging whether the operation attribute of the current user authority configuration segment is read-write;
and when the operation attribute of the current user permission configuration fragment is judged to be read-write, modifying the permission configuration item of the current user permission configuration fragment according to the acquired permission configuration item of the configuration fragment.
Here, the permission configuration item and the operation attribute hook prevent a user with low permission from accessing important configuration information, and simultaneously prevent the user with low permission from tampering the important configuration information, so that the configuration information is configurable and protected with a larger degree of freedom, and the requirement of multi-user/multi-tenant scene application is met.
As can be seen from the above description, the present embodiment determines the current requesting user according to the current login request; determining current user data corresponding to the current request user according to the corresponding relation between the pre-stored user and the user data; determining a current label identifier corresponding to the current configuration identifier according to the corresponding relation between the pre-stored configuration identifier and the label identifier; acquiring a configuration fragment according to a current configuration fragment access address in a current label identifier; receiving a configuration identifier updating instruction, taking a target configuration identifier in the configuration identifier updating instruction as a new current configuration identifier, and returning to the step of determining a current tag identifier corresponding to the current configuration identifier according to the corresponding relationship between the pre-stored configuration identifier and the tag identifier; and when the number of the acquired configuration segments is equal to the number of each configuration identifier of the current requesting user, performing system configuration on the current requesting user according to the authority configuration item of the acquired configuration segments. According to the embodiment, the current tag identification corresponding to the current request user is determined according to the pre-stored corresponding relationship between the user and the user data and the corresponding relationship between the configuration identification and the tag identification, the configuration fragment is further obtained according to the current configuration fragment access address in the current tag identification, and finally the system configuration is performed on the current request user according to the obtained configuration fragment.
The system configuration apparatus in one embodiment, as shown in fig. 3, includes:
a current requesting user determining module 301, configured to determine a current requesting user according to a current login request;
a current user data determining module 302, configured to determine, according to a pre-stored correspondence between a user and user data, current user data corresponding to the current requesting user, where the current user data includes each configuration identifier and a current configuration identifier for performing system configuration by the current requesting user;
a current tag identifier determining module 303, configured to determine, according to a pre-stored correspondence between a configuration identifier and a tag identifier, a current tag identifier corresponding to the current configuration identifier, where the current tag identifier includes a current configuration segment access address;
a configuration segment obtaining module 304, configured to obtain a configuration segment according to the current configuration segment access address;
an instruction receiving module 305, configured to receive a configuration identifier update instruction, where the configuration identifier update instruction includes a target configuration identifier, and the target configuration identifier is any one of the configuration identifiers of the current requesting user except for the current configuration identifier;
a configuration identifier updating module 306, configured to use the target configuration identifier as a new current configuration identifier, and when the number of the obtained configuration segments is smaller than the number of each configuration identifier of the current requesting user, return to the current tag identifier determining module 303;
a system configuration module 307, configured to perform system configuration on the current requesting user according to the permission configuration item of the acquired configuration segment when the number of the acquired configuration segments is equal to the number of each configuration identifier of the current requesting user.
As shown in fig. 3, in a specific embodiment, the system configuration module 307 includes:
an authority configuration item determining unit 3071, configured to determine, according to the user and the authority configuration item of each user authority configuration segment in the pre-stored user authority configuration file, and the current requesting user, an authority configuration item of the current user authority configuration segment corresponding to the current requesting user;
the system configuration unit 3072 is configured to modify the authority configuration item of the current user authority configuration fragment according to the acquired authority configuration item of the configuration fragment.
As shown in fig. 3, in a specific embodiment, the authority configuration item determination unit 3071 includes:
a current user authority configuration segment obtaining subunit 30711, configured to obtain, according to the user of each user authority configuration segment, a current user authority configuration segment corresponding to the current requesting user in each user authority configuration segment;
an authority configuration item determining subunit 30712, configured to determine, according to the authority configuration item of each user authority configuration segment, an authority configuration item of the current user authority configuration segment.
In addition, in a specific example, each user permission configuration segment further includes an operation attribute;
as shown in fig. 3, in a specific embodiment, the system configuration module 307 further includes:
an operation attribute determining unit 3073, configured to determine an operation attribute of the current user permission configuration segment according to an operation attribute of each user permission configuration segment;
an operation attribute determining unit 3074, configured to determine whether the operation attribute of the current user permission configuration segment is read-write;
when the operation attribute of the current user permission configuration segment is determined to be read-write, the system configuration unit 3072 modifies the permission configuration item of the current user permission configuration segment according to the acquired permission configuration item of the configuration segment.
Further, in one particular example, the current login request includes a login username and a login password;
the current requesting user determining module 301 determines a current requesting user corresponding to the login user name and the login password according to a correspondence between a pre-stored user name and password and a user.
As can be seen from the above description, according to the system configuration device of the present invention, the current tag identifier corresponding to the current requesting user is determined according to the pre-stored corresponding relationship between the user and the user data and the corresponding relationship between the configuration identifier and the tag identifier, the configuration fragment is further obtained according to the current configuration fragment access address in the current tag identifier, and finally, the system configuration is performed on the current requesting user according to the obtained configuration fragment.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A system configuration method, comprising the steps of:
determining a current user requesting the login according to a corresponding relation between a prestored login request and a user and a current login request;
determining current user data corresponding to the current requesting user according to a pre-stored corresponding relationship between the user and the user data, wherein the current user data comprises each configuration identifier and a current configuration identifier for the current requesting user to perform system configuration;
determining a current label identifier corresponding to the current configuration identifier according to a corresponding relation between a pre-stored configuration identifier and the label identifier, wherein the current label identifier comprises a current configuration segment access address;
acquiring a configuration fragment according to the current configuration fragment access address;
receiving a configuration identifier updating instruction, wherein the configuration identifier updating instruction comprises a target configuration identifier, and the target configuration identifier is any one of the configuration identifiers of the current requesting user except the current configuration identifier;
taking the target configuration identifier as a new current configuration identifier, and when the number of the acquired configuration segments is smaller than the number of each configuration identifier of the current request user, returning to the step of determining the current tag identifier corresponding to the current configuration identifier according to the corresponding relationship between the pre-stored configuration identifier and the tag identifier;
and when the number of the acquired configuration segments is equal to the number of each configuration identifier of the current requesting user, performing system configuration on the current requesting user according to the authority configuration item of the acquired configuration segments.
2. The system configuration method according to claim 1, wherein the manner of configuring the current requesting user according to the acquired permission configuration item of the configuration fragment comprises:
determining the authority configuration item of the current user authority configuration segment corresponding to the current request user according to the user and the authority configuration item of each user authority configuration segment in a pre-stored user authority configuration file and the current request user;
and modifying the authority configuration item of the current user authority configuration fragment according to the acquired authority configuration item of the configuration fragment.
3. The system configuration method according to claim 2, wherein the manner of determining the permission configuration item of the current user permission configuration segment corresponding to the current requesting user comprises:
according to the user of each user permission configuration segment, acquiring a current user permission configuration segment corresponding to the current request user in each user permission configuration segment;
and determining the authority configuration item of the current user authority configuration segment according to the authority configuration item of each user authority configuration segment.
4. The system configuration method according to claim 2 or 3, wherein each of the user right configuration segments further comprises an operation attribute;
the method for configuring the current request user according to the acquired permission configuration item of the configuration fragment further comprises the following steps:
determining the operation attribute of the current user authority configuration fragment according to the operation attribute of each user authority configuration fragment;
judging whether the operation attribute of the current user authority configuration segment is read-write;
and when the operation attribute of the current user permission configuration fragment is judged to be read-write, the step of modifying the permission configuration item of the current user permission configuration fragment according to the acquired permission configuration item of the configuration fragment is carried out.
5. The system configuration method according to claim 1, wherein the current login request includes a login user name and a login password;
the method for determining the current requesting user according to the current login request comprises the following steps:
and determining the current requesting user corresponding to the login user name and the login password according to the corresponding relation between the pre-stored user name and password and the user.
6. A system configuration apparatus, comprising:
the current request user determining module is used for determining a current request user according to the corresponding relation between the pre-stored login request and the user and the current login request;
a current user data determining module, configured to determine current user data corresponding to the current requesting user according to a pre-stored correspondence between users and user data, where the current user data includes each configuration identifier and a current configuration identifier for performing system configuration by the current requesting user;
a current tag identification determining module, configured to determine, according to a pre-stored correspondence between a configuration identifier and a tag identifier, a current tag identifier corresponding to the current configuration identifier, where the current tag identifier includes a current configuration segment access address;
a configuration segment obtaining module, configured to obtain a configuration segment according to the current configuration segment access address;
an instruction receiving module, configured to receive a configuration identifier update instruction, where the configuration identifier update instruction includes a target configuration identifier, and the target configuration identifier is any one of the configuration identifiers of the current requesting user except the current configuration identifier;
a configuration identifier updating module, configured to use the target configuration identifier as a new current configuration identifier, and when the number of the obtained configuration segments is smaller than the number of each configuration identifier of the current requesting user, return to the current tag identifier determining module;
and the system configuration module is used for performing system configuration on the current requesting user according to the authority configuration item of the acquired configuration segment when the number of the acquired configuration segments is equal to the number of each configuration identifier of the current requesting user.
7. The system configuration apparatus of claim 6, wherein the system configuration module comprises:
the permission configuration item determining unit is used for determining the permission configuration item of the current user permission configuration segment corresponding to the current requesting user according to the user and the permission configuration item of each user permission configuration segment in the pre-stored user permission configuration file and the current requesting user;
and the system configuration unit is used for modifying the authority configuration item of the current user authority configuration fragment according to the acquired authority configuration item of the configuration fragment.
8. The system configuration apparatus according to claim 7, wherein the authority configuration item determination unit includes:
a current user authority configuration segment obtaining subunit, configured to obtain, according to the user of each user authority configuration segment, a current user authority configuration segment corresponding to the current requesting user in each user authority configuration segment;
and the authority configuration item determining subunit is used for determining the authority configuration item of the current user authority configuration segment according to the authority configuration item of each user authority configuration segment.
9. The system configuration apparatus according to claim 7 or 8, wherein each of the user right configuration segments further comprises an operation attribute;
the system configuration module further comprises:
an operation attribute determining unit, configured to determine an operation attribute of the current user permission configuration segment according to an operation attribute of each user permission configuration segment;
an operation attribute judging unit, configured to judge whether an operation attribute of the current user permission configuration segment is read-write;
and when the operation attribute of the current user permission configuration fragment is judged to be read-write, the system configuration unit modifies the permission configuration item of the current user permission configuration fragment according to the acquired permission configuration item of the configuration fragment.
10. The system configuration apparatus according to claim 6, wherein the current login request includes a login user name and a login password;
and the current request user determining module determines the current request user corresponding to the login user name and the login password according to the corresponding relation between the pre-stored user name and password and the user.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611264607.6A CN106789315B (en) | 2016-12-30 | 2016-12-30 | System configuration method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611264607.6A CN106789315B (en) | 2016-12-30 | 2016-12-30 | System configuration method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106789315A CN106789315A (en) | 2017-05-31 |
CN106789315B true CN106789315B (en) | 2020-02-14 |
Family
ID=58951716
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611264607.6A Active CN106789315B (en) | 2016-12-30 | 2016-12-30 | System configuration method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106789315B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113626873B (en) * | 2021-10-12 | 2022-05-06 | 北京金山云网络技术有限公司 | Authentication method, device, electronic equipment and computer readable medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1967560A (en) * | 2006-11-09 | 2007-05-23 | 华为技术有限公司 | Controlling method of business operations competence and generating method of relational database |
CN101312396A (en) * | 2007-05-24 | 2008-11-26 | 中兴通讯股份有限公司 | Electronic workform management system and resource authority control method thereof |
WO2012119423A1 (en) * | 2011-08-29 | 2012-09-13 | 华为技术有限公司 | Method and device for automatically migrating system configuration item |
CN103617381A (en) * | 2013-11-21 | 2014-03-05 | 北京奇虎科技有限公司 | Permission configuration method and permission configuration system of equipment |
CN104243565A (en) * | 2014-09-04 | 2014-12-24 | 华为软件技术有限公司 | Method and device for obtaining configuration data |
CN105893075A (en) * | 2015-12-28 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Update method and device of application |
-
2016
- 2016-12-30 CN CN201611264607.6A patent/CN106789315B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1967560A (en) * | 2006-11-09 | 2007-05-23 | 华为技术有限公司 | Controlling method of business operations competence and generating method of relational database |
CN101312396A (en) * | 2007-05-24 | 2008-11-26 | 中兴通讯股份有限公司 | Electronic workform management system and resource authority control method thereof |
WO2012119423A1 (en) * | 2011-08-29 | 2012-09-13 | 华为技术有限公司 | Method and device for automatically migrating system configuration item |
CN103617381A (en) * | 2013-11-21 | 2014-03-05 | 北京奇虎科技有限公司 | Permission configuration method and permission configuration system of equipment |
CN104243565A (en) * | 2014-09-04 | 2014-12-24 | 华为软件技术有限公司 | Method and device for obtaining configuration data |
CN105893075A (en) * | 2015-12-28 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Update method and device of application |
Also Published As
Publication number | Publication date |
---|---|
CN106789315A (en) | 2017-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109951435B (en) | Equipment identifier providing method and device and risk control method and device | |
CN110856126B (en) | Information reporting and receiving method, terminal equipment and storage medium | |
CN107943949B (en) | Method and server for determining web crawler | |
CN109462601B (en) | Multi-platform access method and device based on eSIM | |
CN106790262B (en) | Authentication method and device | |
CN109800560B (en) | Equipment identification method and device | |
CN103973651A (en) | Account password identification setting and inquiring method and device based on salt password bank | |
US11244153B2 (en) | Method and apparatus for processing information | |
CN110868763A (en) | Method, device and system for establishing Bluetooth connection | |
CN111177776A (en) | Multi-tenant data isolation method and system | |
CN111159595A (en) | Page loading method, system, computer equipment and computer readable storage medium | |
CN108763396B (en) | Access request processing method, device, computer equipment and storage medium | |
US9160807B2 (en) | System and method for deriving a name for association with a device | |
CN106789315B (en) | System configuration method and device | |
CN105718599A (en) | Method and device for analyzing database access data packet | |
CN112052267B (en) | Data query method, equipment, server and storage medium | |
CN110020040B (en) | Method, device and system for querying data | |
CN110611591B (en) | Network topology establishing method and device | |
CN108009785B (en) | Attendance checking method and device | |
CN110704498A (en) | Data extraction method, device, equipment and computer readable storage medium | |
CN109067542B (en) | Token generation method, and tracking method and device based on Token | |
CN106507224B (en) | Method and related device for acquiring target file | |
CN104407846B (en) | Information processing method and device | |
CN105279233A (en) | Resource retrieving method and device | |
CN106612515B (en) | Terminal APN synchronization method, device and system |
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 |