Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?


Failed to load latest commit information.
Latest commit message
Commit time
April 4, 2023 18:10
September 13, 2016 11:51
April 4, 2023 18:10
February 21, 2023 17:17
April 4, 2023 18:10
April 6, 2022 11:33
February 21, 2023 17:17
February 21, 2023 17:17
April 5, 2021 20:16

GoDoc Build Status

Basic LDAP v3 functionality for the GO programming language.

The library implements the following specifications:


  • Connecting to LDAP server (non-TLS, TLS, STARTTLS)
  • Binding to LDAP server
  • Searching for entries
  • Filter Compile / Decompile
  • Paging Search Results
  • Modify Requests / Responses
  • Add Requests / Responses
  • Delete Requests / Responses
  • Modify DN Requests / Responses

Go Modules:

go get

As go-ldap was v2+ when Go Modules came out, updating to Go Modules would be considered a breaking change.

To maintain backwards compatability, we ultimately decided to use subfolders (as v3 was already a branch). Whilst this duplicates the code, we can move toward implementing a backwards-compatible versioning system that allows for code reuse. The alternative would be to increment the version number, however we believe that this would confuse users as v3 is in line with LDAPv3 (RFC-4511)

For more info, please visit the pull request that updated to modules. #247

To install with GOMODULE111=off, use go get

As always, we are looking for contributors with great ideas on how to best move forward.


Bug reports and pull requests are welcome!

Before submitting a pull request, please make sure tests and verification scripts pass:

make all

To set up a pre-push hook to run the tests and verify scripts before pushing:

ln -s ../../.githooks/pre-push .git/hooks/pre-push

The Go gopher was designed by Renee French. ( The design is licensed under the Creative Commons 3.0 Attributions license. Read this article for more details: