Categorygithub.com/t2y/go-ldap-sample
modulepackage
0.0.0-20240211143240-c76ddc83d125
Repository: https://github.com/t2y/go-ldap-sample.git
Documentation: pkg.go.dev

# README

go-ldap-sample

go-ldap sample code

How to run

Prepare environment variables to connect your LDAP server.

$ export LDAP_URL="localhost:636"
$ export LDAP_USER="cn=Manager,dc=example,dc=com"
$ export LDAP_PASSWORD="ldappassword"
$ export DN_SUFFIX="dc=example,dc=com"

Run search query.

$ go run main.go

# Structs

No description provided by the author