From e519b3ce2ce0f82549283f5c5784de94833e5c6a Mon Sep 17 00:00:00 2001 From: Lars Eric Scheidler Date: Fri, 4 Jan 2013 16:28:23 +0100 Subject: [PATCH] + fix issues with utf-8 encoded ldap dn's (uid) --- lib/gitlab/auth.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/gitlab/auth.rb b/lib/gitlab/auth.rb index 8c45c93557e..3ae19996ed4 100644 --- a/lib/gitlab/auth.rb +++ b/lib/gitlab/auth.rb @@ -20,6 +20,7 @@ module Gitlab def create_from_omniauth(auth, ldap = false) provider = auth.provider uid = auth.info.uid || auth.uid + uid.force_encoding("utf-8") name = auth.info.name.force_encoding("utf-8") email = auth.info.email.downcase unless auth.info.email.nil? -- GitLab