mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
Add support for proxy certificates to X509 Cloud Auth
This commit is contained in:
1 parent
9aff29cfb0
commit
32b8d4262e
1 file changed
+6
-2
@@ -34,8 +34,12 @@ module X509CloudAuth
|
||||
end
|
||||
|
||||
# Password should be DN with whitespace removed.
|
||||
username = get_username(
|
||||
OpenNebula::X509Auth.escape_dn(cert.subject.to_s))
|
||||
username = get_username(OpenNebula::X509Auth.escape_dn(
|
||||
cert.subject.to_s))
|
||||
|
||||
# For proxy certificates look at the issuer
|
||||
username = get_username(OpenNebula::X509Auth.escape_dn(
|
||||
cert.issuer.to_s)) if username.nil?
|
||||
|
||||
return username if username
|
||||
|
||||
|
||||
Reference in new issue
Block a user