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

请修正支持ldap中objectclass可以配置 #75

Closed
gefire opened this Issue Jun 13, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@gefire
Contributor

gefire commented Jun 13, 2017

searchRequest := ldap.NewSearchRequest(
beego.AppConfig.String("ldap_base"),
ldap.ScopeWholeSubtree, ldap.NeverDerefAliases, 0, 0, false,
fmt.Sprintf("(&(objectClass=User)(%s=%s))", beego.AppConfig.String("ldap_attribute"), account),
[]string{"dn", "mail"},
nil,
)

请将objectClass=User改为可以配置的,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment