Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for LDAP user authentication. #2181

Merged
merged 2 commits into from Nov 17, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmd/bosun/conf/system.go
Expand Up @@ -178,6 +178,8 @@ type AuthConf struct {
type LDAPConf struct {
// Domain name (used to make domain/username)
Domain string
//user base dn (LDAP Auth)
UserBaseDn string
// LDAP server
LdapAddr string
// allow insecure ldap connection?
Expand Down
1 change: 1 addition & 0 deletions cmd/bosun/web/middlewares.go
Expand Up @@ -100,6 +100,7 @@ func buildAuth(cfg *conf.AuthConf) (easyauth.AuthManager, *token.TokenProvider,
func buildLDAPConfig(ld conf.LDAPConf) (*ldap.LdapProvider, error) {
l := &ldap.LdapProvider{
Domain: ld.Domain,
UserBaseDn: ld.UserBaseDn,
LdapAddr: ld.LdapAddr,
AllowInsecure: ld.AllowInsecure,
RootSearchPath: ld.RootSearchPath,
Expand Down
45 changes: 38 additions & 7 deletions vendor/github.com/captncraig/easyauth/providers/ldap/ldap.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions vendor/vendor.json
Expand Up @@ -290,26 +290,26 @@
{
"checksumSHA1": "2D5vo1CBsOIKPe9B0Phk1+m9uEg=",
"path": "github.com/captncraig/easyauth",
"revision": "f8cfe65ef31cd6959a9553175bb6caf1f5af928f",
"revisionTime": "2017-04-17T16:53:34Z"
"revision": "c6de284138cfb3c428a4870ceec7391fddcec2ef",
"revisionTime": "2017-10-13T13:10:59Z"
},
{
"checksumSHA1": "N51CVtTE9ZUN1I/+jJzFeb/SuXE=",
"checksumSHA1": "soJm64I35YJZMgxhIhfm86D+Ons=",
"path": "github.com/captncraig/easyauth/providers/ldap",
"revision": "f8cfe65ef31cd6959a9553175bb6caf1f5af928f",
"revisionTime": "2017-04-17T16:53:34Z"
"revision": "c6de284138cfb3c428a4870ceec7391fddcec2ef",
"revisionTime": "2017-10-13T13:10:59Z"
},
{
"checksumSHA1": "z+rzZ/v6jmr+VDDEWxrYbKnZJA4=",
"path": "github.com/captncraig/easyauth/providers/token",
"revision": "f8cfe65ef31cd6959a9553175bb6caf1f5af928f",
"revisionTime": "2017-04-17T16:53:34Z"
"revision": "c6de284138cfb3c428a4870ceec7391fddcec2ef",
"revisionTime": "2017-10-13T13:10:59Z"
},
{
"checksumSHA1": "bG2Nz0IR6+f6Re6IHrZN/yxfm1U=",
"path": "github.com/captncraig/easyauth/providers/token/redisStore",
"revision": "f8cfe65ef31cd6959a9553175bb6caf1f5af928f",
"revisionTime": "2017-04-17T16:53:34Z"
"revision": "c6de284138cfb3c428a4870ceec7391fddcec2ef",
"revisionTime": "2017-10-13T13:10:59Z"
},
{
"path": "github.com/coreos/go-systemd/dbus",
Expand Down