<div dir="ltr">I was able to unlock my account with the command<div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>ovirt-aaa-jdbc-tool user unlock admin</div><div><br></div></blockquote>I can also access the rest api docs with 'admin@internal'</div><div>My guess is that something in configuration was wrong at the time, but all is well</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 5, 2017 at 1:49 PM, Marc Young <span dir="ltr"><<a href="mailto:3vilpenguin@gmail.com" target="_blank">3vilpenguin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">While attempting to run some code using the ruby SDK i was never able to log in successfully (despite being logged into the Administrator portal)<div><br></div><div>I was met with an SSO error[1].</div><div>I then attempted to get to the REST docs (/ovirt-engine/api/v4/model) and was unable to log in there as well.</div><div><br></div><div>Im now locked out of the administrator portal with the error: </div><div><br></div><div style="box-sizing:border-box;height:45px;vertical-align:top;display:table"><span style="box-sizing:border-box;vertical-align:top;display:table-cell"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"> Cannot Login. User Account is Disabled or Locked, Please contact your system administrator.<br></blockquote><br>a) what did i do wrong per the ruby sdk to lock myself out<br>b) how can i unlock my admin account?<br>c) how can i prevent this from locking me out in the future?<br><br>Server version is 4.1.0.4-1.el7.centos<br><br>[1]</span></div><div><br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>Bringing machine 'default' up with 'ovirt4' provider...</div><div>==> default: Creating VM with the following settings...</div><div>==> default: -- Name: jenkins</div><div>==> default: -- Cluster: Default</div><div>==> default: -- Template: centos-6-x86_64-v1608</div><div>==> default: -- Console Type: vnc</div><div>==> default: -- BIOS Serial:</div><div>==> default: -- Memory:</div><div>==> default: ---- Memory: 2048 MB</div><div>==> default: ---- Maximum: 2048 MB</div><div>==> default: ---- Guaranteed: 2048 MB</div><div>==> default: -- Cpu:</div><div>==> default: ---- Cores: 1</div><div>==> default: ---- Sockets: 1</div><div>==> default: ---- Threads: 1</div><div>==> default: -- Cloud-Init: true</div><div>==> default: An error occured. Recovering..</div><div>==> default: VM is not created. Please run `vagrant up` first.</div><div>/home/myoung/.rvm/gems/ruby-2.<wbr>3.1/gems/ovirt-engine-sdk-4.1.<wbr>8/lib/ovirtsdk4/connection.rb:<wbr>266:in `create_access_token': Error during SSO authentication: access_denied: Cannot authenticate user 'admin@internal': Cannot Login. User Account is Disabled or Locked, Please contact your system administrator.. (OvirtSDK4::Error)</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/gems/ovirt-engine-sdk-4.1.<wbr>8/lib/ovirtsdk4/connection.rb:<wbr>217:in `send'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/gems/ovirt-engine-sdk-4.1.<wbr>8/lib/ovirtsdk4/service.rb:<wbr>172:in `internal_add'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/gems/ovirt-engine-sdk-4.1.<wbr>8/lib/ovirtsdk4/services.rb:<wbr>29450:in `add'</div><div> from /home/myoung/repos/github/<wbr>vagrant-ovirt4/lib/vagrant-<wbr>ovirt4/action/create_vm.rb:68:<wbr>in `call'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>action/warden.rb:34:in `call'</div><div> from /home/myoung/repos/github/<wbr>vagrant-ovirt4/lib/vagrant-<wbr>ovirt4/action/set_name_of_<wbr>domain.rb:17:in `call'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>action/warden.rb:34:in `call'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>action/warden.rb:95:in `block in finalize_action'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>action/warden.rb:34:in `call'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>action/builder.rb:116:in `call'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>action/runner.rb:66:in `block in run'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/util/<wbr>busy.rb:19:in `busy'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>action/runner.rb:66:in `run'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>action/builtin/call.rb:53:in `call'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>action/warden.rb:34:in `call'</div><div> from /home/myoung/repos/github/<wbr>vagrant-ovirt4/lib/vagrant-<wbr>ovirt4/action/connect_ovirt.<wbr>rb:31:in `call'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>action/warden.rb:34:in `call'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>action/builtin/config_<wbr>validate.rb:25:in `call'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>action/warden.rb:34:in `call'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>action/builtin/handle_box.rb:<wbr>56:in `call'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>action/warden.rb:34:in `call'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>action/builder.rb:116:in `call'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>action/runner.rb:66:in `block in run'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/util/<wbr>busy.rb:19:in `busy'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>action/runner.rb:66:in `run'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>machine.rb:225:in `action_raw'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>machine.rb:200:in `block in action'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>environment.rb:567:in `lock'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>machine.rb:186:in `call'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>machine.rb:186:in `action'</div><div> from /home/myoung/.rvm/gems/ruby-2.<wbr>3.1/bundler/gems/vagrant-<wbr>4572267c33f4/lib/vagrant/<wbr>batch_action.rb:82:in `block (2 levels) in run'</div></div><div><br></div></blockquote></div></div>
</blockquote></div><br></div>