<div dir="ltr">Helo Bolat,<div><br></div><div>We recently did the same mistake. But thanks to the administrator being in initial objects, simple restart of midpoint was all that was needed. </div><div><br></div><div>I suggest that you delete all records you created in database when trying to restore administrator, restart midpoint and then you should have new administrator with oid 000..0002 and default password.</div><div><br></div><div>Hope it helps.</div><div><br></div><div>Best Regards</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-29 11:43 GMT+02:00 Болат Казыбаев <span dir="ltr"><<a href="mailto:B.kazybayev@ktg.kz" target="_blank">B.kazybayev@ktg.kz</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="RU" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d">I solved the issue. Thank you Pavol Mederly, you are rock!
</span><span lang="EN-US" style="font-family:Wingdings;color:#1f497d">J</span><span lang="EN-US" style="color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span>From:</span></b><span> Болат Казыбаев
<br>
<b>Sent:</b> Wednesday, September 28, 2016 10:19 AM<br>
<b>To:</b> '<a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a>' <<a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a>><br>
<b>Subject:</b> Accidently deleted administrator from GUI<u></u><u></u></span></p>
</div>
</div><span class="">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span lang="EN-US">Hi there,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I accidently deleted administrator from GUI and can't to log in. Our midpoint’s database is postgresql. I created a user in postgresql table by getting data from another instance. Records were created in m_user, m_object,
 m_focus tables. Where should I create a password in order to log in to midpoint? Why don't you prohibit deleting administrator from GUI? It's a common situation and I think you have to protect it.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">When I try to log in I getting this error: WARN (com.evolveum.midpoint.model.<wbr>impl.security.<wbr>UserProfileServiceImpl): Error getting user with name 'administrator', reason: Full object xml must not be null..<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">com.evolveum.midpoint.util.<wbr>exception.SystemException: Full object xml must not be null.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I tried to browse the midpoint sourcecode here:
<a href="https://github.com/Evolveum/midpoint/blob/edca60e6456e9fb5e9920d3215c0ece0e43ecf26/model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/security/UserProfileServiceImpl.java" target="_blank">
https://github.com/Evolveum/<wbr>midpoint/blob/<wbr>edca60e6456e9fb5e9920d3215c0ec<wbr>e0e43ecf26/model/model-impl/<wbr>src/main/java/com/evolveum/<wbr>midpoint/model/impl/security/<wbr>UserProfileServiceImpl.java</a> but I did not understand. Any ideas how to solve the problem?<u></u><u></u></span></p>
</span></div>
</div>

<br>______________________________<wbr>_________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><table style="font-family:Verdana,Arial,Helvetica,sans-serif;border-collapse:collapse;padding:0px;margin:0px;border-width:0px!important;border-style:solid!important;width:482px!important"><tbody><tr style="padding:0px;margin:0px;border:0px solid gray!important"><td style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;width:160px;vertical-align:bottom;padding:0px;border:0px solid gray!important"><p><span style="font-size:14px;font-weight:bold">Oskar Butovič</span><br>solution architect<br><br>gsm: [+420] 774 480 101<br>e-mail: <a href="mailto:oskar.butovic@ami.cz" target="_blank">oskar.butovic@ami.cz</a></p></td><td style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;border-right-width:1px;border-right-style:solid;border-right-color:rgb(204,204,204);padding:0px;border-top-width:0px!important;border-bottom-width:0px!important;border-left-width:0px!important;border-top-style:solid!important;border-bottom-style:solid!important;border-left-style:solid!important;border-top-color:gray!important;border-bottom-color:gray!important;border-left-color:gray!important">   </td><td style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;border:0px solid gray!important">   </td><td style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;vertical-align:bottom;padding:0px;width:123px;border:0px solid gray!important"><p>AMI Praha a.s.<br>Pláničkova 11<br>162 00 Praha 6<br>tel.: [+420] 274 783 239<br>web: <a href="http://www.ami.cz/" target="_blank">www.ami.cz</a></p></td><td style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;border-right-width:1px;border-right-style:solid;border-right-color:rgb(204,204,204);padding:0px;border-top-width:0px!important;border-bottom-width:0px!important;border-left-width:0px!important;border-top-style:solid!important;border-bottom-style:solid!important;border-left-style:solid!important;border-top-color:gray!important;border-bottom-color:gray!important;border-left-color:gray!important">   </td><td style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;border:0px solid gray!important">   </td><td style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;margin:8px;border:0px solid gray!important;width:116px"><p><img src="http://www.ami.cz/images/podpis/ami_logo.gif" alt="AMI Praha a.s." style="border:0px"></p></td></tr><tr style="padding:0px;margin:0px;border:0px solid gray!important"><td colspan="7" style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;width:480px;border:0px solid gray!important"><br><a href="http://www.ami.cz/reseni-a-sluzby/bezpecnost-dat/identity-management" target="_blank"><img src="http://www.ami.cz/images/podpis/AMI-podpis-IdM_1.png" alt="AMI Praha a.s." style="border:0px;width:480px!important;height:82px!important"></a></td></tr><tr style="padding:0px;margin:0px;border:0px solid gray!important"><td colspan="7" style="color:rgb(128,128,128);font-family:Arial,sans-serif;font-size:11px;padding:0px;border:0px solid gray!important"><br>Textem tohoto e-mailu podepisující neslibuje uzavřít ani neuzavírá za společnost AMI Praha a.s.<br>jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít výhradně písemnou formu.<br><br></td></tr></tbody></table></div></div></div></div></div></div></div>
</div>