After component sharing, the back-end component - the operation package ldap based on LDAP V3 protocol implemented by Golang
background
Recently, we are exploring various common components and tools on the front-end, back-end, and system side, and reorganize some of the common components to form a standardized component topic, which will later include some commonly used components in various languages. Welcome everyone to continue to pay attention.
Component Basic Information
- Component: ldap
- Open source agreement: View license
content
In this section, we share an operation package ldap based on LDAP V3 protocol implemented in Golang .
feature:
- Connect to LDAP server (non-TLS, TLS, STARTTLS)
- Bind to LDAP server
- search term
- filter compilation/decompilation
- Paginated search results
- Modify request/response
- Add request/response
- delete request/response
- Modify DN request/response
Specific usage:
1. Installation
go get github.com/go-ldap/ldap/v3
The library implements the following specifications:
- https://tools.ietf.org/html/rfc4511 basic operation
- https://tools.ietf.org/html/rfc3062 for password modification operations
- https://tools.ietf.org/html/rfc4514 for distinguished name resolution
For specific usage, please refer to the README
This article declares:
This work is licensed by CN Hua Shao under the Creative Commons Attribution-Noncommercial 4.0 International License.