A method for replacing AD domain to provide unified authentication based on ldap protocol
By using the unified authentication method of the LDAP protocol, the problems of inconvenient account management and login errors for employees of large power companies in different application systems have been solved, enabling users to log in conveniently in multiple application systems.
Patent Information
- Application Number
- CN202310117734.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-15
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2043-02-15
AI Technical Summary
When employees of large power companies log in to different application systems, account management is inconvenient and Active Directory domain authentication is prone to errors, resulting in a poor user experience due to login failures.
A login authentication server based on the LDAP protocol is adopted, and an LDAP service module and a user directory information management module are set up. Unified authentication is achieved through the LDAP service module and the LDAP network access service module, and users can log in to multiple applications with a single account.
It improves the convenience of account management, reduces login errors, and enhances the user login experience.
Smart Images

Figure CN116074100B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of network management, and in particular relates to a method for providing unified authentication by replacing an AD domain based on an LDAP protocol. Background Art
[0002] For large power companies, the digitalization and networking of enterprises have a great role in improving work efficiency and improving management models. As the ecosystem of the entire group's application system continues to grow, there are many types of application systems, which cover various work scenarios such as supply chain management, project management, financial management, human resources management, and customer service management. Since there are too many different application systems in the group, if the user terminal registers an account in each application system, it will be too inconvenient for the user terminal to log in to the system, and the login experience will be very unfriendly. At present, enterprises use AD domains to uniformly authenticate users to log in to various application systems. AD domain authentication is prone to errors. For example, after an account logs in to an application, logs out, and then changes a device to log in to another application, it is easy to fail to log in. During the login process, it is also easy to display unknown user names or wrong passwords, etc., which makes it inconvenient to use and unfriendly. Summary of the invention
[0003] The present invention aims to provide a method for providing unified authentication based on the ldap protocol instead of the AD domain, so as to solve the technical problems in the prior art that when the group's employees log in to various application systems, account management is inconvenient, and authentication of user login behavior through the AD domain is prone to errors, resulting in login authentication failure.
[0004] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0005] Provide a method for replacing AD domain to provide unified authentication based on ldap protocol, including:
[0006] Setting a login authentication server, wherein the login authentication server is provided with an ldap service module, and a user directory information management module is set in the ldap service module, and the user directory information management module is used to manage the relevant information of each user's registered account;
[0007] The user's terminal device is provided with a first application login module and a second application login module, which are used to log in to the first application and the second application respectively, and the user's terminal device is provided with an ldap network access service module;
[0008] When a user logs in to the first application and the second application respectively through the first application login module and the second application login module, based on the ldap service module and the ldap network access service module, the user is authenticated through a set of accounts and can log in to both the first application and the second application.
[0009] Preferably, when a user logs in to the first application through the first application login module, the authentication method is as follows:
[0010] (1) The user enters the account number and password in the first application login module;
[0011] (2) the ldap network access service module obtains the account number and the account password, and the ldap network access service module sends an authentication data packet to the ldap service module, wherein the authentication data packet includes the account number and the account password;
[0012] (3) The ldap service module is bound to the received account number by default, and the ldap service module performs a search operation on the user directory information management module according to the account number, and the user directory information management module returns user information related to the account number to the ldap service module;
[0013] (4) The ldap service module performs a second binding operation based on the user information related to the account number and the obtained account password. If the binding is successful, it means that the authentication is successful.
[0014] Preferably, the user directory information management module is provided with an account number storage directory, an account password storage directory, a user domain name directory, a user ID directory, and a user organization unit directory.
[0015] Preferably, the user information related to the account number includes the account number, account password, user domain name, user ID, and user organizational unit.
[0016] Preferably, the authentication data packet also includes the user domain name, user ID, and user organizational unit of the terminal device.
[0017] Compared with the prior art, the beneficial effects of the present invention are as follows: the method for providing unified authentication in place of the AD domain based on the ldap protocol sets a login authentication server, an ldap service module is provided in the login authentication server, a user directory information management module is provided in the ldap service module, and the user directory information management module is used to manage the relevant information of each user's registered account; a first application login module and a second application login module are provided in the user's terminal device, which are respectively used to log in to the first application and the second application, and the user's terminal device is provided with an ldap network access service module; when the user logs in to the first application and the second application respectively through the first application login module and the second application login module, based on the ldap service module and the ldap network access service module, the user is authenticated through a set of accounts, and can log in to both the first application and the second application. Therefore, when group employees log in to various application systems, account management is more convenient, and the ldap service module is a mature and reliable account management module, which reduces the phenomenon of login errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 The present invention is a flowchart of an embodiment of a method for providing unified authentication in place of an AD domain based on the ldap protocol.
[0019] Figure 2 This is an architectural diagram of a user directory information management module in an embodiment of a method for providing unified authentication in place of an AD domain based on the ldap protocol of the present invention. DETAILED DESCRIPTION
[0020] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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.
[0021] A method based on ldap protocol to replace AD domain to provide unified authentication, please refer to Figure 1 and Figure 2 .
[0022] like Figure 1 As shown, the method for providing unified authentication based on the ldap protocol instead of the AD domain includes:
[0023] Set up a third-party independent login authentication server, which has an ldap service module. Set up a user directory information management module in the ldap service module. The user directory information management module is used to manage the relevant information of each user's registered account. Figure 2 As shown, the user directory information management module is provided with an account number storage directory, an account password storage directory, a user domain name directory, a user ID directory, and a user organization unit directory.
[0024] Among them, the account number storage directory is used to store account numbers, the account password storage directory is used to store account passwords, the user domain name directory is used to store the domain name of the terminal device, the user ID directory is used to store the address of the terminal province, and the user organizational unit directory is used to store the organizational unit corresponding to the terminal device.
[0025] The user's terminal device is provided with a first application login module and a second application login module, which are respectively used to log in to the first application and the second application, and the user's terminal device is provided with an ldap network access service module. When the user logs in to the first application and the second application respectively through the first application login module and the second application login module, based on the ldap service module and the ldap network access service module, the user is authenticated through a set of accounts and can log in to both the first application and the second application.
[0026] Specifically, when a user logs in to the first application through the first application login module, the authentication method is as follows:
[0027] (1) The user enters the account number and password in the first application login module;
[0028] (2) The ldap network access service module obtains the account number and the account password, and the ldap network access service module sends an authentication data packet to the ldap service module, wherein the authentication data packet includes the account number and the account password;
[0029] (3) The ldap service module is bound to the received account number by default. The ldap service module performs a search operation on the user directory information management module according to the account number. The user directory information management module returns user information related to the account number to the ldap service module.
[0030] (4) The ldap service module performs a second binding operation based on the user information related to the account password and account number obtained. If the binding is successful, it means that the authentication is successful.
[0031] When a user logs in to the second application through the second application login module, the authentication method is as follows:
[0032] (1) The user enters the same account number and password in the second application login module;
[0033] (2) The ldap network access service module obtains the account number and the account password, and the ldap network access service module sends an authentication data packet to the ldap service module, wherein the authentication data packet includes the account number and the account password;
[0034] (3) The ldap service module is bound to the received account number by default. The ldap service module performs a search operation on the user directory information management module according to the account number. The user directory information management module returns user information related to the account number to the ldap service module.
[0035] (4) The ldap service module performs a second binding operation based on the user information related to the account password and account number obtained. If the binding is successful, it means that the authentication is successful.
[0036] Furthermore, user information related to the account number includes the account number, account password, user domain name, user ID, and user organizational unit. The authentication data packet also includes the user domain name, user ID, and user organizational unit of the terminal device, allowing for multi-factor authentication to ensure authentication security.
[0037] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0038] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for providing unified authentication based on ldap protocol to replace AD domain, characterized in that: include: Setting a login authentication server, wherein the login authentication server is provided with an ldap service module, and a user directory information management module is set in the ldap service module, and the user directory information management module is used to manage the relevant information of each user's registered account; The user's terminal device is provided with a first application login module and a second application login module, which are used to log in to the first application and the second application respectively, and the user's terminal device is provided with an ldap network access service module; When a user logs in to the first application and the second application respectively through the first application login module and the second application login module, based on the ldap service module and the ldap network access service module, the user is authenticated through a set of accounts and logs in to the first application or the second application; When a user logs in to the first application through the first application login module, the authentication method is as follows: (1) The user enters the account number and password in the first application login module; (2) the ldap network access service module obtains the account number and the account password, and the ldap network access service module sends an authentication data packet to the ldap service module; (3) The ldap service module is bound to the received account number by default, and the ldap service module performs a search operation on the user directory information management module according to the account number, and the user directory information management module returns user information related to the account number to the ldap service module; (4) The ldap service module performs a second binding operation based on the user information related to the account number and the obtained account password. If the binding is successful, it means that the authentication is successful; The user directory information management module is provided with an account number storage directory, an account password storage directory, a user domain name directory, a user ID directory and a user organization unit directory; The user information related to the account number includes the account number, account password, user domain name, user ID and user organizational unit.
2. The method for providing unified authentication based on the ldap protocol to replace the AD domain according to claim 1 is characterized in that: The authentication data packet includes an account number and an account password.
3. The method for providing unified authentication based on ldap protocol instead of AD domain according to claim 2 is characterized in that: The authentication data packet also includes the user domain name of the terminal device.
4. The method for providing unified authentication based on the ldap protocol instead of the AD domain according to claim 2 is characterized in that: The authentication data packet also includes the user ID of the terminal device.
5. The method for providing unified authentication based on ldap protocol instead of AD domain according to claim 2 is characterized in that: The authentication data packet also includes the user organization unit of the terminal device.
