Skip to content

Commit

Permalink
Do not log plain text password when binding
Browse files Browse the repository at this point in the history
Log DN instead
  • Loading branch information
rojer committed Oct 13, 2015
1 parent 591f8c5 commit 5ea722c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth_server/authn/ldap_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (la *LDAPAuth) bindReadOnlyUser(l *ldap.Conn) error {
return err
}
password_str := strings.TrimSpace(string(password))
glog.V(2).Infof("Bind read-only user %s", password_str)
glog.V(2).Infof("Bind read-only user (DN = %s)", la.config.BindDN)
err = l.Bind(la.config.BindDN, password_str)
if err != nil {
return err
Expand Down

0 comments on commit 5ea722c

Please sign in to comment.