mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
feature #754: Removed uneeded parameters for x509 authenticate
This commit is contained in:
parent
7c362c64b4
commit
26387a9f88
src/authm_mad/remotes/x509
@ -44,7 +44,7 @@ proxy, cert = dsecret.split(':')
|
||||
|
||||
x509_auth = X509Auth.new(:cert=>cert)
|
||||
|
||||
rc = x509_auth.authenticate(user,pass,proxy)
|
||||
rc = x509_auth.authenticate(pass,proxy)
|
||||
|
||||
if rc == true
|
||||
exit 0
|
||||
|
@ -88,7 +88,7 @@ class X509Auth
|
||||
# Server side
|
||||
###########################################################################
|
||||
# auth method for auth_mad
|
||||
def authenticate(user, pass, token)
|
||||
def authenticate(pass, token)
|
||||
begin
|
||||
plain = decrypt(token)
|
||||
|
||||
@ -108,7 +108,7 @@ class X509Auth
|
||||
|
||||
private
|
||||
###########################################################################
|
||||
# Methods to handle ssh keys
|
||||
# Methods to encrpyt/decrypt keys
|
||||
###########################################################################
|
||||
# Encrypts data with the private key of the user and returns
|
||||
# base 64 encoded output in a single line
|
||||
|
Loading…
x
Reference in New Issue
Block a user