1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00

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

This commit is contained in:
Vlastimil Holer 2017-11-27 09:43:30 +01:00 committed by Ruben S. Montero
parent 6773dd8189
commit 9eecb45924

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]