Revision 0dc421ea src/authm_mad/one_auth_mad.rb

View differences:

src/authm_mad/one_auth_mad.rb
36 36
require 'simple_permissions'
37 37
require 'yaml'
38 38
require 'sequel'
39
require 'ssh_auth'
39 40

  
40 41
class AuthorizationManager < OpenNebulaDriver
41 42
    def initialize
......
50 51
        database_url=@config[:database]
51 52
        @db=Sequel.connect(database_url)
52 53
        
53
        @authenticate=SimpleAuth.new
54
        #@authenticate=SimpleAuth.new
55
        @authenticate=SshAuth.new
54 56
        @permissions=SimplePermissions.new(@db, OpenNebula::Client.new,
55 57
            @config)
56 58
        
......
59 61
    end
60 62
    
61 63
    def action_authenticate(request_id, user_id, user, password, token)
64
        STDERR.puts [user_id, user, password, token].inspect
62 65
        auth=@authenticate.auth(user_id, user, password, token)
63 66
        if auth==true
64 67
            send_message('AUTHENTICATE', RESULT[:success],

Also available in: Unified diff