Revision e615215a

View differences:

src/authm_mad/oneauth
46 46
Commands:
47 47

  
48 48
* create (Creates a new user)
49
    oneuser create username password
49
    oneauth create <username> <ssh public key>
50 50
    
51
* delete (Removes a user)
52
    oneuser delete <id>
51
* quota set (sets quota for a user)
52
    oneauth quota set <id> <cpu> <memory>
53 53
    
54
* list (Lists all the users in the pool)
55
    oneuser list
54
* login (generates authentication proxy)
55
    oneauth login <username> [<expire time in seconds>]
56
    
57
* key (gets public key)
58
    oneauth key
56 59

  
57 60
EOT
58 61

  
......
127 130
    user=OpenNebula::User.new(
128 131
        OpenNebula::User.build_xml, OpenNebula::Client.new)
129 132
    password = ARGV[1]
130
    
131
    pp [ARGV[0], ARGV[1]]
132
    
133
        
133 134
    result=user.allocate(ARGV[0], password)
134 135
    if !OpenNebula.is_error?(result)
135 136
        puts "ID: " + user.id.to_s if ops[:verbose]

Also available in: Unified diff