Network host access method and system supporting dynamic resource mapping
By accessing the mediator dynamically determines the resource directory and maps it to the predetermined path to the target network host, the inconvenience and management difficulties caused by static mapping relationships are solved, and flexibility and security are improved, and user permission management and resource sharing are supported.
Patent Information
- Application Number
- CN202110674438.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-17
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2041-06-17
AI Technical Summary
In the prior art, users need to configure static mapping relationships in advance before connecting to the network host each time, which leads to inconvenience in use and the inability to effectively manage and control network resource access. Especially when the local host lacks necessary applications and files stored on the network, the administrator cannot intervene.
Receive network host access requests through the access intermediary, dynamically determine the resource directory using user information, environment variable information and target network host information, and request the target network host to map the resource directory to a predetermined path through the network, realizing dynamic resource mapping, avoiding files falling on the local host, and improving system flexibility and security.
It realizes dynamic network mapping without the need for users to determine mapping relationships before each connection, improves the flexibility and convenience of the system, supports dynamic management of user permissions, reduces local host configuration requirements, enhances network security, avoids information leakage and loss, and promotes multi-user resource sharing and collaboration.
Smart Images

Figure CN115499143B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network resource management and access, and in particular to a network host access method and system supporting dynamic resource mapping. Background Art
[0002] As Figure 1 shown, currently when the vast majority of users are working, it is user 101 who processes local file 105 through local application 103 on local host 100; for example, a user uses office software installed on a local PC to process a word file located on the hard disk of the local PC.
[0003] As Figure 2 shown, with the development of network technology, user 201 can map network file 207 to local host 200 as network mapped file 205 so that local application 203 on local host 200 can process it using the local path.
[0004] However, with the complication of local applications and the development of networks and cloud services, local applications required for work are often not available on the user's local host, and at the same time, more and more work files are stored on the network. Therefore, a system as Figure 3 shown has gradually emerged. User 301 uses host application 303 on network host 302 through local host 300, and at the same time maps network file 307 to network host 302 to form network mapped file 305 so that host application 303 on network host 302 can directly use the local path for processing. When a user accesses the host application on the network host, it can be configured to map a specified local path (a fixed path on the network host) on the network host to a specified network path (specified by the user when accessing) so that the host application can directly use the local path to access and operate on files located in the corresponding network path on the server. This system requires the local host to configure the network mapping relationship (static mapping relationship) in advance before connecting to the network host. Therefore, it requires the user to determine the mapping relationship in advance before each connection, which is inconvenient to use. At the same time, the administrator cannot intervene and cannot perform effective management and control. Summary of the Invention
[0005] An object of the present invention is to provide a network host access method supporting dynamic resource mapping for the above-mentioned existing problems.
[0006] The present invention also provides a network host access system supporting dynamic resource mapping.
[0007] To achieve the above object, the present invention is realized through the following technical solutions:
[0008] In one aspect of the present invention, a network host access method supporting dynamic resource mapping includes:
[0009] Receive a network host access request, and obtain user information and information of the target network host corresponding to the network host access request therefrom;
[0010] Determine a corresponding resource directory according to the user information;
[0011] Access the target network host, and request the target network host to map the resource directory to a predetermined path of the target network host through the network.
[0012] Preferably, determining a corresponding resource directory according to the user information specifically includes:
[0013] Determine the resource directory corresponding to the user information according to the obtained user information and the pre-configured correspondence between user information and resource directories;
[0014] Or, determine the corresponding resource directory according to the obtained user information, the information of the target network host corresponding to the network host access request, and the pre-configured correspondence;
[0015] Or, determine the corresponding resource directory according to the environment variable information, the obtained user information, and the pre-configured correspondence;
[0016] Or, determine the corresponding resource directory according to the obtained user information, environment variable information, the information of the target network host corresponding to the network host access request, and the pre-configured correspondence;
[0017] Or, create a resource directory corresponding to the obtained user information as the finally determined resource directory;
[0018] Or, create a corresponding resource directory according to the obtained user information and the information of the target network host corresponding to the network host access request as the finally determined resource directory;
[0019] Or, create a corresponding resource directory according to the environment variable information and the obtained user information as the finally determined resource directory;
[0020] Or, create a corresponding resource directory according to the obtained user information, environment variable information, and the information of the target network host corresponding to the network host access request as the finally determined resource directory.
[0021] In another aspect of the present invention, a network host access processing device supporting dynamic resource mapping includes: a memory and a processor connected by communication, and a computer program stored on the memory and capable of running on the processor, and when the processor runs the computer program, it executes the foregoing method.
[0022] On the other hand, a network host access method supporting dynamic resource mapping includes:
[0023] Receiving a network host access request and obtaining information about the target network host corresponding to the network host access request therefrom;
[0024] Determining a corresponding resource directory according to the information of the target network host;
[0025] Accessing the target network host and requesting the target network host to map the resource directory to a predetermined path of the target network host through the network.
[0026] Preferably, determining a corresponding resource directory according to the information of the target network host specifically includes:
[0027] Determining a corresponding resource directory according to the obtained information of the target network host and the pre-configured correspondence between the information of the target network host and the resource directory;
[0028] Or, determining a corresponding resource directory according to the environmental variable information, the obtained information of the target network host, and the pre-configured correspondence;
[0029] Or, creating a resource directory corresponding to the obtained information of the target network host as the finally determined resource directory;
[0030] Or, creating a corresponding resource directory according to the environmental variable information and the obtained information of the target network host as the finally determined resource directory.
[0031] On another aspect of the present invention, a network host access processing device supporting dynamic resource mapping includes: a memory and a processor connected by communication, and a computer program stored on the memory and capable of running on the processor, and the processor executes the foregoing method when running the computer program.
[0032] On the other hand, a network host access method supporting dynamic resource mapping includes:
[0033] Receiving a network host access request and obtaining information about the target network host corresponding to the network host access request therefrom;
[0034] Determining a corresponding resource directory according to the current environmental variable information;
[0035] Accessing the target network host and requesting the target network host to map the resource directory to a predetermined path of the target network host through the network.
[0036] Preferably, determine the corresponding resource directory according to the current environment variable information, specifically as follows:
[0037] Determine the corresponding resource directory according to the current environment variable information and the pre-configured correspondence between the environment variable information and the resource directory;
[0038] Alternatively, create a resource directory corresponding to the current environment variable information according to the current environment variable information as the finally determined resource directory.
[0039] On the other hand, the present invention also provides a network host access processing device supporting dynamic resource mapping, including: a memory and a processor connected by communication, and a computer program stored on the memory and capable of running on the processor, and when the processor runs the computer program, it executes the foregoing method.
[0040] On the other hand, the present invention provides a network host access system supporting dynamic resource mapping, including:
[0041] A local host for initiating a network host access request;
[0042] An access intermediary for receiving a network host access request, obtaining user information and information about the target network host corresponding to the network host access request therefrom; determining a corresponding resource directory according to the user information; accessing the target network host, and requesting the target network host to map the resource directory to a predetermined path of the target network host through the network;
[0043] A target network host for accepting the access of the access intermediary and mapping its predetermined path to the resource directory according to the request of the access intermediary.
[0044] Preferably, determine the corresponding resource directory according to the user information, specifically as follows:
[0045] Determine the resource directory corresponding to the user information according to the obtained user information and the pre-configured correspondence between the user information and the resource directory;
[0046] Alternatively, determine the corresponding resource directory according to the obtained user information, information about the target network host corresponding to the network host access request, and the pre-configured correspondence;
[0047] Alternatively, determine the corresponding resource directory according to the environment variable information, the obtained user information, and the pre-configured correspondence;
[0048] Alternatively, determine the corresponding resource directory according to the obtained user information, environment variable information, information about the target network host corresponding to the network host access request, and the pre-configured correspondence;
[0049] Alternatively, according to the obtained user information, create a resource directory corresponding to the user information as the finally determined resource directory;
[0050] Alternatively, according to the obtained user information and the information of the target network host corresponding to the network host access request, create a corresponding resource directory as the finally determined resource directory;
[0051] Alternatively, according to the environment variable information and the obtained user information, create a corresponding resource directory as the finally determined resource directory;
[0052] Alternatively, according to the obtained user information, environment variable information, and the information of the target network host corresponding to the network host access request, create a corresponding resource directory as the finally determined resource directory.
[0053] On the other hand, a network host access system supporting dynamic resource mapping according to the present invention includes:
[0054] A local host for initiating a network host access request;
[0055] An access intermediary for receiving the network host access request and obtaining the information of the target network host corresponding to the network host access request therefrom; determining a corresponding resource directory according to the information of the target network host; accessing the target network host, and requesting the target network host to map the resource directory to a predetermined path of the target network host through the network;
[0056] A target network host for accepting the access of the access intermediary and mapping its predetermined path to the resource directory according to the request of the access intermediary.
[0057] Preferably, determining a corresponding resource directory according to the information of the target network host specifically means:
[0058] According to the obtained information of the target network host and the corresponding relationship between the pre-configured target network host information and the resource directory, determine the corresponding resource directory;
[0059] Alternatively, according to the environment variable information, the obtained information of the target network host, and the pre-configured corresponding relationship, determine the corresponding resource directory;
[0060] Alternatively, according to the obtained information of the target network host, create a resource directory corresponding to the target network host information as the finally determined resource directory;
[0061] Alternatively, according to the environment variable information and the obtained information of the target network host, create a corresponding resource directory as the finally determined resource directory.
[0062] On the other hand, the present invention provides a network host access system supporting dynamic resource mapping, including:
[0063] A local host for initiating a network host access request;
[0064] An access intermediary for receiving a network host access request, obtaining information about the target network host corresponding to the network host access request therefrom; determining a corresponding resource directory according to current environment variable information; accessing the target network host, and requesting the target network host to map the resource directory to a predetermined path of the target network host through the network;
[0065] A target network host for accepting access from the access intermediary and mapping its predetermined path to the resource directory according to the request of the access intermediary.
[0066] Preferably, determining a corresponding resource directory according to current environment variable information specifically includes:
[0067] Determining a corresponding resource directory according to current environment variable information and the corresponding relationship between pre-configured environment variable information and resource directories;
[0068] Or, creating a resource directory corresponding to the current environment variable information according to the current environment variable information as the finally determined resource directory.
[0069] The beneficial effects of the present invention are as follows:
[0070] 1. The present invention uses an access intermediary to receive a network host access request, determines a corresponding resource directory according to information such as user information, environment variable information, and target network host information (which can be any one or several of them), and requests the target network host to map the resource directory to a predetermined path of the target network host through the network. On the one hand, it can achieve dynamic network mapping without the user having to determine the mapping relationship in advance before each connection, improving the flexibility and convenience of use of the system. On the other hand, it can control the access rights of the local host to network resources through the access intermediary, realizing dynamic management of user rights.
[0071] 2. Users can use local applications on the network host to process their own files without installing the application on the local host, greatly reducing the configuration requirements for the local host.
[0072] 3. The users of the local host only know the information of the target network host they access and do not know in advance what network files they can access through the target network host, which can improve network security.
[0073] 4. By accessing the intermediary to map the resource directory, on the one hand, it avoids files in the resource directory from being stored on the user's local host, effectively solving problems such as information leakage, loss, and inability to synchronize information that are prone to occur when files are stored on the user's local host; on the other hand, it enables multiple users to share network resources and promotes collaboration; in addition, it enables centralized management. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] Figure 1 It is a schematic structural diagram of a system for processing local files using local applications on a local host in the background art of the present invention.
[0075] Figure 2 It is a schematic structural diagram of a system for processing network files using local applications on a local host in the background art of the present invention.
[0076] Figure 3 It is a schematic structural diagram of a system for processing network files using host applications on a network host through a local host in the background art of the present invention.
[0077] Figure 4 It is a schematic flow diagram of a method for accessing a network host that supports dynamic resource mapping according to the present invention.
[0078] Figure 5 It is a schematic flow diagram of another method for accessing a network host that supports dynamic resource mapping according to the present invention.
[0079] Figure 6 It is a schematic flow diagram of still another method for accessing a network host that supports dynamic resource mapping according to the present invention.
[0080] Figure 7 It is a schematic structural diagram of the system according to the present invention.
[0081] Figure 8 It is a schematic structural diagram of the access intermediary according to the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0082] In order to make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be described clearly and completely below. Apparently, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0083] The present invention utilizes an access intermediary to receive a network host access request, and the access intermediary determines a corresponding resource directory based on information such as user information, environment variable information, and target network host information (which can be any one or several of them), and requests the target network host to map the resource directory to a predetermined path of the target network host through the network (this predetermined path is usually fixed, and there can be one or multiple according to needs). The target network host maps its specified local path (the aforementioned predetermined path) to the resource directory according to the request of the access intermediary, so that the specified local path on the target network host can be dynamically associated with the resource directory during user access, enabling the host application to directly access and operate on the files located in the corresponding resource directory of the network file server using the specified local path. On the one hand, it can achieve dynamic network mapping without the need for the user to pre-determine the mapping relationship before each connection, improving the flexibility and convenience of the system. On the other hand, it can control the access rights of the local host to resources through the access intermediary, realizing dynamic management of user permissions.
[0084] For the sake of easy understanding, the following explanations are made for user information, network hosts, information of network hosts, and resource directories: The user information includes one or more of the information such as username, user's department, user's group, hostname of the local host, IP address, MAC address, etc.; The network host refers to an entity unit that can carry host applications or services and has an independent resource directory structure, including physical hosts, virtual machines, and containers, etc.; The information of the (target) network host includes one or more of the information such as the name of the network host, system identifier, IP address, MAC address, network host type, network host's department, network host's group, etc.; The resource directory refers to a network path.
[0085] As Figure 4 shown, a network host access method supporting dynamic resource mapping according to the present invention includes:
[0086] Receiving a network host access request, and obtaining user information and information of the target network host corresponding to the network host access request therefrom.
[0087] In this embodiment, the user sends a network host access request to the access intermediary through the local host (within the optional range of those skilled in the art, it can be that the local host directly sends an access request to the access intermediary, or it can be sent to the access intermediary via a network proxy), requesting to access one or some network hosts (referred to as target network hosts). The access intermediary receives the network host access request, and obtains user information and information of the target network host corresponding to the network host access request therefrom.
[0088] Determining a corresponding resource directory according to the user information.
[0089] The corresponding resource directory is determined based on the user information, specifically, it is determined based on the data information containing the user information. In this embodiment, the access intermediary determines the corresponding resource directory, and the following several solutions can be adopted:
[0090] Solution 1: The access intermediary determines the resource directory corresponding to the user information according to the acquired user information and the pre-configured correspondence between the user information and the resource directory. Specifically, after the access intermediary acquires the user information, the resource directory corresponding to the user information in the pre-configured information (the correspondence between the user information and the resource directory) is used as the finally determined resource directory. In practical applications, the user information may correspond to only one resource directory or multiple resource directories.
[0091] Solution 2: The access intermediary determines the corresponding resource directory according to the acquired user information, the information of the target network host corresponding to the network host access request, and the pre-configured correspondence.
[0092] Specifically, all combination methods of the user information and the target network host information are listed, and each combination method is configured with a corresponding resource directory. The access intermediary determines the resource directory according to the acquired user information, the information of the target network host, and the foregoing correspondence. For example, a user with user information A requests to access a target network host with network host information AA. After receiving the foregoing access request, the access intermediary (which has pre-configured the resource directory corresponding to user A accessing network host AA) screens out the resource directory corresponding to user A accessing network host AA from the pre-configured correspondence as the finally determined resource directory.
[0093] In addition, a step-by-step screening method can also be adopted to determine the resource directory. Specifically, after the access intermediary acquires the user information, it screens out the resource directory corresponding to the user information in the pre-configured information (such as the correspondence between the user information and the resource directory), and then screens out the resource directory corresponding to the target network host information from these resource directories as the finally determined resource directory. For example, a user with user information A requests to access a target network host with network host information AA. After receiving the foregoing access request, the access intermediary screens out three resource directories corresponding to the user information A, namely aa, bb, and cc. Among these three resource directories, only the resource directory aa corresponds to the target network host AA, so the resource directory aa is used as the finally determined resource directory. Of course, within the optional range of those skilled in the art, the access intermediary can also first screen out the resource directory corresponding to the target network host information, and then screen out the resource directory corresponding to the user information from these resource directories as the finally determined resource directory.
[0094] As an alternative implementation, it is also possible to filter according to the information of the target network host to obtain a resource directory list Y, and filter according to the user information to obtain a resource directory list X; compare the resource directory list X with the resource directory list Y, filter out the resource directory that exists in both the resource directory list X and the resource directory list Y, and use the resource directory as the final resource directory.
[0095] Of course, within the optional scope of those skilled in the art, other methods and / or sequences may be used to obtain user information and target network host information, and determine the resource directory based on the obtained user information and target network host information.
[0096] Solution three, the access agent determines the corresponding resource directory based on the environment variable information (such as date, time, etc.) and the acquired user information, as well as the pre-configured correspondence.
[0097] Specifically, all combinations of user information and environment variable information are listed, and each combination is configured with a corresponding resource directory. The access agent determines the resource directory based on the environment variable information, the acquired user information, and the aforementioned correspondence. For example, a user with user information A requests to access a target network host on Monday (environment variable information). After receiving the aforementioned access request, the access agent (which has pre-configured the resource directory corresponding to when user A initiates the access request on Monday, i.e., has pre-configured the aforementioned correspondence) determines the resource directory corresponding to when user A initiates the access request on Monday based on the pre-configured correspondence as the final resource directory.
[0098] In addition, a step-by-step screening method can also be used to determine the resource directory. Specifically, after the access intermediary obtains the user information, it screens out the resource directory corresponding to the user information in the pre-configured information (such as the correspondence between the user information and the resource directory), and then screens out the resource directory that conforms to the current environment variable information from these resource directories as the final resource directory. For example, a user with user information A requests to access a target network host at 17:00. After the access intermediary receives the aforementioned access request, it screens out the resource directories corresponding to the user information according to the user information, including aa, bb, and cc, a total of three. The accessible times corresponding to these three resource directories are 9:00-11:00, 13:00-15:00, and 16:00-18:00, respectively. Then, the resource directory cc is used as the final resource directory. Of course, within the optional scope of those skilled in the art, the access intermediary can also first screen out the resource directories that conform to the current environment variable information, and then screen out the resource directory corresponding to the user information from these resource directories as the final resource directory.
[0099] As an alternative implementation, it is also possible to perform filtering based on environmental variable information to obtain a resource directory list Z, and perform filtering based on user information to obtain a resource directory list X; compare the resource directory list X with the resource directory list Z, filter out the resource directories that exist in both the resource directory list X and the resource directory list Z, and use this resource directory as the finally determined resource directory.
[0100] Of course, within the scope optional for those skilled in the art, other methods and / or orders may also be used to obtain user information and current environmental variable information, and determine the resource directory based on the obtained user information and current environmental variable information.
[0101] Solution Four: The access intermediary determines the corresponding resource directory based on the obtained user information, environmental variable information, information of the target network host corresponding to the network host access request, and the pre-configured corresponding relationship.
[0102] Specifically, list all combination methods of user information, environmental variable information, and target network host information, and each combination method is configured with a corresponding resource directory. The access intermediary determines the resource directory based on the obtained user information, environmental variable information, and target network host information, and the foregoing corresponding relationship. For example, a user with user information A requests to access a target network host with network host information AA on Monday (environmental variable information). After receiving the foregoing access request, the access intermediary (which has pre-configured the resource directory corresponding to user A accessing network host AA on Monday) filters out the resource directory corresponding to user A accessing network host AA on Monday from the pre-configured corresponding relationship as the finally determined resource directory.
[0103] In addition, a step-by-step screening method can also be adopted to determine the resource directory. Specifically, after the access intermediary obtains the user information, it screens out the resource directory corresponding to the user information (such as Resource Directory 1) from the pre-configured information (such as the correspondence between user information and resource directory), then screens out the resource directory that conforms to the current environment variable information from Resource Directory 1 (such as Resource Directory 2), and then screens out the resource directory corresponding to the target network host information from Resource Directory 2 (such as Resource Directory 3) as the finally determined resource directory. For example, a user with user information A requests to access a target network host with network host information AA at 10:00. After receiving the foregoing access request, the access intermediary screens out the resource directory corresponding to the user information (the aforementioned Resource Directory 1) according to the user information, which includes aa, bb, and cc, a total of three. The accessible times corresponding to these three resource directories are 9:00 - 11:00, 9:00 - 11:00, and 16:00 - 18:00 respectively. Screening these three resource directories, taking resource directories aa and bb as Resource Directory 2, and only resource directory aa corresponds to the target network host AA, then taking resource directory aa as the finally determined resource directory. Of course, during the process of determining the resource directory, which condition (including user information, environment variable information, information of the target network host, etc.) to apply first for screening and which condition to apply later for screening can all be selected according to the situation.
[0104] As an alternative implementation, it is also possible to screen according to the environment variable information to obtain a resource directory list Z, screen according to the information of the target network host to obtain a resource directory list Y, and screen according to the user information to obtain a resource directory list X; compare the resource directory list X, the resource directory list Y, and the resource directory list Z, screen out the resource directory that exists in the resource directory list X, the resource directory list Y, and the resource directory list Z at the same time, and take this resource directory as the finally determined resource directory.
[0105] Of course, within the optional range of those skilled in the art, other methods and / or sequences can also be used to obtain the user information, the current environment variable information, and the information of the target network host, and determine the resource directory according to the obtained user information, current environment variable information, and information of the target network host.
[0106] Solution Five: The access intermediary creates a resource directory corresponding to the obtained user information as the finally determined resource directory.
[0107] Specifically, after the access intermediary obtains the user information, it creates a resource directory corresponding to the user information according to the user information (such as the permission range of the user, the current IP address of the local host used by the user, etc.).
[0108] As an alternative implementation, after the access intermediary obtains user information, if no resource directory corresponding to the user information is found in the pre-configured information (such as the correspondence between user information and the resource directory), a resource directory corresponding to the user information is created as the finally determined resource directory.
[0109] Solution Six: The access intermediary creates a corresponding resource directory based on the obtained user information and the information of the target network host corresponding to the network host access request as the finally determined resource directory.
[0110] Specifically, after the access intermediary obtains the user information and the target network host information, it creates a resource directory corresponding to the user information and the target network host information based on the user information (such as the user's permission scope, the current IP address of the local host used by the user, etc.) and the target network host information (such as the network host name, IP address, etc.).
[0111] As an alternative implementation, the access intermediary searches (filters) in the pre-configured information (such as when a certain user accesses a certain network host, it corresponds to a certain resource directory) based on the obtained user information and the target network host information. If no corresponding resource directory is found (filtered out), a resource directory corresponding to the user information and the target network host is created as the finally determined resource directory. For example, a user with user information A requests to access a target network host with network host information AA. After the access intermediary receives the foregoing access request, it searches (filters) in the pre-configured information. If no corresponding resource directory is found (filtered out), a resource directory is created as the resource directory corresponding to user A when accessing network host AA (the finally determined resource directory).
[0112] Of course, within the scope optional for those skilled in the art, the step-by-step filtering method in Solution Two can also be used to search (filter) whether there is a corresponding resource directory in the pre-configured information. If not, a corresponding resource directory is created as the finally determined resource directory.
[0113] Solution Seven: The access intermediary creates a corresponding resource directory based on the environmental variable information (such as date, time, etc.) and the obtained user information as the finally determined resource directory.
[0114] Specifically, after the access intermediary obtains the user information, it creates a resource directory corresponding to the user information and the environmental variable information based on the user information (such as the user's permission scope, the current IP address of the local host used by the user, etc.) and the environmental variable information (such as time, date, weather conditions, etc.).
[0115] As an alternative implementation, the access mediator searches (filters) in the pre-configured information (such as a certain resource directory corresponding to a user's access request at a certain time) based on the acquired user information and environmental variable information. If the corresponding resource directory is not found (filtered out), a resource directory corresponding to the user information and environmental variable information is created as the finally determined resource directory. For example, a user with user information A requests to access a certain target network host on Monday (environmental variable information). After receiving the aforementioned access request, the access mediator searches (filters) in the pre-configured information. If the corresponding resource directory is not found (filtered out), a resource directory is created as the resource directory corresponding to user A's access request on Monday (the finally determined resource directory).
[0116] Of course, within the scope optional for those skilled in the art, the step-by-step filtering method in Solution 3 can also be used to search (filter) whether there is a corresponding resource directory in the pre-configured information. If not, a corresponding resource directory is created as the finally determined resource directory.
[0117] Solution 8: The access mediator creates a corresponding resource directory as the finally determined resource directory based on the acquired user information, environmental variable information, and information about the target network host corresponding to the network host access request.
[0118] Specifically, after the access mediator acquires the user information, environmental variable information, and target network host information, it creates a resource directory corresponding to the user information, target network host information, and environmental variable information based on the user information (such as the user's permission scope, the current IP address of the local host used by the user, etc.), the target network host information (such as the network host name, IP address, etc.), and the environmental variable information.
[0119] As an alternative implementation, the access mediator searches (filters) in the pre-configured information (such as a certain resource directory corresponding to a user's request to access a certain network host at a certain time) based on the acquired user information, environmental variable information, and target network host information. If the corresponding resource directory is not found (filtered out), a resource directory corresponding to the user information, environmental variable information, and target network host information is created as the finally determined resource directory. For example, a user with user information A requests to access a target network host with network host information AA on Monday (environmental variable information). After receiving the aforementioned access request, the access mediator searches (filters) in the pre-configured information. If the corresponding resource directory is not found (filtered out), a resource directory is created as the resource directory corresponding to user A's request to access network host AA on Monday (the finally determined resource directory).
[0120] Of course, within the scope of options available to those skilled in the art, the step-by-step screening method in Solution 4 can also be used to find (screen) whether there is a corresponding resource directory in the pre-configured information. If not, a corresponding resource directory is created as the finally determined resource directory.
[0121] Access the target network host and request the target network host to map the resource directory to a predetermined path of the target network host through the network.
[0122] In this embodiment, after the access intermediary determines the corresponding resource directory based on the user information, it accesses the target network host and requests the target network host to map the resource directory to a predetermined path of the target network host through the network. The target network host only needs to map its specified local path (the aforementioned predetermined path) as the resource directory, so that the specified local path on the target network host can be dynamically associated with the resource directory when accessed by the user, so that the host application can directly use the local path to access and operate the files in the corresponding resource directory of the network file server. In addition, by mapping the resource directory through the access intermediary, on the one hand, it avoids the files in the resource directory from falling on the user's local host, and can effectively solve problems such as information leakage, loss, and information out-of-sync that are likely to occur when the files fall on the user's local host; on the other hand, it can enable multiple users to share network resources and promote collaboration.
[0123] As Figure 5 shown, on the other hand, an aspect of the present invention provides a network host access method supporting dynamic resource mapping, including:
[0124] Receive a network host access request and obtain information about the target network host corresponding to the network host access request therefrom.
[0125] In this embodiment, the user sends a network host access request from the local host to the access intermediary (within the scope of options available to those skilled in the art, it can be that the local host directly sends an access request to the access intermediary, or it can be sent to the access intermediary via a network proxy), requesting to access one or some network hosts (referred to as target network hosts). The access intermediary receives the network host access request and obtains information about the target network host corresponding to the network host access request therefrom.
[0126] Determine a corresponding resource directory based on the information of the target network host.
[0127] The determination of the corresponding resource directory based on the information of the target network host specifically means determining the corresponding resource directory based on the data information containing the information of the target network host; in this embodiment, the access intermediary determines the corresponding resource directory, and the following several solutions can be adopted:
[0128] Solution 1: The access intermediary determines the corresponding resource directory based on the information of the target network host that has been obtained and the pre-configured correspondence between the information of the target network host and the resource directory.
[0129] Specifically, after the access intermediary obtains the information of the target network host, it uses the resource directory corresponding to the information of the target network host in the pre-configured information (such as the correspondence between the information of the target network host and the resource directory) as the finally determined resource directory. For example, when a user requests to access a target network host with network host information AA, the access intermediary (which has pre-configured the resource directory corresponding to network host AA) receives the aforementioned access request and filters out the resource directory corresponding to network host AA from the pre-configured correspondence as the finally determined resource directory. In practical applications, the information of the target network host may correspond to only one resource directory or multiple resource directories.
[0130] Solution 2: The access intermediary determines the corresponding resource directory based on the environmental variable information (such as date, time, etc.), the information of the target network host that has been obtained, and the pre-configured correspondence.
[0131] Specifically, list all combination methods of the information of the target network host and the environmental variable information, and each combination method is configured with a corresponding resource directory. The access intermediary determines the resource directory based on the environmental variable information, the information of the target network host that has been obtained, and the aforementioned correspondence. For example, when a user requests to access a target network host with network host information AA on Monday (environmental variable information), the access intermediary (which has pre-configured the resource directory corresponding to the request to access network host AA on Monday) receives the aforementioned access request and determines the resource directory corresponding to the user's request to access network host AA on Monday from the pre-configured correspondence as the finally determined resource directory.
[0132] In addition, a step-by-step screening method can be adopted to determine the resource directory. Specifically, after the access intermediary obtains the target network host information, it screens out the resource directory corresponding to the target network host information from the pre-configured information (such as the correspondence between the target network host information and the resource directory), and then screens out the resource directory that conforms to the current environment variable information from these resource directories as the finally determined resource directory. For example, when the user requests to access the target network host with the network host information of AA at 17:00, after receiving the foregoing access request, the access intermediary screens out three resource directories corresponding to the target network host information, namely aa, bb, and cc. The accessible times corresponding to these three resource directories are 9:00-11:00, 13:00-15:00, and 16:00-18:00 respectively. Then, the resource directory cc is used as the finally determined resource directory. Of course, within the scope optional for those skilled in the art, it is also possible for the access intermediary to first screen out the resource directories that conform to the current environment variable information, and then screen out the resource directories corresponding to the target network host information from these resource directories as the finally determined resource directory.
[0133] As an alternative implementation, it is also possible to screen according to the environment variable information to obtain the resource directory list Z, and screen according to the target network host information to obtain the resource directory list Y; compare the resource directory list Y with the resource directory list Z, screen out the resource directories that exist in both the resource directory list Y and the resource directory list Z, and use this resource directory as the finally determined resource directory.
[0134] Of course, within the scope optional for those skilled in the art, other methods and / or orders can also be used to obtain the user information and the current environment variable information, and determine the resource directory according to the obtained user information and the current environment variable information.
[0135] Solution 3: The access intermediary creates a resource directory corresponding to the obtained target network host information as the finally determined resource directory.
[0136] Specifically, after the access intermediary obtains the target network host information, it creates a resource directory corresponding to the target network host information based on the target network host information (such as the network host name, IP address, etc.).
[0137] As an alternative implementation, after the access intermediary obtains the target network host information, if no resource directory corresponding to the target network host information is found in the pre-configured information (such as the correspondence between the target network host information and the resource directory), it creates a resource directory corresponding to the target network host information as the finally determined resource directory.
[0138] Solution 4: The access intermediary creates a corresponding resource directory based on the environmental variable information (such as date, time, weather conditions, etc.) and the obtained target network host information as the finally determined resource directory.
[0139] Specifically, after obtaining the target network host information, the access intermediary creates a resource directory corresponding to the target network host information and the environmental variable information based on the target network host information (such as network host name, IP address, etc.) and the environmental variable information (such as time, date, weather conditions, etc.).
[0140] As an alternative implementation, the access intermediary searches (filters) in the pre-configured information (such as when a user requests to access a certain target network host at a certain time, it corresponds to a certain resource directory) according to the obtained target network host information and environmental variable information. If the corresponding resource directory is not found (filtered out), a resource directory corresponding to the target network host information and the environmental variable information is created as the finally determined resource directory. For example, the user requests to access a target network host with network host information AA on Monday (environmental variable information). After receiving the foregoing access request, the access intermediary searches (filters) in the pre-configured information. If the corresponding resource directory is not found (filtered out), a resource directory is created as the resource directory corresponding to the user's request to access the target network host AA on Monday (the finally determined resource directory).
[0141] Of course, within the optional range of those skilled in the art, the step-by-step screening method in Solution 2 can also be used to search (filter) whether there is a corresponding resource directory in the pre-configured information. If not, a corresponding resource directory is created as the finally determined resource directory.
[0142] Access the target network host and request the target network host to map the resource directory to a predetermined path of the target network host through the network.
[0143] In this embodiment, after the access intermediary determines the corresponding resource directory based on the user information, it accesses the target network host and requests the target network host to map the resource directory to a predetermined path of the target network host through the network. The target network host only needs to map its specified local path (the foregoing predetermined path) as the resource directory, so that the specified local path on the target network host can be dynamically associated with the resource directory when the user accesses it, so that the host application can directly use the local path to access and operate the files in the corresponding resource directory of the network file server.
[0144] As Figure 6 shown, on the other hand, an aspect of the present invention provides a network host access method supporting dynamic resource mapping, including:
[0145] Receive a network host access request and obtain information about the target network host corresponding to the network host access request from it.
[0146] In this embodiment, the user sends a network host access request from the local host to the access intermediary (within the optional range of those skilled in the art, it can be that the local host directly sends an access request to the access intermediary, or it can be sent to the access intermediary via a network proxy), requesting to access one or some network hosts (referred to as target network hosts). The access intermediary receives the network host access request and obtains information about the target network host corresponding to the network host access request from it.
[0147] Determine the corresponding resource directory according to the current environment variable information;
[0148] The so-called determining the corresponding resource directory according to the current environment variable information specifically means determining the corresponding resource directory according to the data information containing the environment variable information. In this embodiment, the access intermediary determines the corresponding resource directory, and the following several solutions can be adopted:
[0149] Solution 1: The access intermediary determines the corresponding resource directory according to the current environment variable information and the pre-configured correspondence between the environment variable information and the resource directory.
[0150] Specifically, after the access intermediary obtains the current environment variable information, it uses the resource directory in the pre-configured information (such as the correspondence between the environment variable information and the resource directory) that conforms to the current environment variable information as the finally determined resource directory.
[0151] For example, when the user requests to access a certain target network host on Monday, the access intermediary (which has pre-configured the resource directory corresponding to the access request initiated on Monday) receives the aforementioned access request and filters out the resource directory that can be accessed on Monday from the pre-configured correspondence as the finally determined resource directory. In practical applications, the environment variable information may correspond to only one resource directory or multiple resource directories.
[0152] Solution 2: The access intermediary creates a resource directory corresponding to the current environment variable information according to the current environment variable information as the finally determined resource directory.
[0153] Specifically, after the access intermediary obtains the current environment variable information, it creates a resource directory corresponding to the environment variable information (such as date, time, weather conditions, etc.) according to the environment variable information. For example, it determines the corresponding resource directory according to the current time, allowing the user to temporarily access the network files under this resource directory during the current time period.
[0154] As an alternative implementation, after the access mediator obtains the current environment variable information, if the resource directory corresponding to the environment variable information cannot be found in the pre-configured information (such as the correspondence between the environment variable information and the resource directory), a resource directory corresponding to the environment variable information is created as the finally determined resource directory.
[0155] Access the target network host and request the target network host to map the resource directory to a predetermined path of the target network host through the network.
[0156] In this embodiment, after the access mediator determines the corresponding resource directory according to the user information, it accesses the target network host and requests the target network host to map the resource directory to a predetermined path of the target network host through the network. The target network host only needs to map its specified local path (the aforementioned predetermined path) as the resource directory, so that the specified local path on the target network host can be dynamically associated with the resource directory when the user accesses it, so that the host application can directly use the local path to access and operate the files in the corresponding resource directory of the network file server.
[0157] As Figure 7 shown, a network host access system supporting dynamic resource mapping includes a local host 700, an access mediator 7A, and a target network host 702.
[0158] The local host 700 is configured to initiate a network host access request and can be an intelligent terminal device such as a PC, a tablet computer, or a mobile phone for user operation. The user 701 can send a network host access request to the access mediator 7A through the local host 700 (within the optional range of those skilled in the art, it can be that the local host directly sends an access request to the access mediator or sends an access request to the access mediator via a network proxy), requesting to access one or some network hosts (referred to as target network hosts).
[0159] The access mediator 7A is configured to receive a network host access request, obtain user information and information about the target network host corresponding to the network host access request therefrom; determine the corresponding resource directory according to the user information; access the target network host, and request the target network host to map the resource directory to a predetermined path of the target network host through the network. As Figure 8As shown in the figure, the access mediator 7A in this embodiment includes an access receiver 801, an access transmitter 803, and a resource directory determiner 805. The access receiver 801 is configured to receive a network host access request, obtain user information and information about the target network host corresponding to the network host access request from it. On the one hand, it sends the information related to determining the resource directory that it receives and obtains (such as user information, environment variable information, target network host information, etc.) to the resource directory confirmator 805. On the other hand, it passes the network host access request to the access transmitter 803. The resource directory determiner 805 is configured to determine the corresponding resource directory according to the received information. The access transmitter 803 is configured to request to access the target network host according to the request passed by the access receiver 801, and request the target network host to map the resource directory determined by the resource directory determiner 805 to a predetermined path of the target network host through the network.
[0160] In this example, the resource directory determiner 805 is configured to determine the resource directory corresponding to the user information according to the obtained user information and the pre-configured correspondence between the user information and the resource directory.
[0161] Specifically, after the access receiver 801 obtains the user information, it sends it to the resource directory determiner 805. The resource directory determiner 805 uses the resource directory corresponding to the user information in the pre-configured information (the correspondence between the user information and the resource directory) as the finally determined resource directory. In practical applications, the user information may correspond to only one resource directory or multiple resource directories.
[0162] The target network host 702 is installed with a host application 703 and is configured to receive the access request of the access mediator 7A and map its specified local path (the aforementioned predetermined path) to the resource directory determined by the access mediator 7A according to the request of the access mediator 7A. That is, it maps the network file 707 to the target network host 702 to form a dynamic network mapping file 705, so that the specified local path on the target network host 702 is dynamically associated with the resource directory when the user accesses it, so that the host application 703 can directly use the local path to access and operate the network file 707 located in the corresponding resource directory of the network file server. In addition, by mapping the resource directory through the access mediator 7A, on the one hand, it avoids the files in the resource directory from falling on the user's local host 700, and can effectively solve problems such as information leakage, loss, and information out-of-sync that are likely to occur when the files fall on the user's local host 700. On the other hand, it can enable multiple users to share network resources and promote collaboration.
[0163] Within the optional range of those skilled in the art, the resource directory determiner 805 can also be configured in the following several schemes:
[0164] In Solution A, the resource directory determiner 805 determines the corresponding resource directory according to the acquired user information, the information of the target network host corresponding to the network host access request, and the pre-configured corresponding relationship.
[0165] Specifically, the resource directory determiner 805 lists all combination methods of the user information and the target network host information, and each combination method is configured with a corresponding resource directory. After the access receiver 801 acquires the user information and the target network host information, it sends them to the resource directory determiner 805; the resource directory determiner 805 determines the resource directory according to the received user information, the information of the target network host, and the foregoing corresponding relationship. For example, a user with user information A requests to access a target network host with network host information AA. The resource directory determiner 805 (which has pre-configured the resource directory corresponding to user A accessing network host AA) filters out the resource directory corresponding to user A accessing network host AA from the pre-configured corresponding relationship as the finally determined resource directory.
[0166] In addition, a step-by-step filtering method can also be used to determine the resource directory. Specifically, after receiving the user information, the resource directory determiner 805 filters out the resource directory corresponding to the user information from the pre-configured information (such as the corresponding relationship between the user information and the resource directory), and then filters out the resource directory corresponding to the target network host information from these resource directories as the finally determined resource directory. For example, a user with user information A requests to access a target network host with network host information AA. The resource directory determiner 805 filters out three resource directories corresponding to the user information A, namely aa, bb, and cc. Among these three resource directories, only the resource directory aa corresponds to the target network host AA, so the resource directory aa is used as the finally determined resource directory. Of course, within the optional range of those skilled in the art, the resource directory determiner 805 can also first filter out the resource directory corresponding to the target network host information, and then filter out the resource directory corresponding to the user information from these resource directories as the finally determined resource directory.
[0167] As an alternative implementation, it is also possible to filter according to the information of the target network host to obtain a resource directory list Y, filter according to the user information to obtain a resource directory list X; compare the resource directory list X with the resource directory list Y, filter out the resource directories that exist in both the resource directory list X and the resource directory list Y, and use this resource directory as the finally determined resource directory.
[0168] Of course, within the optional range of those skilled in the art, other methods and / or orders can also be used to obtain the user information and the information of the target network host, and determine the resource directory according to the obtained user information and the information of the target network host.
[0169] In Solution B, the resource directory determiner 805 determines the corresponding resource directory according to the environmental variable information (such as date, time, etc.), the obtained user information, and the pre-configured corresponding relationship.
[0170] Specifically, the resource directory determiner 805 lists all combination ways of the user information and the environmental variable information, and a corresponding resource directory is configured for each combination way. After obtaining the user information and the current environmental variable information, the access receiver 801 sends them to the resource directory determiner 805; the resource directory determiner 805 determines the resource directory according to the received environmental variable information, the user information, and the foregoing corresponding relationship. For example, a user with user information A requests to access a certain target network host on Monday (environmental variable information), and the resource directory determiner 805 (which has pre-configured the resource directory corresponding to user A's access request on Monday, that is, the foregoing corresponding relationship has been pre-configured) determines the resource directory corresponding to user A's access request on Monday according to the pre-configured corresponding relationship as the finally determined resource directory.
[0171] In addition, a step-by-step screening method can also be used to determine the resource directory. Specifically, after receiving the user information, the resource directory determiner 805 screens out the resource directories corresponding to the user information from the pre-configured information (such as the corresponding relationship between the user information and the resource directory), and then screens out the resource directories that meet the current environmental variable information from these resource directories as the finally determined resource directory. For example, a user with user information A requests to access a certain target network host at 17:00. The resource directory determiner 805 screens out three resource directories corresponding to the user information, namely aa, bb, and cc. The accessible times corresponding to these three resource directories are 9:00 - 11:00, 13:00 - 15:00, and 16:00 - 18:00 respectively. Then, the resource directory cc is used as the finally determined resource directory. Of course, within the optional range of those skilled in the art, the resource directory determiner 805 can also first screen out the resource directories that meet the current environmental variable information, and then screen out the resource directories corresponding to the user information from these resource directories as the finally determined resource directory.
[0172] As an alternative implementation, it is also possible to screen according to the environmental variable information to obtain the resource directory list Z, screen according to the user information to obtain the resource directory list X; compare the resource directory list X with the resource directory list Z, screen out the resource directories that exist in both the resource directory list X and the resource directory list Z, and use this resource directory as the finally determined resource directory.
[0173] Of course, within the scope of options available to those skilled in the art, other methods and / or sequences may also be used to obtain user information and current environment variable information, and to determine the resource directory based on the obtained user information and current environment variable information.
[0174] Solution C: The resource directory determiner 805 determines the corresponding resource directory based on the obtained user information, environment variable information, information about the target network host corresponding to the network host access request, and the preconfigured corresponding relationship.
[0175] Specifically, the resource directory determiner 805 lists all combination methods of user information, environment variable information, and target network host information, and each combination method is configured with a corresponding resource directory. After the access receiver 801 obtains the user information, current environment variable information, and target network host information, it sends them to the resource directory determiner 805; the resource directory determiner 805 determines the resource directory based on the received user information, environment variable information, and target network host information, and the foregoing corresponding relationship. For example, a user with user information A requests to access a target network host with network host information AA on Monday (environment variable information), and the resource directory determiner 805 (which has preconfigured the resource directory corresponding to user A accessing network host AA on Monday) filters out the resource directory corresponding to user A accessing network host AA on Monday from the preconfigured corresponding relationship as the finally determined resource directory.
[0176] In addition, a step-by-step screening method can be adopted to determine the resource directory. Specifically, after receiving the user information, the resource directory determiner 805 screens out the resource directory corresponding to the user information (such as Resource Directory 1) from the pre-configured information (such as the correspondence between user information and resource directories), then screens out the resource directory that conforms to the current environment variable information from Resource Directory 1 (such as Resource Directory 2), and then screens out the resource directory corresponding to the target network host information from Resource Directory 2 (such as Resource Directory 3) as the finally determined resource directory. For example, a user with user information A requests to access a target network host with network host information AA at 10:00. The resource directory determiner 805 screens out the resource directory corresponding to the user information (the aforementioned Resource Directory 1) according to the user information, which includes aa, bb, and cc, a total of three. The accessible times corresponding to these three resource directories are 9:00 - 11:00, 9:00 - 11:00, and 16:00 - 18:00 respectively. Screening these three resource directories, aa and bb are taken as Resource Directory 2. Only Resource Directory aa corresponds to the target network host AA, so Resource Directory aa is taken as the finally determined resource directory. Of course, during the process of determining the resource directory, which condition (including user information, environment variable information, information of the target network host, etc.) is applied for screening first and which condition is applied for screening later can be selected according to the situation.
[0177] As an alternative implementation, it is also possible to screen according to the environment variable information to obtain the resource directory list Z, screen according to the information of the target network host to obtain the resource directory list Y, and screen according to the user information to obtain the resource directory list X; compare the resource directory list X, the resource directory list Y, and the resource directory list Z, screen out the resource directories that exist in the resource directory list X, the resource directory list Y, and the resource directory list Z at the same time, and take this resource directory as the finally determined resource directory.
[0178] Of course, within the optional range of those skilled in the art, other methods and / or orders can also be used to obtain the user information, the current environment variable information, and the information of the target network host, and determine the resource directory according to the obtained user information, the current environment variable information, and the information of the target network host.
[0179] Solution D: The resource directory determiner 805 creates a resource directory corresponding to the obtained user information as the finally determined resource directory.
[0180] Specifically, after the access receiver 801 obtains the user information, it sends the information to the resource directory determiner 805. After receiving the user information, the resource directory determiner 805 creates a resource directory corresponding to the user information according to the user information (such as the user's permission scope, the current IP address of the local host used by the user, etc.).
[0181] As an alternative implementation, after the resource directory determiner 805 receives the user information, if it fails to find a resource directory corresponding to the user information in the pre-configured information (such as the correspondence between user information and resource directories), it creates a resource directory corresponding to the user information as the finally determined resource directory.
[0182] For Solution E, the resource directory determiner 805 creates a corresponding resource directory according to the obtained user information and the information of the target network host corresponding to the network host access request as the finally determined resource directory.
[0183] Specifically, after the access receiver 801 obtains the user information and the target network host information, it sends the information to the resource directory determiner 805. The resource directory determiner 805 creates a resource directory corresponding to the user information and the target network host information according to the user information (such as the user's permission scope, the current IP address of the local host used by the user, etc.) and the target network host information (such as the network host name, IP address, etc.).
[0184] As an alternative implementation, the resource directory determiner 805 searches (filters) in the pre-configured information (such as a certain resource directory corresponding to a certain user accessing a certain network host) according to the received user information and the information of the target network host. If no corresponding resource directory is found (filtered out), it creates a resource directory corresponding to the user information and the target network host as the finally determined resource directory. For example, a user with user information A requests to access a target network host with network host information AA. The resource directory determiner 805 searches (filters) in the pre-configured information. If no corresponding resource directory is found (filtered out), it creates a resource directory as the resource directory corresponding to user A accessing network host AA (the finally determined resource directory).
[0185] Of course, within the optional range of those skilled in the art, the step-by-step screening method in Solution A can also be used to search (filter) whether there is a corresponding resource directory in the pre-configured information. If not, a corresponding resource directory is created as the finally determined resource directory.
[0186] For Solution F, the resource directory determiner 805 creates a corresponding resource directory according to the environmental variable information (such as date, time, etc.) and the obtained user information as the finally determined resource directory.
[0187] Specifically, the access receiver 801 sends the obtained user information and current environment variable information to the resource directory determiner 805. After receiving the user information, the resource directory determiner 805 creates a resource directory corresponding to the user information and environment variable information based on the user information (such as the user's permission scope, the current IP address of the local host used by the user, etc.) and the environment variable information (such as time, date, weather conditions, etc.).
[0188] As an alternative implementation, the resource directory determiner 805 searches (filters) in the pre-configured information (such as when a certain user initiates an access request at a certain time, it corresponds to a certain resource directory) according to the received user information and environment variable information. If the corresponding resource directory is not found (filtered out), a resource directory corresponding to the user information and environment variable information is created as the finally determined resource directory. For example, a user with user information A requests to access a certain target network host on Monday (environment variable information). The resource directory determiner 805 searches (filters) in the pre-configured information. If the corresponding resource directory is not found (filtered out), a resource directory is created as the resource directory corresponding to the access request initiated by user A on Monday (the finally determined resource directory).
[0189] Of course, within the optional range of those skilled in the art, the step-by-step filtering method in Solution B can also be used to search (filter) whether there is a corresponding resource directory in the pre-configured information. If not, a corresponding resource directory is created as the finally determined resource directory.
[0190] Solution G: The resource directory determiner 805 creates a corresponding resource directory as the finally determined resource directory according to the obtained user information, environment variable information, and information of the target network host corresponding to the network host access request.
[0191] Specifically, the access receiver 801 sends the obtained user information, current environment variable information, and target network host information to the resource directory determiner 805. After receiving the user information, environment variable information, and target network host information, the resource directory determiner 805 creates a resource directory corresponding to the user information, target network host information, and environment variable information based on the user information (such as the user's permission scope, the current IP address of the local host used by the user, etc.), the target network host information (such as network host name, IP address, etc.), and the environment variable information.
[0192] As an alternative implementation, the resource directory determiner 805 searches (filters) in the pre-configured information (such as when a certain user requests to access a certain network host at a certain time, it corresponds to a certain resource directory) based on the received user information, environment variable information, and information of the target network host. If the corresponding resource directory is not found (filtered out), a resource directory corresponding to the user information, environment variable information, and target network host information is created as the finally determined resource directory. For example, a user with user information A requests to access a target network host with network host information AA on Monday (environment variable information). The resource directory determiner 805 searches (filters) in the pre-configured information. If the corresponding resource directory is not found (filtered out), a resource directory is created as the resource directory corresponding to user A's request to access network host AA on Monday (the finally determined resource directory).
[0193] Of course, within the options available to those skilled in the art, the step-by-step filtering method in Solution C can also be used to search (filter) whether there is a corresponding resource directory in the pre-configured information. If not, a corresponding resource directory is created as the finally determined resource directory.
[0194] In Solution H, the resource directory determiner 805 determines the corresponding resource directory according to the obtained information of the target network host and the pre-configured correspondence between the target network host information and the resource directory.
[0195] Specifically, after the access receiver 801 obtains the target network host information, it sends it to the resource directory determiner 805. After receiving the target network host information, the resource directory determiner 805 uses the resource directory corresponding to the target network host information in the pre-configured information (such as the correspondence between the target network host information and the resource directory) as the finally determined resource directory. For example, when a user requests to access a target network host with network host information AA, the resource directory determiner 805 (which has pre-configured the resource directory corresponding to network host AA) filters out the resource directory corresponding to network host AA from the pre-configured correspondence as the finally determined resource directory. In practical applications, the target network host information may correspond to only one resource directory or multiple resource directories.
[0196] In Solution I, the resource directory determiner 805 determines the corresponding resource directory according to the environment variable information (such as date, time, etc.), the obtained information of the target network host, and the pre-configured correspondence.
[0197] Specifically, the resource directory determiner 805 lists all combinations of the target network host information and the environment variable information, and each combination is configured with a corresponding resource directory. After obtaining the target network host information and the current environment variable information, the access receiver 801 sends them to the resource directory determiner 805; the resource directory determiner 805 determines the resource directory according to the environment variable information, the received target network host information, and the foregoing corresponding relationship. For example, when the user requests to access the target network host with the network host information AA on Monday (environment variable information), the resource directory determiner 805 (which has been pre-configured with the resource directory corresponding to the request to access the network host AA on Monday) determines the resource directory corresponding to the user's request to access the network host AA on Monday according to the pre-configured corresponding relationship as the finally determined resource directory.
[0198] In addition, a step-by-step screening method can also be used to determine the resource directory. Specifically, after receiving the target network host information, the resource directory determiner 805 screens out the resource directory corresponding to the target network host information from the pre-configured information (such as the corresponding relationship between the target network host information and the resource directory), and then screens out the resource directory that meets the current environment variable information from these resource directories as the finally determined resource directory. For example, when the user requests to access the target network host with the network host information AA at 17:00, the resource directory determiner 805 screens out three resource directories corresponding to the target network host information, namely aa, bb, and cc. The accessible times corresponding to these three resource directories are 9:00 - 11:00, 13:00 - 15:00, and 16:00 - 18:00 respectively, then the resource directory cc is used as the finally determined resource directory. Of course, within the scope optional for those skilled in the art, the resource directory determiner 805 can also first screen out the resource directories that meet the current environment variable information, and then screen out the resource directory corresponding to the target network host information from these resource directories as the finally determined resource directory.
[0199] As an alternative implementation, it is also possible to screen according to the environment variable information to obtain the resource directory list Z, screen according to the target network host information to obtain the resource directory list Y; compare the resource directory list Y with the resource directory list Z, screen out the resource directories that exist in both the resource directory list Y and the resource directory list Z, and use this resource directory as the finally determined resource directory.
[0200] Of course, within the scope optional for those skilled in the art, other methods and / or orders can also be used to obtain the user information and the current environment variable information, and determine the resource directory according to the obtained user information and the current environment variable information.
[0201] In Solution J, the resource directory determiner 805 creates a resource directory corresponding to the obtained target network host information as the finally determined resource directory.
[0202] Specifically, after obtaining the target network host information, the access receiver 801 sends it to the resource directory determiner 805. The resource directory determiner 805 creates a resource directory corresponding to the received target network host information (such as network host name, IP address, etc.).
[0203] As an alternative implementation, after receiving the target network host information, if the resource directory determiner 805 fails to find a resource directory corresponding to the target network host information in the pre-configured information (such as the correspondence between the target network host information and the resource directory), it creates a resource directory corresponding to the target network host information as the finally determined resource directory.
[0204] In Solution K, the resource directory determiner 805 creates a corresponding resource directory according to the environmental variable information (such as date, time, weather conditions, etc.) and the obtained target network host information as the finally determined resource directory.
[0205] Specifically, after obtaining the target network host information and the current environmental variable information, the access receiver 801 sends them to the resource directory determiner 805. After receiving the target network host information, the resource directory determiner 805 creates a resource directory corresponding to the target network host information and the environmental variable information according to the target network host information (such as network host name, IP address, etc.) and the environmental variable information (such as time, date, weather conditions, etc.).
[0206] As an alternative implementation, the resource directory determiner 805 searches (filters) in the pre-configured information (such as when a user requests to access a certain target network host at a certain time, it corresponds to a certain resource directory) according to the received target network host information and environmental variable information. If no corresponding resource directory is found (filtered out), it creates a resource directory corresponding to the target network host information and the environmental variable information as the finally determined resource directory. For example, when the user requests to access a target network host with network host information AA on Monday (environmental variable information), the resource directory determiner 805 searches (filters) in the pre-configured information. If no corresponding resource directory is found (filtered out), it creates a resource directory as the resource directory corresponding to the user's request to access the target network host AA on Monday (the finally determined resource directory).
[0207] Of course, within the scope optional for those skilled in the art, the step-by-step screening method in Solution I can also be adopted to find (screen) whether there is a corresponding resource directory in the pre-configured information. If not, a corresponding resource directory is created as the finally determined resource directory.
[0208] Solution L: The resource directory determiner 805 determines the corresponding resource directory according to the current environment variable information and the corresponding relationship between the pre-configured environment variable information and the resource directory.
[0209] Specifically, the access receiver 801 obtains the current environment variable information and sends it to the resource directory determiner 805. After receiving the current environment variable information, the resource directory determiner 805 uses the resource directory in the pre-configured information (such as the corresponding relationship between the environment variable information and the resource directory) that conforms to the current environment variable information as the finally determined resource directory.
[0210] For example, when the user requests to access a certain target network host on Monday, the resource directory determiner 805 (which has pre-configured the resource directory corresponding to the access request initiated on Monday) screens out the resource directory that can be accessed on Monday from the pre-configured corresponding relationship as the finally determined resource directory. In practical applications, the environment variable information may correspond to only one resource directory or multiple resource directories.
[0211] Solution M: The resource directory determiner 805 creates a resource directory corresponding to the current environment variable information as the finally determined resource directory.
[0212] Specifically, the access receiver 801 obtains the current environment variable information and sends it to the resource directory determiner 805. After receiving the current environment variable information, the resource directory determiner 805 creates a resource directory corresponding to the environment variable information (such as date, time, weather conditions, etc.). For example, the corresponding resource directory is determined according to the current time, allowing the user to temporarily access the network files under this resource directory during the current time period.
[0213] As an alternative implementation, after receiving the current environment variable information, if the resource directory determiner 805 fails to find a resource directory corresponding to the environment variable information in the pre-configured information (such as the corresponding relationship between the environment variable information and the resource directory), it creates a resource directory corresponding to the environment variable information as the finally determined resource directory.
[0214] The examples in the above various embodiments are for further helping to understand the solution of the present invention and are not limitations on the technical solution of the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A network host access method supporting dynamic resource mapping, applied to an access intermediary, characterized in that including: Receiving a network host access request sent by a user through a local host, and obtaining user information and information of a target network host corresponding to the network host access request therefrom; Determining a corresponding resource directory according to the user information, specifically including: determining a corresponding resource directory according to the obtained user information, environment variable information, information of the target network host corresponding to the network host access request, and a pre-configured corresponding relationship; Accessing the target network host, and requesting the target network host to map the resource directory to a predetermined path of the target network host through the network, so that the predetermined path on the target network host is dynamically associated with the resource directory when accessed by the user, so that the host application can directly use the predetermined path to access and operate files located in the corresponding resource directory in the network file server.
2. A network host access system supporting dynamic resource mapping, characterized in that, including: A local host for initiating a network host access request; An access intermediary for receiving a network host access request and obtaining user information and information of a target network host corresponding to the network host access request therefrom; Determining a corresponding resource directory according to the user information, specifically including: determining a corresponding resource directory according to the obtained user information, environment variable information, information of the target network host corresponding to the network host access request, and a pre-configured corresponding relationship; accessing the target network host, and requesting the target network host to map the resource directory to a predetermined path of the target network host through the network, so that the predetermined path on the target network host is dynamically associated with the resource directory when accessed by the user, so that the host application can directly use the predetermined path to access and operate files located in the corresponding resource directory in the network file server; A target network host for accepting access from the access intermediary and mapping its predetermined path to the resource directory according to the request of the access intermediary.
3. A network host access processing device supporting dynamic resource mapping, comprising: A memory and a processor connected by communication, and a computer program stored on the memory and capable of running on the processor, characterized in that: when the processor runs the computer program, it executes the method described in claim 1.
Citation Information
Patent Citations
Data access method, device and system
CN104283941A
Network resource access request processing method and system and computer equipment
CN112511569A