B #1489: Fix LDAP group membership checks with custom 'user_group_field'

(cherry picked from commit 9eecb45924)
This commit is contained in:
Vlastimil Holer authored and Ruben S. Montero committed 2017-11-27 09:49:47 +01:00
1 parent b5f8722aed
commit 4a8c96fef7
1 file changed
+5
+5
View File
@@ -66,6 +66,11 @@ class OpenNebula::LdapAuth
@options[:attributes] << @options[:user_field]
end
# fetch the user group field only if we need that
if @options[:group] or !@options[:rfc2307bis]
@options[:attributes] << @options[:user_group_field]
end
ops[:host]=@options[:host] if @options[:host]
ops[:port]=@options[:port].to_i if @options[:port]
ops[:encryption]=@options[:encryption] if @options[:encryption]