Bug #1921
ssh and x509 login never expires
Status: | Closed | Start date: | 04/17/2013 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Javi Fontan | % Done: | 0% | |
Category: | CLI | |||
Target version: | Release 4.0 | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: | OpenNebula 4.0 |
Description
In oneuser_helper.rb
on line 151, the second parameter to login
method is Time.now+options[:time]
.
The login
method of both OpenNebula::X509Auth and OpenNebula::SshAuth something like expires = Time.now.to_i + expire.to_i
.
Thus, Time.now
is added twice and the login virtually never expires.
The attached patch fixes this.
Associated revisions
bug #1921: ssh and x509 login never expires
Patch by Jean-Philippe Garcia Ballester
bug #1921: ssh and x509 login never expires
Patch by Jean-Philippe Garcia Ballester
(cherry picked from commit 3303fef5109fa96fa6347af626cdea3b1041024e)
History
#1 Updated by Ruben S. Montero about 8 years ago
- Assignee set to Javi Fontan
- Target version set to Release 4.0
#2 Updated by Javi Fontan about 8 years ago
- Status changed from New to Assigned
Confirmed. We are reviewing the patches. Thanks!
#3 Updated by Javi Fontan about 8 years ago
- Status changed from Assigned to Closed
- Resolution set to fixed