How go-ldap/ldap works
This is a Go LDAPv3 client library: application code connects to a directory server, performs LDAP operations, and consumes responses or errors. The graph preserves the README’s major operation families and the core protocol, search, identity, and authentication capabilities. Source excerpts show connection setup and a bind delegation; most operation-to-transport wiring was not shown, so those internal links are omitted rather than inferred.
Main entry points: client.go Client interface · bind.go Bind operations · conn.go Connection · control.go LDAP controls
Components 20
Connection and protocol
- Connection
v3/conn.go - Protocol packets
v3/packet.go - Responses and errors
v3/response.go - LDAP controls
v3/control.go
Directory operations
- Search and sync
v3/search.go - Modify entries
v3/modify.go - Add entries
v3/add.go - Delete entries
v3/del.go - Rename entries
v3/moddn.go - Extended operations
v3/extended.go - Password modify
v3/passwdmodify.go - Who Am I
v3/whoami.go - Client interface
v3/client.go
Identity and filters
- Distinguished names
v3/dn.go - Filter compile
v3/filter.go
Authentication
- Bind operations
v3/bind.go - GSSAPI client
v3/gssapi/client.go - Windows SSPI
v3/gssapi/sspi.go
Other components
- Application
- LDAP server
Connections 18
- Application → Connection: connects
README.md - Connection → LDAP server: communicates
README.md - Application → Client interface: uses
README.md - Client interface → Search and sync: offers search
v3/client.go - Client interface → Modify entries: offers modify
v3/client.go - Client interface → Add entries: offers add
README.md - Client interface → Delete entries: offers delete
README.md - Client interface → Rename entries: offers rename
v3/client.go - Client interface → Extended operations: offers extended
v3/client.go - Client interface → Password modify: offers password
v3/client.go - Client interface → Who Am I: offers identity
README.md - Client interface → Bind operations: offers bind
v3/client.go - Bind operations → Bind operations: delegates simple bind
v3/bind.go - Application → Distinguished names: parses names
README.md - Application → Filter compile: compiles filters
README.md - Application → LDAP controls: configures controls
README.md - Bind operations → GSSAPI client: supports GSSAPI
- Bind operations → Windows SSPI: supports Windows auth