Basic LDAP v3 functionality for the GO programming language.
Clone or download
johnweldon Merge pull request #190 from johnweldon/update-travis
Update Travis config with recent Go versions, and make build scripts a little more resilient
Latest commit cf78c58 Oct 15, 2018
Permalink
Failed to load latest commit information.
.githooks Add makefile, run gofmt/golint/govet in travis Jul 1, 2016
.gitignore Converts the examples to go style examples Jun 28, 2015
.travis.yml Add go versions, make scripts more resilient Oct 15, 2018
CONTRIBUTING.md Add an initial Contributions Guideline document May 15, 2018
LICENSE Add attribution for go-ldap authors Sep 13, 2016
Makefile Add go versions, make scripts more resilient Oct 15, 2018
README.md add ModifyDN() - moddn/modrdn (#149) Feb 12, 2018
add.go add controls for add and modify requests Jun 5, 2018
bind.go use ber.DecodePacketErr() May 30, 2018
client.go add ModifyDN() - moddn/modrdn (#149) Feb 12, 2018
compare.go Update compare.go (#179) Aug 10, 2018
conn.go Use tls.DialWithDialer instead of net.DialTimeout (#173) Jun 7, 2018
conn_test.go fix typos Sep 23, 2017
control.go use ber.DecodePacketErr() May 30, 2018
control_test.go use ber.DecodePacketErr() May 30, 2018
debug.go fix typos Sep 23, 2017
del.go Fix control packets being encoded when none exist on bind Dec 7, 2017
dn.go use ber.DecodePacketErr() May 30, 2018
dn_test.go Fix unittests pointing to the external package "gopkg.in/ldap.v2" (#176) Jul 3, 2018
doc.go Converts the examples to go style examples Jun 28, 2015
error.go Require explicit intention for empty password. Aug 24, 2017
error_test.go fix typos Sep 23, 2017
example_test.go Fix unittests pointing to the external package "gopkg.in/ldap.v2" (#176) Jul 3, 2018
filter.go Remove stale references to BSD license (#136) Sep 29, 2017
filter_test.go Fix unittests pointing to the external package "gopkg.in/ldap.v2" (#176) Jul 3, 2018
ldap.go use ber.DecodePacketErr() May 30, 2018
ldap_test.go Require explicit intention for empty password. Aug 24, 2017
moddn.go add ModifyDN() - moddn/modrdn (#149) Feb 12, 2018
moddn_test.go Fix unittests pointing to the external package "gopkg.in/ldap.v2" (#176) Jul 3, 2018
modify.go add controls for add and modify requests Jun 5, 2018
passwdmodify.go use ber.DecodePacketErr() May 30, 2018
search.go use ber.DecodePacketErr() May 30, 2018
search_test.go fix typos Sep 23, 2017

README.md

GoDoc Build Status

Basic LDAP v3 functionality for the GO programming language.

Install

For the latest version use:

go get gopkg.in/ldap.v2

Import the latest version with:

import "gopkg.in/ldap.v2"

Required Libraries:

  • gopkg.in/asn1-ber.v1

Features:

  • 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

Examples:

  • search
  • modify

Contributing:

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. (http://reneefrench.blogspot.com/) The design is licensed under the Creative Commons 3.0 Attributions license. Read this article for more details: http://blog.golang.org/gopher