Commit 062258df authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

LDAP: Use first value instead of joined one for uid, cn

parent 737bdc30
......@@ -16,7 +16,7 @@ module Gitlab
end
def cn
entry.cn.join(" ")
entry.cn.first
end
def name
......
......@@ -20,11 +20,11 @@ module Gitlab
end
def name
entry.cn.join(" ")
entry.cn.first
end
def uid
entry.send(config.uid).join(" ")
entry.send(config.uid).first
end
def username
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment