<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello Bolat,</p>
<p>U think your approach is right: copy User object from another
instance; provided they use the same Java keystore. Otherwise, the
target midPoint would not be able to decode administrator's
password.</p>
<p>I think that m_user, m_focus and m_object tables are sufficient.
<br>
</p>
<p>From the error message it seems that you forgot to copy the
m_object.fullObject column (it is a BLOB-like column).</p>
<p>Best regards,<br>
</p>
<pre class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
<div class="moz-cite-prefix">On 28.09.2016 6:18, Болат Казыбаев
wrote:<br>
</div>
<blockquote
cite="mid:db7d8387f5a0417b8f00669072805dd2@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:"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-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
mso-fareast-language:EN-US;}
@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 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>
</body>
</html>