mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-25 06:03:36 +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]
|
@options[:attributes] << @options[:user_field]
|
||||||
end
|
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[:host]=@options[:host] if @options[:host]
|
||||||
ops[:port]=@options[:port].to_i if @options[:port]
|
ops[:port]=@options[:port].to_i if @options[:port]
|
||||||
ops[:encryption]=@options[:encryption] if @options[:encryption]
|
ops[:encryption]=@options[:encryption] if @options[:encryption]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user