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

bug #1142: Check public driver

This commit is contained in:
Daniel Molina 2012-03-21 18:38:49 +01:00
parent cbc622f8b5
commit 1efef61128
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
module EC2CloudAuth
def do_auth(env, params={})
username = params['AWSAccessKeyId']
one_pass = get_password(username, 'core')
one_pass = get_password(username, 'core|public')
return nil unless one_pass
signature = case params['SignatureVersion']

View File

@ -21,7 +21,7 @@ module OCCICloudAuth
if auth.provided? && auth.basic?
username, password = auth.credentials
one_pass = get_password(username, 'core')
one_pass = get_password(username, 'core|public')
if one_pass && one_pass == password
return username