1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

B #5513: Only match one LDAP match_user_regex entry (#5514)

When a match is made, the username is changed. It's then
inappropriate to attempt further matches because we're not using
the original username.

If multiple matches were made with the original username, there
could be no single modified username to return. An alternative
would be to return pairs of server and modified username.

Signed-off-by: Simon Arlott
(cherry picked from commit 721aa612326262bd1cb370743218b2632a67b306)
This commit is contained in:
Simon Arlott 2021-09-16 14:08:53 +01:00 committed by Ruben S. Montero
parent fc285cc9c9
commit 3516cc1d09
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -274,6 +274,7 @@ def get_server_order(opts, user)
user = m[1] if m[1]
order << to_array(server)
break
end
end