A method, device and equipment for calling Kerberos ticket information
Through the calling method of Kerberos ticket information, RPC calls and custom serialization processing are used to solve the problem of redundant ticket storage in different nodes and different services in the microservice environment, achieving reasonable utilization of resources and improving data transmission efficiency.
Patent Information
- Application Number
- CN202211674883.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-26
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-12-26
AI Technical Summary
In the fields of microservices, big data and distributed, different services on different nodes store user tickets with different permissions, resulting in redundant user ticket files, resulting in a waste of storage resources and management complexity.
Through the calling method of Kerberos ticket information, use RPC calls to distribute the ticket information to the target usage service, and persist it in the local directory to generate record node information to avoid repeated storage, using custom serialization processing and multi-level user management mode. Improve communication efficiency and resource utilization.
It effectively solves the file redundancy problem caused by different nodes and different services storing user tickets with different permissions, avoids the waste of storage resources, improves the rational utilization of resources, adapts to scenarios with large user systems and frequent ticket distribution, and improves data efficiency. transmission efficiency.
Smart Images

Figure CN116016624B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication, and in particular to a method, device and equipment for calling Kerberos ticket information. Background Art
[0002] In the past era of "monolithic applications", upgrading new technologies meant that all functions had to be upgraded. The cost of adopting new technologies was very high, which made teams afraid to try new technologies easily, thus putting them at a disadvantage in the market. For this reason, microservices came into being, which can put the original business into microservices while keeping the technology unchanged. In the fields of microservices, big data, and distributed systems, clustering technology is commonly used to obtain relatively high benefits in performance, reliability, and flexibility at a relatively low cost. However, with the increasing number of cluster interactions, handling the security of inter-cluster network communications has become an inevitable problem.
[0003] In the prior art, different services at different nodes store user tickets with different permissions, which causes the problem of user ticket file redundancy. Therefore, how to avoid storing user tickets with different permissions at different services at different nodes, which causes user ticket file redundancy, is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a method, device and equipment for calling Kerberos ticket information, which solves the problem of user ticket file redundancy caused by different services in different nodes storing user tickets with different permissions in the prior art.
[0005] In order to solve the above technical problems, the present invention provides a method for calling Kerberos ticket information, comprising:
[0006] The ticket distribution service distributes the target ticket information to the target usage service through RPC calls;
[0007] The target usage service persists the target ticket information to the local directory of the target usage service and generates record node information; the record node information is information that the target usage service already has the target ticket information;
[0008] The ticket distribution service receives the record node information and persists the record node information to a local directory of the ticket distribution service.
[0009] Optionally, the ticket distribution service distributes target ticket information to the target usage service through an RPC call, including:
[0010] The ticket distribution service divides the target ticket information into a plurality of target sub-ticket information;
[0011] The ticket distribution service distributes all the target sub-ticket information to the target usage service through RPC calls.
[0012] Optionally, the ticket distribution service distributes all the target sub-ticket information to the target usage service through an RPC call, including:
[0013] The ticket distribution service serializes all the target sub-ticket information in a customized manner;
[0014] The ticket distribution service distributes all the target sub-ticket information after the serialization process to the target usage service through RPC calling.
[0015] Optionally, persisting the recording node information to a local directory of the ticket distribution service includes:
[0016] When the record node information of the target usage service does not exist in the ticket distribution service, the record node information is persisted to the local directory of the ticket distribution service.
[0017] Optionally, before the ticket distribution service distributes the target ticket information to the target usage service through the RPC call, the method further includes:
[0018] One is selected from a plurality of distribution services as the ticket distribution service.
[0019] Optionally, the ticket distribution service distributes target ticket information to the target usage service through an RPC call, including:
[0020] The ticket distribution service simultaneously broadcasts all user ticket information to all target usage services;
[0021] Correspondingly, the target usage service persists the target ticket information to the local directory of the target usage service and generates node information, including:
[0022] All the target usage services persist the corresponding user ticket information to the local directory of the corresponding target usage service and generate corresponding node information;
[0023] All of the node information is used as the recorded node information.
[0024] Optionally, the ticket distribution service simultaneously broadcasts all user ticket information to all target usage services, including:
[0025] The ticket distribution service simultaneously broadcasts all tenant ticket information to all target usage services; the tenant ticket information includes multiple user ticket information.
[0026] The present invention also provides a device for calling Kerberos ticket information, comprising:
[0027] A distribution module, used for the ticket distribution service to distribute target ticket information to the target usage service through RPC calls;
[0028] A first processing module is used for the target usage service to persist the target ticket information to the local directory of the target usage service and generate record node information; the node information is information that the target usage service already has the target ticket information;
[0029] The second processing module is used for the ticket distribution service to receive the record node information and persist the record node information to the local directory of the ticket distribution service.
[0030] The present invention also provides a Kerberos ticket information calling device, comprising:
[0031] Memory for storing computer programs;
[0032] The processor is used to execute the computer program to implement the steps of the above-mentioned Kerberos ticket information calling method.
[0033] The present invention also provides a readable storage medium for storing a computer program, wherein the computer program implements the steps of the above-mentioned method for calling Kerberos ticket information when executed by a processor.
[0034] It can be seen that the calling method of Kerberos ticket information provided by the present invention is that the ticket distribution service distributes the target ticket information to the target use service through RPC call, the target use service persists the target ticket information to the local directory of the target use service, and generates record node information, wherein the record node information is the information of the target use service that already has the target ticket information, the ticket distribution service receives the record node information, and persists the record node information to the local directory of the ticket distribution service. The present invention realizes the sharing of Kerberos ticket authentication between different services on different cluster nodes through customizing RPC requests, thereby effectively solving the problem of file redundancy caused by the need to store user tickets with different permissions in different services on different nodes, avoiding the consumption of storage resources and ensuring the rational use of resources.
[0035] In addition, the present invention also provides a Kerberos ticket information calling device, equipment and readable storage medium, which also have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0037] Figure 1 A flowchart of a method for calling Kerberos ticket information provided by an embodiment of the present invention;
[0038] Figure 2 A schematic diagram of the structure of a device for calling Kerberos ticket information provided by an embodiment of the present invention;
[0039] Figure 3 A schematic diagram of the structure of a Kerberos ticket information calling device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] Please refer to Figure 1 , Figure 1 A flowchart of a method for calling Kerberos ticket information provided by an embodiment of the present invention. The method may include:
[0042] S101: The ticket distribution service distributes target ticket information to the target usage service through RPC call.
[0043] Under the communication of different modules in different nodes, we generally divide the service modules into ticket distribution service and ticket usage service according to the functions realized by the present invention. There can be multiple ticket distribution services and ticket usage services in the whole cluster. The ticket distribution service needs to have user tickets, or have the function of generating target tickets and have the authority to operate user tickets. The ticket distribution service can also be used as a ticket usage service. In this case, there is no need to request ticket authentication through RPC (Remote Procedure Call). Functionally, the ticket distribution service focuses more on tasks distribution, response business, unified management and other functions, while the ticket usage service undertakes business processing, response request and other functions.
[0044] It should be noted that in this embodiment, as long as the network between nodes can be kept smooth, the above method is also applicable when different modules of the same node communicate. This embodiment does not limit the number of target usage services. For example, the number of target usage services can be 1, or the number of target usage services can also be 2, or the number of target usage services can also be 3. This embodiment does not limit the specific method in which the ticket distribution service distributes the target ticket information to the target usage service through RPC calls, as long as the operation of the ticket distribution service distributing the target ticket information to the target usage service through RPC calls can be completed. For example, Netty can be used to construct a TCP request to distribute the target ticket information in the ticket distribution service to the target usage service through RPC calls; Netty can also be used to construct a UDP request to distribute the target ticket information in the ticket distribution service to the target usage service through RPC calls. In this embodiment, Netty is a high-performance, asynchronous event-driven NIO (non-blocking) framework, which is implemented based on the API (programming interface) provided by JAVA NIO. It provides support for TCP (Transmission Control Protocol), UDP (User Datagram Protocol) and file transfer. As an asynchronous NIO framework, all IO (input and output) operations of Netty are asynchronous and non-blocking. Through the Future-Listener (asynchronous operation) mechanism, users can easily obtain IO operation results actively or through the notification mechanism.
[0045] In this embodiment, Kerberos is a computer network authentication protocol that can provide strict identity authentication services for both parties in the network to ensure the authenticity and security of the identities of both parties. After initiating a service request, the Kerberos protocol must first perform a series of identity authentications, including two-way authentications between the client and the server. Only when both parties have authenticated each other's identities can they establish a connection and conduct network communication.
[0046] Furthermore, in order to improve the communication efficiency between the ticket distribution service and the target usage service and better adapt to the scenario where the user system is large and the ticket distribution is frequent, the above-mentioned ticket distribution service distributes the target ticket information to the target usage service through RPC call, which may include the following steps:
[0047] The ticket distribution service broadcasts all user ticket information to all target usage services at the same time.
[0048] Accordingly, the target usage service persists the target ticket information to the local directory of the target usage service and generates node information, which may include the following steps:
[0049] Step S11: All target usage services persist the corresponding user ticket information to the local directory of the corresponding target usage service and generate corresponding node information.
[0050] Step S12: taking all node information as record node information.
[0051] It should be noted that in this embodiment, for scenarios where the user system is large and ticket distribution is frequent, a unified distribution mode is used to avoid a large number of non-lightweight RPC requests carrying files. In the unified distribution mode, the elected ticket distribution service will broadcast RPC requests carrying all user tickets to all target usage services other than this node.
[0052] Furthermore, in order to improve the efficiency of managing a large number of user tickets, the ticket distribution service broadcasts all user ticket information to all target usage services at the same time, which may include the following steps:
[0053] The ticket distribution service broadcasts all tenant ticket information to all target usage services at the same time; the tenant ticket information includes multiple user ticket information.
[0054] In the case of rapid user growth, a multi-level user management model can be adopted. The minimum distribution unit of the ticket is the tenant. Users are established under each tenant. The system sets up permission control on the tenant-user side. Users with permissions use tenant tickets to make RPC calls. If the business or system calls are complex, ZooKeeper (a framework for consistency processing in distributed systems) can be used to implement the registration center model to manage system calls. That is, when each service is started, its network address and other information are recorded in the registration center. Service consumers query the service provider from the registration center and call the service provider's API through the corresponding address. Microservices communicate with the registration center using a heartbeat mechanism. If the registration center and the microservice cannot communicate for a long time, the service instance will be deregistered.
[0055] Furthermore, in order to improve the efficiency of data transmission between the ticket distribution service and the target use service, the above-mentioned ticket distribution service distributes the target ticket information to the target use service through RPC call, which may include the following steps:
[0056] Step S21: The ticket distribution service divides the target ticket information into multiple target sub-ticket information.
[0057] Step S22: The ticket distribution service distributes all target sub-ticket information to the target usage service through RPC calls.
[0058] In this embodiment, the target sub-bill information may include five parts: message header, Type, Number, Next, Length and Data, where Type is used to identify the type of target sub-bill information, Number is used to identify the serial number of the data block in the entire data file transmission, Next is used to identify whether there is any target sub-bill information of the same file to be transmitted after the target sub-bill information, Length is used to identify the size of the data of the target sub-bill information, and Data is the data of the target sub-bill information. This embodiment does not limit the preset capacity of the data of the target sub-bill information to be segmented. For example, the preset capacity of the data of the target sub-bill information to be segmented may be 3KB, or the preset capacity of the data of the target sub-bill information to be segmented may also be 4KB. It should be noted that in this embodiment, the capacity of the data of the last target sub-bill information to be segmented may be less than the preset capacity.
[0059] Furthermore, in order to ensure that the ticket distribution service can distribute all target sub-ticket information to the target usage service through RPC calls, and further improve the communication efficiency between the ticket distribution service and the target usage service, the above-mentioned ticket distribution service distributes all target sub-ticket information to the target usage service through RPC calls, which may include the following steps:
[0060] Step S31: The bill distribution service serializes all target sub-bill information in a customized manner.
[0061] Step S32: The ticket distribution service distributes all the serialized target sub-ticket information to the target usage service through RPC calls.
[0062] In this embodiment, the target sub-bill information is mainly concentrated in the file, and the file is transmitted in binary form during the transmission process. In business scenarios where file transmission is frequent or the data file is large, a custom method is used to serialize the data structure in the target sub-bill information to avoid the additional cost of using JDK native serialization.
[0063] It should be noted that the corresponding target usage service parses the received serialized target sub-bill information.
[0064] Furthermore, in order to ensure that only one of the multiple distribution services establishes communication with the target usage service, before the above-mentioned ticket distribution service distributes the target ticket information to the target usage service through the RPC call, the following steps may also be included:
[0065] Select one of multiple distribution services as the ticket distribution service.
[0066] S102: The target usage service persists the target ticket information to the local directory of the target usage service and generates record node information.
[0067] It should be noted that in this embodiment, the node information recorded is the information that the target usage service already has the target ticket information. When the target usage service persists the target ticket information to the local directory of the target usage service, the corresponding target ticket information is generated and has been persisted by the target usage service.
[0068] S103: The ticket distribution service receives the record node information and persists the record node information to the local directory of the ticket distribution service.
[0069] This embodiment does not limit the startup time of the program for receiving the record node information of the ticket distribution service, as long as it can receive the record node information generated by the target use service. For example, the program for receiving the record node information of the ticket distribution service can be in a startup state in real time, or the program for receiving the record node information of the ticket distribution service can also be started when distributing the target ticket information. This embodiment does not limit the frequency of the ticket distribution service receiving the record node information. For example, the ticket distribution service can receive the record node information in real time, or the ticket distribution service can also receive the record node information once every preset receiving time period. This embodiment does not limit the setting value of the preset receiving time period. For example, the setting value of the preset receiving time period can be 1 second, or the setting value of the preset receiving time period can also be 2 seconds, or the setting value of the preset receiving time period can also be 4 seconds. This embodiment does not limit the setting basis of the preset receiving time period. For example, the preset receiving time period can be set according to the operator's custom setting, or the preset receiving time period can also be set according to the priority of the Kerberos ticket information call, and the higher the priority level of the Kerberos ticket information call, the smaller the setting value of the preset receiving time period.
[0070] Furthermore, in order to avoid repeated persistence processing of the record node information, the above-mentioned persistence of the record node information to the local directory of the ticket distribution service may include the following steps:
[0071] When the record node information of the target usage service does not exist in the ticket distribution service, the record node information is persisted to the local directory of the ticket distribution service.
[0072] The method for calling Kerberos ticket information provided by the embodiment of the present invention is applied. The ticket distribution service distributes the target ticket information to the target use service through RPC call. The target use service persists the target ticket information to the local directory of the target use service and generates record node information, wherein the record node information is information that the target use service already has the target ticket information. The ticket distribution service receives the record node information and persists the record node information to the local directory of the ticket distribution service. The present invention realizes sharing of Kerberos ticket authentication between different services on different cluster nodes through customizing RPC requests, thereby effectively solving the problem of file redundancy caused by the need to store user tickets with different permissions in different services at different nodes, avoiding the consumption of storage resources and ensuring the rational use of resources. By broadcasting all user ticket information to all target usage services at the same time through the ticket distribution service, the communication efficiency between the ticket distribution service and the target usage service is improved, and it is better adapted to the scenario of a large user system and frequent ticket distribution; by adopting a multi-level user management model, the minimum distribution unit of the ticket is set as a tenant, and users are established under each tenant, which improves the efficiency of managing a large number of user tickets; by dividing the target ticket information into multiple target sub-ticket information, and serializing all target sub-ticket information in a customized way, one is selected from multiple distribution services as the ticket distribution service, which improves the efficiency of data transmission between the ticket distribution service and the target usage service, and ensures that the ticket distribution service can distribute all target sub-ticket information to the target usage service through RPC calls, further improving the communication efficiency between the ticket distribution service and the target usage service; by persisting the record node information to the local directory of the ticket distribution service when the record node information of the target usage service does not exist in the ticket distribution service, repeated persistence of the record node information is avoided.
[0073] In order to make the present invention easier to understand, the following is an introduction to a target sub-ticket information provided by an embodiment of the present invention, which may specifically include:
[0074] Message header and body.
[0075] The message header includes magic, eventType, msgLength and serialization, where magic is a magic number that identifies the RPC call. If the parsed magic number does not match the expected value, the target service will directly return an error; eventType identifies the type of the RPC call, which can be sending a request or receiving a response; msgLength identifies the total length of the fixed-length message header and the variable-length body; serialization identifies the specific serialization method.
[0076] The main part includes five parts: Type, Number, Next, Length and Data, among which Type is used to identify the type of target sub-ticket information; Number is used to identify the serial number of the data block in the entire data file transmission; Next is used to identify whether there is any target sub-ticket information in the same file to be transmitted after the target sub-ticket information; Length is used to identify the size of the data of the target sub-ticket information, and Data is the data of the target sub-ticket information.
[0077] A device for calling Kerberos ticket information provided by an embodiment of the present invention is introduced below. The device for calling Kerberos ticket information described below and the method for calling Kerberos ticket information described above can be referred to each other.
[0078] Please refer to Figure 2 , Figure 2 A schematic diagram of a structure of a device for calling Kerberos ticket information provided by an embodiment of the present invention may include:
[0079] A distribution module 100, used for the ticket distribution service to distribute target ticket information to the target usage service through RPC calls;
[0080] The first processing module 200 is used for the target usage service to persist the target ticket information to the local directory of the target usage service and generate record node information; the node information is information that the target usage service already has the target ticket information;
[0081] The second processing module 300 is used for the ticket distribution service to receive the record node information and persist the record node information to the local directory of the ticket distribution service.
[0082] Further, based on the above embodiment, the distribution module 100 may include:
[0083] A splitting unit, used for the ticket distribution service to split the target ticket information into a plurality of target sub-ticket information;
[0084] The first distribution unit is used for the ticket distribution service to distribute all the target sub-ticket information to the target usage service through RPC call.
[0085] Further, based on the above embodiment, the distribution unit may include:
[0086] A processing unit, used for the ticket distribution service to serialize all the target sub-ticket information in a customized manner;
[0087] The first distribution sub-unit is used for the ticket distribution service to distribute all the target sub-ticket information after the serialization process to the target usage service through RPC call.
[0088] Further, based on the above embodiment, the second processing module 300 may include:
[0089] A record node information persistence unit is used to persist the record node information to the local directory of the ticket distribution service when the record node information of the target usage service does not exist in the ticket distribution service.
[0090] Further, based on the above embodiment, the Kerberos ticket information calling device may further include:
[0091] The selection module is used to select one from multiple distribution services as the ticket distribution service.
[0092] Further, based on the above embodiment, the distribution module 100 may include:
[0093] A second distribution unit, used for the ticket distribution service to simultaneously broadcast all user ticket information to all target usage services;
[0094] Accordingly, the first processing module 200 may include:
[0095] A generating unit, configured for all the target usage services to persist the corresponding user ticket information to a local directory of the corresponding target usage service, and to generate corresponding node information;
[0096] An execution unit is used to use all of the node information as the recorded node information.
[0097] Further, based on the above embodiment, the second distribution unit may include:
[0098] The second distribution subunit is used for the ticket distribution service to simultaneously broadcast all tenant ticket information to all target usage services; the tenant ticket information includes multiple user ticket information.
[0099] The device for calling Kerberos ticket information provided by the embodiment of the present invention is used. The distribution module 100 is used for the ticket distribution service to distribute the target ticket information to the target use service through RPC call. The first processing module 200 is used for the target use service to persist the target ticket information to the local directory of the target use service and generate record node information; the node information is the information that the target use service already has the target ticket information; the second processing module 300 is used for the ticket distribution service to receive the record node information and persist the record node information to the local directory of the ticket distribution service. The present invention realizes the sharing of Kerberos ticket authentication between different services on different cluster nodes through custom RPC requests, thereby effectively solving the problem of file redundancy caused by the need to store user tickets with different permissions in different services at different nodes, avoiding the consumption of storage resources and ensuring the rational use of resources. By broadcasting all user ticket information to all target usage services at the same time through the ticket distribution service, the communication efficiency between the ticket distribution service and the target usage service is improved, and it is better adapted to the scenario of a large user system and frequent ticket distribution; by adopting a multi-level user management model, the minimum distribution unit of the ticket is set as a tenant, and users are established under each tenant, which improves the efficiency of managing a large number of user tickets; by dividing the target ticket information into multiple target sub-ticket information, and serializing all target sub-ticket information in a customized way, one is selected from multiple distribution services as the ticket distribution service, which improves the efficiency of data transmission between the ticket distribution service and the target usage service, and ensures that the ticket distribution service can distribute all target sub-ticket information to the target usage service through RPC calls, further improving the communication efficiency between the ticket distribution service and the target usage service; by persisting the record node information to the local directory of the ticket distribution service when the record node information of the target usage service does not exist in the ticket distribution service, repeated persistence of the record node information is avoided.
[0100] A Kerberos ticket information calling device provided by an embodiment of the present invention is introduced below. The Kerberos ticket information calling device described below and the Kerberos ticket information calling method described above can be referred to each other.
[0101] Please refer to 3, Figure 3 A schematic diagram of a structure of a device for calling Kerberos ticket information provided by an embodiment of the present invention may include:
[0102] A memory 10, used for storing computer programs;
[0103] The processor 20 is used to execute a computer program to implement the above-mentioned method for calling Kerberos ticket information.
[0104] The memory 10 , the processor 20 , and the communication interface 31 all communicate with each other via the communication bus 32 .
[0105] In the embodiment of the present invention, the memory 10 is used to store one or more programs, and the program may include program code, and the program code includes computer operation instructions. In the embodiment of the present application, the memory 10 may store programs for implementing the following functions:
[0106] The ticket distribution service distributes the target ticket information to the target usage service through RPC calls;
[0107] The target usage service persists the target ticket information to the local directory of the target usage service and generates record node information; the record node information is information about the target ticket information that already exists in the target usage service;
[0108] The ticket distribution service receives the record node information and persists the record node information to the local directory of the ticket distribution service.
[0109] In a possible implementation, the memory 10 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function, etc.; the data storage area may store data created during use.
[0110] In addition, the memory 10 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include an NVRAM. The memory stores an operating system and operating instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, wherein the operating instructions may include various operating instructions for implementing various operations. The operating system may include various system programs for implementing various basic tasks and processing hardware-based tasks.
[0111] The processor 20 may be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic device, a microprocessor or any conventional processor, etc. The processor 20 may call a program stored in the memory 10 .
[0112] The communication interface 31 may be an interface of a communication module, and is used to connect to other devices or systems.
[0113] Of course, it should be noted that Figure 3The structure shown does not constitute a limitation on the calling device of Kerberos ticket information in the embodiment of the present application. In actual applications, the calling device of Kerberos ticket information may include Figure 3 More or fewer components than shown, or combinations of certain components.
[0114] The following is an introduction to a readable storage medium provided in an embodiment of the present invention. The readable storage medium described below and the method for calling Kerberos ticket information described above can be referenced to each other.
[0115] The present invention also provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method for calling Kerberos ticket information are implemented.
[0116] The readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0117] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0118] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0119] Finally, it should be noted that, in this article, relationships such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variations are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0120] The above is a detailed introduction to the calling method, device, equipment and readable storage medium of Kerberos ticket information provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for calling Kerberos ticket information, It is characterized in that include: The ticket distribution service distributes the target ticket information to the target usage service through RPC calls; The target usage service persists the target ticket information to the local directory of the target usage service and generates record node information; the record node information is information that the target usage service already has the target ticket information; The ticket distribution service receives the record node information and persists the record node information to a local directory of the ticket distribution service; When the target usage service has user ticket information, or has the function of generating target ticket information and has the authority to operate user ticket information, there is no need to call the target ticket information through RPC.
2. The method for calling Kerberos ticket information according to claim 1, It is characterized in that The ticket distribution service distributes target ticket information to the target usage service through RPC calls, including: The ticket distribution service divides the target ticket information into a plurality of target sub-ticket information; The ticket distribution service distributes all the target sub-ticket information to the target usage service through RPC calls.
3. The method for calling Kerberos ticket information according to claim 2, It is characterized in that The ticket distribution service distributes all the target sub-ticket information to the target usage service through RPC call, including: The ticket distribution service serializes all the target sub-ticket information in a customized manner; The ticket distribution service distributes all the target sub-ticket information after the serialization process to the target usage service through RPC calling.
4. The method for calling Kerberos ticket information according to claim 1, It is characterized in that The step of persisting the recording node information to the local directory of the ticket distribution service includes: When the record node information of the target usage service does not exist in the ticket distribution service, the record node information is persisted to the local directory of the ticket distribution service.
5. The method for calling Kerberos ticket information according to claim 1, It is characterized in that Before the ticket distribution service distributes the target ticket information to the target usage service through RPC call, it also includes: One is selected from a plurality of distribution services as the ticket distribution service.
6. The method for calling Kerberos ticket information according to any one of claims 1 to 5, It is characterized in that The ticket distribution service distributes target ticket information to the target usage service through RPC calls, including: The ticket distribution service simultaneously broadcasts all user ticket information to all target usage services; Correspondingly, the target usage service persists the target ticket information to the local directory of the target usage service and generates node information, including: All the target usage services persist the corresponding user ticket information to the local directory of the corresponding target usage service and generate corresponding node information; All of the node information is used as the recorded node information.
7. The method for calling Kerberos ticket information according to claim 6, It is characterized in that The ticket distribution service simultaneously broadcasts all user ticket information to all target usage services, including: The ticket distribution service simultaneously broadcasts all tenant ticket information to all target usage services; the tenant ticket information includes multiple user ticket information.
8. A device for calling Kerberos ticket information, It is characterized in that include: A distribution module, used for the ticket distribution service to distribute target ticket information to the target usage service through RPC calls; A first processing module, configured for the target usage service to persist the target ticket information to a local directory of the target usage service and generate record node information; The node information is information that the target usage service already has the target ticket information; A second processing module, configured for the ticket distribution service to receive the record node information and persist the record node information to a local directory of the ticket distribution service; When the target usage service has user ticket information, or has the function of generating target ticket information and has the authority to operate user ticket information, there is no need to call the target ticket information through RPC.
9. A device for calling Kerberos ticket information, It is characterized in that include: Memory for storing computer programs; A processor, configured to implement the steps of the method for calling Kerberos ticket information as described in any one of claims 1 to 7 when executing the computer program.
10. A readable storage medium, It is characterized in that The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for calling Kerberos ticket information according to any one of claims 1 to 7 are implemented.
