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 2 commits into from Nov 17, 2017
Changes from 1 commit
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+3 −0
Diff settings


Just for now


* Added support for LDAP user authentication.

  • Loading branch information...
Pradeep Mishra
Pradeep Mishra committed Oct 13, 2017
commit 990443d0c579b1b9d6c8ce4e302136bf3c95c399
Copy path View file
@@ -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?
Copy path View file
@@ -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,
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.