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

This commit is contained in:
Vlastimil Holer authored and Ruben S. Montero committed 2017-11-27 09:43:30 +01:00
1 parent 6773dd8189
commit 9eecb45924
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]