Access control method and device

By receiving authentication requests in network security devices and sending them to authentication servers for authentication, network access control is performed based on user group information, the problem of frequent policy configuration of multiple individual users is solved, and resource saving and access speed are improved.

CN115580456BActive Publication Date: 2024-11-01NEW H3C SECURITY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211181100.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-27
Publication Date
2024-11-01
Estimated Expiration
2042-09-27

AI Technical Summary

Technical Problem

In the case of multiple individual users, network access control requires frequent authentication and security policy configuration, resulting in cumbersome operational processes.

Method used

By receiving an authentication request, sending it to the authentication server for authentication, and after the authentication is successful, network access control is performed based on user group information, avoiding the configuration of security policies for each user separately.

Benefits of technology

Through user group management, the processing resources of network security equipment are saved, the user's network access speed is improved, and the configuration of network operation and maintenance personnel is simplified.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115580456B_ABST
    Figure CN115580456B_ABST
Patent Text Reader

Abstract

The present application provides an access control method and device, which relates to the field of network security technology. In the method, an authentication request is received, the authentication request includes user information of an access user; the authentication request is sent to an authentication server; an authentication result sent by the authentication server is received, the authentication result is sent by the authentication server after the access user is authenticated based on the user information; if the authentication result includes user group information of the access user, and the network security device has a user group corresponding to the user group information locally, the network access of the access user is controlled according to the user group. Thus, the problem of frequent policy configuration of network access after the user goes online is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security technology, and in particular to an access control method and device. Background Art

[0002] At present, when a user accesses the network based on identity recognition, first, after the user accesses the network, the network device such as the firewall will complete the identity verification of the user. After the verification is successful, the user becomes an online user, and the device will record the login information of the user who has passed the identity verification; in this way, when the online user accesses the network service, the above network device can identify the user's login information, and then configure the user's security policy based on the login information, and then use the configured security policy to control the user's network access rights.

[0003] However, in the above scheme, when a user goes online, he / she is considered an individual user in the network. When the user performs network access control again, the steps of identity authentication and security policy configuration need to be performed again. When there are many individual users, access control becomes more complicated.

[0004] Therefore, how to avoid frequent policy configuration of network access after users go online is one of the technical issues worth considering. Summary of the invention

[0005] In view of this, the present application provides an access control method and device to avoid frequent policy configuration of network access after a user goes online.

[0006] Specifically, the present application is implemented through the following technical solutions:

[0007] According to a first aspect of the present application, there is provided an access control method, which is applied to a network security device, and the method comprises:

[0008] receiving an authentication request, wherein the authentication request includes user information of an accessing user;

[0009] Sending the authentication request to an authentication server;

[0010] receiving an authentication result sent by the authentication server, wherein the authentication result is sent by the authentication server after the access user is authenticated based on the user information;

[0011] If the authentication result includes the user group information of the access user, and the network security device locally has a user group corresponding to the user group information, the network access of the access user is controlled according to the user group.

[0012] According to a second aspect of the present application, there is provided an access control device, which is arranged in a network security device, and the device comprises:

[0013] A first receiving module, configured to receive an authentication request, wherein the authentication request includes user information of an accessing user;

[0014] A sending module, used to send the authentication request to an authentication server;

[0015] A second receiving module is used to receive an authentication result sent by the authentication server, where the authentication result is sent by the authentication server after the access user is authenticated based on the user information;

[0016] The access control module is used to control the network access of the access user according to the user group if the authentication result includes the user group information of the access user and the network security device locally has a user group corresponding to the user group information.

[0017] According to a third aspect of the present application, a network security device is provided, including a processor and a machine-readable storage medium, the machine-readable storage medium storing a computer program that can be executed by the processor, and the processor is prompted by the computer program to execute the method provided in the first aspect of the embodiment of the present application.

[0018] According to the fourth aspect of the present application, a machine-readable storage medium is provided, which stores a computer program. When called and executed by a processor, the computer program prompts the processor to execute the method provided in the first aspect of the embodiment of the present application.

[0019] Beneficial effects of the embodiments of the present application:

[0020] In the access control method and device provided by the embodiment of the present application, after receiving the authentication request, the network security device will send the authentication request to the authentication server; then receive the authentication result sent by the authentication server, the authentication result is sent by the authentication server after the access user is authenticated based on the user information in the authentication request; if the authentication result includes the user group information of the access user, and the network security device has a user group corresponding to the user group information locally, the network access of the access user is controlled according to the user group. In this way, by setting the user group, the network security device can control the network access of the user based on the security policy corresponding to the user group to which the user belongs, so that there is no need to configure the security policy separately for each user when going online, thereby greatly saving the processing resources of the network security device and improving the user's network access speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a flowchart of an access control method provided by an embodiment of the present application;

[0022] Figure 2 is a schematic diagram of the structure of an access control device provided in an embodiment of the present application;

[0023] Figure 3 It is a schematic diagram of the hardware structure of a network security device for implementing an access control method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application.

[0025] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more corresponding listed items.

[0026] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0027] The access control method provided by this application is described in detail below.

[0028] See also Figure 1 , Figure 1 This is a flowchart of an access control method provided by the present application. The method can be applied to a network security device, which can be, but is not limited to, a firewall or other device. When the network security device implements the method, the following steps may be included:

[0029] S101: Receive an authentication request, where the authentication request includes user information of an accessing user.

[0030] In this step, the above-mentioned authentication request can be an authentication request sent by the user based on the device that provides a login interface. The accessing user can type in the user's user information based on the login interface. After typing, the login interface can provide a login control. The accessing user can click the login control to trigger the login request. In this way, the device that provides the login interface can send the received authentication request to the network security device, and the network security device can receive the authentication request containing the user information.

[0031] Optionally, the authentication request may be sent by the user based on a portal server, that is, the user enters user information based on an authentication interface provided by the portal server. After receiving the user information, the portal server constructs an authentication request based on the user information and sends it to the network security device.

[0032] S102: Send the authentication request to an authentication server.

[0033] In this step, in order to avoid frequent verification and policy configuration every time the user goes online and improve the user's access efficiency, the present application proposes that the network security device forwards the authentication request to the authentication server so that the authentication server can authenticate the accessing user.

[0034] It should be noted that the above authentication server may be, but is not limited to, a radius server and the like.

[0035] S103: Receive an authentication result sent by the authentication server, where the authentication result is sent by the authentication server after the access user is authenticated based on the user information.

[0036] In this step, after receiving the authentication request, the authentication server will parse the user information of the accessing user from the authentication request, then authenticate the accessing user based on the user information, and feed back the authentication result to the network security device. Specifically, the authentication server locally records the user information of users who are allowed to pass the authentication, so that after extracting the user information from the authentication request, it can be determined whether the parsed user information exists in the user information recorded in the authentication server. If it exists, it indicates that the accessing user is authenticated, so that the first indication information of the authentication passing can be carried in the authentication result, otherwise it indicates that the authentication failed, and then the second indication information of the authentication failing can be carried in the authentication result.

[0037] In addition, in order to avoid frequent configuration and verification, after the authentication server authenticates the access user, it can confirm whether there is a corresponding user group for the access user. If so, the user group information of the user group corresponding to the access user is carried in the authentication result and sent to the network security device; if the access user authentication fails, the access user will definitely not have a user group, so at this time, only the authentication result of the failed authentication needs to be carried. Specifically, the network operator will pre-configure the user information of users who are allowed to pass the authentication and the user group to which each user belongs in the authentication server. In this way, after the authentication server parses the user information, it can confirm whether there is a corresponding user group for the access user based on the parsed user information. By setting different user groups, the network security device can implement corresponding security policy configuration for different user groups based on the user groups, and then implement different access rights control for users in different user groups.

[0038] S104: If the authentication result includes the user group information of the access user, and the network security device locally has a user group corresponding to the user group information, control the network access of the access user according to the user group.

[0039] In this step, in order to configure the security policy for the user group, the authentication server will send the user group information and the user information included in each user group to the network security device after the authentication is successful. In this way, the network security device can configure the security policy based on the user group. On this basis, after receiving the authentication result, the network security device can confirm whether the user group information can be parsed. When the user group information is parsed, it is then determined whether there is a user group corresponding to the parsed user group information locally on the network security device. If it exists, the security policy corresponding to the user group can be called to control the network access of the accessing user. In this way, there is no need to allocate and configure security policies for each user, avoiding frequent policy configuration of network access after the user goes online, thereby greatly saving policy configuration resources and reducing the configuration workload of network operation and maintenance personnel.

[0040] It should be noted that when the authentication result does not include user group information, the current security policy is used to control the network access of the access user. For example, a security policy can be set for "visitors", recorded as a common security policy, and then these access users who are not configured with user groups are regarded as "visitors" and the common security policy is used to control the network access of the access users.

[0041] In addition, when the user group information included in the authentication result is not recorded in the network security device, the network security device can also use the above-mentioned common security policy to perform network access control on the access user.

[0042] By implementing the access control method provided by the present application, after receiving the authentication request, the network security device will send the authentication request to the authentication server; then receive the authentication result sent by the authentication server, the authentication result is sent by the authentication server after the access user is authenticated based on the user information in the authentication request; if the authentication result includes the user group information of the access user, and the network security device has a user group corresponding to the user group information locally, the network access of the access user is controlled according to the user group. In this way, by setting the user group, the network security device can control the network access of the user based on the security policy corresponding to the user group to which the user belongs, so that there is no need to configure the security policy separately for each user when going online, thereby greatly saving the processing resources of the network security device and improving the user's network access speed.

[0043] Optionally, based on the above embodiment, in this embodiment, when the authentication server feeds back the authentication result to the network security device, it feeds back in the form of a message. For example, the authentication server can send a response message to the network security device, and the response message carries the authentication result. On this basis, the user group information of the user group to which the access user belongs will also be added to the response message to be sent to the network security device. Specifically, the user group information can be added to the field corresponding to the radius standard attribute No. 11 in the response message.

[0044] Optionally, based on any of the above embodiments, in this embodiment, the network security device can execute the step of controlling the network access of the accessing user according to the user group in step S104 according to the following process: if the network security device locally records the user information of the accessing user, determine whether the source of the accessing user is consistent with the source of the user group information; when they are consistent, add the user information of the accessing user to the user group; and control the network access of the accessing user according to the user group.

[0045] Specifically, after confirming that the user group information in the authentication result is recorded locally, the network security device will further determine whether the user information of the accessing user is recorded locally, that is, determine whether the user information of the accessing user is included in the above user group recorded locally by the network security device. If it is included, it is confirmed that the user has previously accessed the network to which the network security device is connected. At this time, in order to further ensure the security of network access, the network security device can confirm whether the source of the accessing user is consistent with the source of the user group information. If they are consistent, it indicates that the user information and the user group information are sent to the network security device by the same device, otherwise it indicates that the user information and the user group information are obtained from different devices. Further, when it is confirmed that the sources are consistent, since the user information is not in the user group recorded locally by the network security device, the user information of the accessing user is added to the user group corresponding to the user group information carried by the authentication result; at the same time, the network access control of the accessing user is performed according to the security policy corresponding to the user group. When the sources are inconsistent, the network access control of the accessing user is performed according to the aforementioned general security policy.

[0046] In addition, if the network security device does not locally record the user information of the access user, the user information of the access user is added to the user group; and the relationship between the access user and the user group is set as a dynamic relationship.

[0047] It should be noted that after the authentication server synchronizes the user groups and users in each user group to the network security device, the network security device will set the mapping relationship between the users synchronized by the authentication server and the corresponding user groups to a non-dynamic relationship, and the network security device will set the mapping relationship between the users obtained in other situations and the corresponding user groups to a dynamic relationship. The life cycle of the above non-dynamic relationship is from relationship import to relationship deletion; while the life cycle of the dynamic relationship is from user online to offline. In addition, if the relationship is the same, the non-dynamic relationship can cover the dynamic relationship.

[0048] Specifically, based on the above description, when the network security device has not recorded the user information of the accessing user locally, it indicates that the user belongs to the user group fed back by the authentication server, but the user information is not synchronized to the network security device by the authentication server and has not yet been recorded in the user group by the network security device. At this time, the user information of the accessing user is added to the user group corresponding to the user group information carried by the authentication result recorded in the network security device, so as to facilitate network control the next time the accessing user accesses the network; at the same time, the relationship between the user information and the user group information can be set to a dynamic relationship, that is, a dynamic relationship, to facilitate network access control of subsequent users.

[0049] Furthermore, when executing the step of adding user information to the user group, the following process may be followed: when it is confirmed that the source of the user information is consistent with the source of the user group information, the user information of the accessing user is added to the user group corresponding to the user information in the authentication result.

[0050] Specifically, only when the sources are consistent does it indicate that the access user is a user who is authorized to access the network connected to the network security device. In actual applications, the user groups and user information in the user groups maintained in the network security device may be out of sync with the user groups and user information in the user groups maintained in the authentication server. Therefore, in order to further ensure the security of the network connected to the network security device, the network security device will confirm whether the source of the user information is consistent with the source of the user group information. Only when they are consistent will the user information of the access user be written into the user group information.

[0051] It should be noted that the source of the user group information may be, but is not limited to, imported based on a CSV file, created locally, or sent by a server, and the server may be, but is not limited to, an authentication server, an LDAP server, a Server-IMC server, and the like. Similarly, in addition to being sent by an authentication server, the source of the above user information may also be locally created by a network security device, sent by other servers, or imported into the network security device by other methods, and so on. In actual applications, the other servers may be, but are not limited to, LDAP servers, Server-IMC servers, and the like, and the above other methods may be, but are not limited to, being imported by a network security device based on a csv file. It is worth noting that in the case of the same user, different sources of the user are not allowed to overlap. In this application, a relationship can only be established when the source of the user group information is consistent with the source of the user information.

[0052] Optionally, based on any of the above embodiments, the access control method provided in this embodiment may further include the following process: receiving an offline request from an accessing user, the offline request including user information of the accessing user; sending the offline request to an authentication server; receiving a response result sent by the authentication server; if the response result includes user group information of the accessing user, and a user group corresponding to the user group information exists locally in the network security device, determining whether the relationship between the accessing user and the user group is a dynamic relationship; if it is a dynamic relationship, deleting the mapping relationship between the accessing user and the corresponding user group; and executing the offline operation of the accessing user.

[0053] Specifically, when the accessing user wants to go offline, an offline request will be triggered, that is, the offline option in the login interface provided by the device will trigger the offline request, and then the device will forward the offline request to the network security device. After receiving the downlink request from the accessing user, the network security device can forward the offline request to the authentication server, so that the authentication server can confirm whether the user information exists in the corresponding user group based on the user information in the offline request. If there is a corresponding user group, the user group information of the user group is carried in the response result and sent to the network security device. In this way, after receiving the response result, if the network security device parses the user group information therefrom, it then determines whether the user group information exists locally in the network security device. If so, it determines whether the locally stored user information is in the user group corresponding to the user group information. If not, the access user is allowed to go offline, that is, the downlink action of the access user is executed. When the user information is included in the user group corresponding to the user group information, it is determined whether the mapping relationship between the user group information and the user information is a dynamic relationship. If it is a dynamic relationship, it indicates that the access user may be temporarily assigned to the user group. In order to ensure secure access to the network to which the network security device is connected, it is necessary to locally delete the mapping relationship between the access user and the corresponding user group, and then execute the access user's offline operation.

[0054] It should be noted that if the mapping relationship between the user group information and the user information is a non-dynamic relationship, the offline operation of the access user is directly executed, and the user information of the access user in the user group remains unchanged.

[0055] It should be noted that the device providing the login interface may be, but is not limited to, a portal server, etc. The authentication server may be, but is not limited to, a radius server.

[0056] Furthermore, based on the above embodiments, the access control method provided in this embodiment may also include the following process: determining whether the user status of the accessing user stored in the network security device is dynamic; if so, determining whether the user information of the accessing user is in the online user list; if not, deleting the user information of the accessing user recorded by the network security device.

[0057] Specifically, in order to better ensure the security of the network to which the network security device is connected, the network security device also maintains the user status of each user. On this basis, when the network security device allows the access user to go offline based on any of the above situations, the network security device will determine the user status of the access user. When it is confirmed that the user status of the access user is non-dynamic, it indicates that the access user is accessing using a fixed IP address, and this process ends. When it is confirmed that the user status of the access user is dynamic, it indicates that the access user may have accessed using different IP addresses. At this time, in order to avoid the situation where the access user uses one IP address to perform an offline operation, which causes the access user to go offline synchronously when accessing using other IP addresses, the network security device will maintain the current online users, that is, maintain an online user list, and then write the user status of each online user into the online user list. On this basis, when the user status of the visiting user is dynamic, it is further confirmed whether the user information of the visiting user is in the online user list. If it is, it indicates that the visiting user is currently using other IP addresses to access the network. In this case, the user information of the visiting user recorded locally by the network security device is retained, thereby avoiding the situation where all accesses of the visiting user are offline. When the user information of the visiting user does not exist in the online user list, it indicates that the visiting user is not currently using other IP addresses to access the network. In this case, the visiting user information recorded locally by the network security device can be deleted.

[0058] It should be noted that when the network security device sets the user status of a user to dynamic or non-dynamic, the non-dynamic priority is higher than the dynamic priority. That is, when a user's user status is first set to dynamic, and then it is found during subsequent import that the import result is that the user status of the user is non-dynamic, the network security device needs to set the user status of the user to a non-dynamic user; and when the user status of a user is first set to non-dynamic in the network security device, the user status of the user will not be adjusted subsequently.

[0059] It is worth noting that the life cycle of the above-mentioned dynamic users is from the time the user goes online to the time the user goes offline; the life cycle of the non-dynamic users is from the time the user is imported to the time the user information is deleted. In the same situation, non-dynamic users can overwrite dynamic users.

[0060] At this point, by implementing the above-mentioned access control method, users who are allowed to pass the authentication are automatically assigned to the user group after the authentication is online, which is more conducive to network operation and maintenance personnel to batch manage users' network access control through user groups, and solves the problem of authorized user groups in the software acceleration scenario of security policies.

[0061] Based on the same inventive concept, the present application also provides an access control device corresponding to the above access control method. The implementation of the access control device can refer to the above description of the access control method, which will not be discussed here one by one.

[0062] See also Figure 2 , Figure 2 An access control device provided by an exemplary embodiment of the present application is provided in a network security device, and the device includes:

[0063] A first receiving module 201 is used to receive an authentication request, where the authentication request includes user information of an accessing user;

[0064] A sending module 202, configured to send the authentication request to an authentication server;

[0065] A second receiving module 203 is used to receive an authentication result sent by the authentication server, where the authentication result is sent by the authentication server after the access user is authenticated based on the user information;

[0066] The access control module 204 is configured to control the network access of the access user according to the user group if the authentication result includes the user group information of the access user and the network security device locally has a user group corresponding to the user group information.

[0067] Optionally, the access control module 204 is specifically used to determine whether the source of the accessing user is consistent with the source of the user group information if the network security device locally records the user information of the accessing user; when they are consistent, add the user information of the accessing user to the user group; and control the network access of the accessing user according to the user group.

[0068] Optionally, based on the above embodiment, the access control device provided in this embodiment further includes:

[0069] an adding module (not shown in the figure), configured to add the user information of the accessing user to the user group if the network security device does not locally record the user information of the accessing user;

[0070] A setting module (not shown in the figure) is used to set the relationship between the access user and the user group as a dynamic relationship.

[0071] Optionally, based on any of the above embodiments, in this embodiment, the first receiving module 201 is further used to receive a logout request from the access user, where the logout request includes user information of the access user;

[0072] The sending module 202 is further configured to send the offline request to an authentication server;

[0073] The second receiving module 203 is further configured to receive a response result sent by the authentication server;

[0074] On this basis, the access control device provided in this embodiment further includes:

[0075] A first judgment module (not shown in the figure) is used to judge whether the relationship between the accessing user and the user group is a dynamic relationship if the response result includes the user group information of the accessing user and the network security device locally has a user group corresponding to the user group information;

[0076] A first deleting module (not shown in the figure), configured to delete the mapping relationship between the access user and the corresponding user group if the determination result of the determination module is a dynamic relationship;

[0077] An execution module (not shown in the figure) is used to execute the offline operation of the accessing user.

[0078] Furthermore, the access control device provided in this embodiment further includes:

[0079] A second judgment module (not shown in the figure) is used to judge whether the user status of the accessing user stored in the network security device is dynamic;

[0080] A third judgment module (not shown in the figure), used to judge whether the user information of the accessing user is in the online user list if the judgment result of the second judgment module is yes;

[0081] The second deleting module (not shown in the figure) is used to delete the user information of the accessing user recorded by the network security device if the judgment result of the third judgment module is that the accessing user does not exist.

[0082] By providing the above-mentioned access control device, after receiving the authentication request, the authentication request will be sent to the authentication server; then the authentication result sent by the authentication server is received, and the authentication result is sent by the authentication server after the access user is authenticated based on the user information in the authentication request; if the authentication result includes the user group information of the access user, and the network security device locally has a user group corresponding to the user group information, the network access of the access user is controlled according to the user group. In this way, by setting the user group, the network security device can control the network access of the user based on the security policy corresponding to the user group to which the user belongs, so that there is no need to configure the security policy separately for each user when going online, thereby greatly saving the processing resources of the network security device and improving the user's network access speed.

[0083] Based on the same inventive concept, the embodiment of the present application provides a network security device, such as Figure 3 As shown, it includes a processor 301 and a machine-readable storage medium 302, the machine-readable storage medium 302 stores a computer program that can be executed by the processor 301, and the processor 301 is prompted by the computer program to execute the access control method provided by any embodiment of the present application. In addition, the network security device also includes a communication interface 303 and a communication bus 304, wherein the processor 301, the communication interface 303, and the machine-readable storage medium 302 communicate with each other through the communication bus 304.

[0084] The communication bus mentioned in the above network security device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0085] The communication interface is used for communication between the above network security device and other devices.

[0086] The machine-readable storage medium 302 may be a memory, which may include a random access memory (RAM), a DDR SRAM (Double Data Rate Synchronous Dynamic Random Access Memory), or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the processor.

[0087] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0088] As for the network security device and machine-readable storage medium embodiments, since the method contents involved are basically similar to the aforementioned method embodiments, the description is relatively simple, and the relevant parts may refer to the partial description of the method embodiments.

[0089] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0090] The implementation process of the functions and effects of each unit / module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0091] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are merely schematic, wherein the units / modules described as separate components may or may not be physically separated, and the components displayed as units / modules may or may not be physical units / modules, that is, they may be located in one place, or they may be distributed on multiple network units / modules. Some or all of the units / modules may be selected according to actual needs to achieve the purpose of the present application. A person of ordinary skill in the art can understand and implement it without creative work.

[0092] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. An access control method, characterized in that: Applied to a network security device, the method comprises: receiving an authentication request, wherein the authentication request includes user information of an accessing user; Sending the authentication request to an authentication server; receiving an authentication result sent by the authentication server, wherein the authentication result is sent by the authentication server after the access user is authenticated based on the user information; If the authentication result includes the user group information of the accessing user, and the network security device locally has a user group corresponding to the user group information, the network access of the accessing user is controlled according to the user group, including: if the network security device locally records the user information of the accessing user, determining whether the source of the accessing user is consistent with the source of the user group information; when they are consistent, adding the user information of the accessing user to the user group; and controlling the network access of the accessing user according to the user group.

2. The method according to claim 1, characterized in that If the network security device does not locally record the user information of the accessing user, adding the user information of the accessing user to the user group; The relationship between the access user and the user group is set as a dynamic relationship.

3. The method according to claim 1, characterized in that Also includes: receiving a logoff request from the visiting user, wherein the logoff request includes user information of the visiting user; Sending the offline request to an authentication server; Receiving a response result sent by the authentication server; If the response result includes the user group information of the access user, and the network security device locally has a user group corresponding to the user group information, determining whether the relationship between the access user and the user group is a dynamic relationship; If it is a dynamic relationship, the mapping relationship between the access user and the corresponding user group is deleted; and the access user is offlined.

4. The method according to claim 3, characterized in that: Also includes: Determining whether the user status of the accessing user stored in the network security device is dynamic; If yes, determining whether the user information of the accessing user is in the online user list; If not, the user information of the accessing user recorded by the network security device is deleted.

5. An access control device, characterized in that: The device is arranged in a network security device, and comprises: A first receiving module, configured to receive an authentication request, wherein the authentication request includes user information of an accessing user; A sending module, used to send the authentication request to an authentication server; A second receiving module is used to receive an authentication result sent by the authentication server, where the authentication result is sent by the authentication server after the access user is authenticated based on the user information; An access control module, configured to control network access of the access user according to the user group if the authentication result includes user group information of the access user and a user group corresponding to the user group information exists locally in the network security device; The access control module is specifically used to determine whether the source of the access user is consistent with the source of the user group information if the network security device locally records the user information of the access user; if they are consistent, add the user information of the access user to the user group; and control the network access of the access user according to the user group.

6. The device according to claim 5, characterized in that Also includes: An adding module, configured to add the user information of the accessing user to the user group if the network security device does not locally record the user information of the accessing user; A setting module is used to set the relationship between the access user and the user group as a dynamic relationship.

7. The device according to claim 5, characterized in that The first receiving module is further used to receive a logout request from the visiting user, wherein the logout request includes user information of the visiting user; The sending module is further used to send the offline request to the authentication server; The second receiving module is further used to receive a response result sent by the authentication server; The device further comprises: A first judgment module, configured to judge whether the relationship between the accessing user and the user group is a dynamic relationship if the response result includes the user group information of the accessing user and the network security device locally has a user group corresponding to the user group information; A first deleting module, configured to delete the mapping relationship between the access user and the corresponding user group if the determination result of the determination module is a dynamic relationship; The execution module is used to execute the offline operation of the accessing user.

8. The device according to claim 7, characterized in that Also includes: A second judgment module is used to judge whether the user status of the accessing user stored in the network security device is dynamic; a third judgment module, configured to judge whether the user information of the accessing user is in the online user list if the judgment result of the second judgment module is yes; The second deleting module is configured to delete the user information of the accessing user recorded by the network security device if the judgment result of the third judging module is that the accessing user does not exist.