Bug #1921

ssh and x509 login never expires

Added by Jean-Philippe Garcia Ballester about 8 years ago. Updated about 8 years ago.

Status:ClosedStart date:04/17/2013
Priority:NormalDue 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.

0012-Correctly-pass-time-option-on-login.patch Magnifier (926 Bytes) Jean-Philippe Garcia Ballester, 04/17/2013 10:31 AM

Associated revisions

Revision 3303fef5
Added by Javi Fontan about 8 years ago

bug #1921: ssh and x509 login never expires

Patch by Jean-Philippe Garcia Ballester

Revision 2f7c747b
Added by Javi Fontan about 8 years ago

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

Also available in: Atom PDF