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

feature : Removed uneeded parameters for x509 authenticate

This commit is contained in:
Ruben S. Montero 2011-08-19 17:56:34 +02:00
parent 7c362c64b4
commit 26387a9f88
2 changed files with 3 additions and 3 deletions
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