add an example auth program that allow to authenticate against LDAP

External authentication is the way to go to authenticate against LDAP,
at least for now.

Closes #99
This commit is contained in:
Nicola Murino
2020-04-11 22:30:41 +02:00
parent 37357b2d63
commit b0ed190591
5 changed files with 209 additions and 1 deletions

10
examples/ldapauth/go.mod Normal file
View File

@@ -0,0 +1,10 @@
module github.com/drakkan/ldapauth
go 1.14
require (
github.com/go-asn1-ber/asn1-ber v1.4.1 // indirect
github.com/go-ldap/ldap/v3 v3.1.8
golang.org/x/crypto v0.0.0-20200406173513-056763e48d71
golang.org/x/sys v0.0.0-20200409092240-59c9f1ba88fa // indirect
)