<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>BTW just as my coleague Katka pointed out, restarting midPoint
      with deleted administrator user should re-create it, because
      administrator account is in the initial objects that are being
      imported upon each start if they are not in repository.</p>
    <p>Of course the administrator would have the default password.</p>
    <p>Regards,</p>
    <p>Ivan<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 09/29/2016 11:43 AM, Болат Казыбаев
      wrote:<br>
    </div>
    <blockquote
      cite="mid:79c9dc7129a74935b7925f1edeb34a6b@exch-01.ktg.kz"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">I
            solved the issue. Thank you Pavol Mederly, you are rock!
          </span><span style="font-family:Wingdings;color:#1F497D"
            lang="EN-US">J</span><span style="color:#1F497D"
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
                  style="mso-fareast-language:RU">From:</span></b><span
                style="mso-fareast-language:RU"> Болат Казыбаев
                <br>
                <b>Sent:</b> Wednesday, September 28, 2016 10:19 AM<br>
                <b>To:</b> '<a class="moz-txt-link-abbreviated" href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>'
                <a class="moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com"><midpoint@lists.evolveum.com></a><br>
                <b>Subject:</b> Accidently deleted administrator from
                GUI<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span lang="EN-US">Hi there,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></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.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">When I try to log in I
            getting this error: WARN
            (com.evolveum.midpoint.model.impl.security.UserProfileServiceImpl):
            Error getting user with name 'administrator', reason: Full
            object xml must not be null..<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">com.evolveum.midpoint.util.exception.SystemException:
            Full object xml must not be null.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I tried to browse the
            midpoint sourcecode here:
            <a moz-do-not-send="true"
href="https://github.com/Evolveum/midpoint/blob/edca60e6456e9fb5e9920d3215c0ece0e43ecf26/model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/security/UserProfileServiceImpl.java">https://github.com/Evolveum/midpoint/blob/edca60e6456e9fb5e9920d3215c0ece0e43ecf26/model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/security/UserProfileServiceImpl.java</a>
            but I did not understand. Any ideas how to solve the
            problem?<o:p></o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Ivan Noris
Senior Identity Engineer
evolveum.com
</pre>
  </body>
</html>