diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-03-06 15:26:33 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-03-06 15:39:57 +0300 |
commit | 757dca2b78c8b218295c855d6b7529bad05ae24b (patch) | |
tree | ce2c6beca88ce1c76a88235a8d8d94c02e6a8381 /lib/gitlab/ldap/authentication.rb | |
parent | e916f1c295050ef26aef7b309843df6a8cac158e (diff) |
Escape wildcards when searching LDAP by username.
Diffstat (limited to 'lib/gitlab/ldap/authentication.rb')
-rw-r--r-- | lib/gitlab/ldap/authentication.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ldap/authentication.rb b/lib/gitlab/ldap/authentication.rb index 8af2c74e959..649cf3194b8 100644 --- a/lib/gitlab/ldap/authentication.rb +++ b/lib/gitlab/ldap/authentication.rb @@ -50,7 +50,7 @@ module Gitlab end def user_filter(login) - filter = Net::LDAP::Filter.eq(config.uid, login) + filter = Net::LDAP::Filter.equals(config.uid, login) # Apply LDAP user filter if present if config.user_filter.present? |