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:
parent
6773dd8189
commit
9eecb45924
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user