Skip to content
Snippets Groups Projects
Commit 1502fed7 authored by Michael Alt's avatar Michael Alt
Browse files

Faulty LDAP DN name escaping removed

The Net::LDAP::Filter.escape function can not be used to escape the DN name because the backslash is required to escape special chars in the DN name. This leads to the error message "Access denied for your LDAP account." and prevents the user from logging in to gitlab.

Example DN: 
CN=Test\, User,OU=Organization,DC=Company
CN=Test User,OU=Organization,DC=Company

http://www.ietf.org/rfc/rfc4514.txt
parent 63da396f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -14,7 +14,6 @@ module Gitlab
end
 
def self.find_by_dn(dn, adapter)
dn = Net::LDAP::Filter.escape(dn)
adapter.user('dn', dn)
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment