<div dir="ltr">I figured it out simultaneously, something must have been set wrong somewhere and I was quick to ask here. Were good, thanks for the quick response!</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 5, 2017 at 2:10 PM, Juan Hernández <span dir="ltr">&lt;<a href="mailto:jhernand@redhat.com" target="_blank">jhernand@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 09/05/2017 08:49 PM, Marc Young wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
While attempting to run some code using the ruby SDK i was never able to<br>
log in successfully (despite being logged into the Administrator portal)<br>
<br>
I was met with an SSO error[1].<br>
I then attempted to get to the REST docs (/ovirt-engine/api/v4/model) and<br>
was unable to log in there as well.<br>
<br>
Im now locked out of the administrator portal with the error:<br>
<br>
  Cannot Login. User Account is Disabled or Locked, Please contact your<br>
system administrator.<br>
<br>
<br>
a) what did i do wrong per the ruby sdk to lock myself out<br>
</blockquote>
<br></span>
Maybe used a wrong password multiple times? I think what we lock the account after certain number of failed login attempts.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
b) how can i unlock my admin account?<br>
</blockquote>
<br></span>
In the engine machine use the &quot;ovirt-aaa-jdbc-tool&quot; command:<br>
<br>
  # ovirt-aaa-jdbc-tool user unlock admin<br>
<br>
Martin, Ondra, can you confirm?<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
c) how can i prevent this from locking me out in the future?<br>
</blockquote>
<br></span>
Make sure that you don&#39;t use wrong passwords.<br>
<br>
If you still have problems, enable the debug option of the SDK and share the generated log, so we can see what is happening. Be aware that the debug log will contain your password.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<br>
Server version is 4.1.0.4-1.el7.centos<br>
<br>
[1]<br>
<br>
Bringing machine &#39;default&#39; up with &#39;ovirt4&#39; provider...<br>
==&gt; default: Creating VM with the following settings...<br>
==&gt; default:  -- Name:          jenkins<br>
==&gt; default:  -- Cluster:       Default<br>
==&gt; default:  -- Template:      centos-6-x86_64-v1608<br>
==&gt; default:  -- Console Type:  vnc<br>
==&gt; default:  -- BIOS Serial:<br>
==&gt; default:  -- Memory:<br>
==&gt; default:  ---- Memory:      2048 MB<br>
==&gt; default:  ---- Maximum:     2048 MB<br>
==&gt; default:  ---- Guaranteed:  2048 MB<br>
==&gt; default:  -- Cpu:<br>
==&gt; default:  ---- Cores:       1<br>
==&gt; default:  ---- Sockets:     1<br>
==&gt; default:  ---- Threads:     1<br>
==&gt; default:  -- Cloud-Init:    true<br>
==&gt; default: An error occured. Recovering..<br>
==&gt; default: VM is not created. Please run `vagrant up` first.<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/gems/ovirt-engine-sdk-4.1.<wbr>8/lib/ovirtsdk4/connection.rb:<wbr>266:in<br>
`create_access_token&#39;: Error during SSO authentication: access_denied:<br>
Cannot authenticate user &#39;admin@internal&#39;: Cannot Login. User Account is<br>
Disabled or Locked, Please contact your system administrator..<br>
(OvirtSDK4::Error)<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/gems/ovirt-engine-sdk-4.1.<wbr>8/lib/ovirtsdk4/connection.rb:<wbr>217:in<br>
`send&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/gems/ovirt-engine-sdk-4.1.<wbr>8/lib/ovirtsdk4/service.rb:172<wbr>:in<br>
`internal_add&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/gems/ovirt-engine-sdk-4.1.<wbr>8/lib/ovirtsdk4/services.rb:29<wbr>450:in<br>
`add&#39;<br>
         from<br>
/home/myoung/repos/github/vagr<wbr>ant-ovirt4/lib/vagrant-ovirt4/<wbr>action/create_vm.rb:68:in<br>
`call&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/action/<wbr>warden.rb:34:in<br>
`call&#39;<br>
         from<br>
/home/myoung/repos/github/vagr<wbr>ant-ovirt4/lib/vagrant-ovirt4/<wbr>action/set_name_of_domain.rb:<wbr>17:in<br>
`call&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/action/<wbr>warden.rb:34:in<br>
`call&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/action/<wbr>warden.rb:95:in<br>
`block in finalize_action&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/action/<wbr>warden.rb:34:in<br>
`call&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/action/<wbr>builder.rb:116:in<br>
`call&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/action/<wbr>runner.rb:66:in<br>
`block in run&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/util/busy.<wbr>rb:19:in<br>
`busy&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/action/<wbr>runner.rb:66:in<br>
`run&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/action/<wbr>builtin/call.rb:53:in<br>
`call&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/action/<wbr>warden.rb:34:in<br>
`call&#39;<br>
         from<br>
/home/myoung/repos/github/vagr<wbr>ant-ovirt4/lib/vagrant-ovirt4/<wbr>action/connect_ovirt.rb:31:in<br>
`call&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/action/<wbr>warden.rb:34:in<br>
`call&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/action/<wbr>builtin/config_validate.rb:25:<wbr>in<br>
`call&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/action/<wbr>warden.rb:34:in<br>
`call&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/action/<wbr>builtin/handle_box.rb:56:in<br>
`call&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/action/<wbr>warden.rb:34:in<br>
`call&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/action/<wbr>builder.rb:116:in<br>
`call&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/action/<wbr>runner.rb:66:in<br>
`block in run&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/util/busy.<wbr>rb:19:in<br>
`busy&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/action/<wbr>runner.rb:66:in<br>
`run&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/machine.<wbr>rb:225:in<br>
`action_raw&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/machine.<wbr>rb:200:in<br>
`block in action&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/environmen<wbr>t.rb:567:in<br>
`lock&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/machine.<wbr>rb:186:in<br>
`call&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/machine.<wbr>rb:186:in<br>
`action&#39;<br>
         from<br>
/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-45722<wbr>67c33f4/lib/vagrant/batch_<wbr>action.rb:82:in<br>
`block (2 levels) in run&#39;<br>
<br>
<br>
<br></div></div>
______________________________<wbr>_________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org" target="_blank">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/devel</a><br>
<br>
</blockquote>
<br>
</blockquote></div><br></div>