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 ...@@ -16,7 +16,7 @@ module Gitlab
end end
def cn def cn
entry.cn.join(" ") entry.cn.first
end end
def name def name
......
...@@ -20,11 +20,11 @@ module Gitlab ...@@ -20,11 +20,11 @@ module Gitlab
end end
def name def name
entry.cn.join(" ") entry.cn.first
end end
def uid def uid
entry.send(config.uid).join(" ") entry.send(config.uid).first
end end
def username 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