<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Aivo,<br>
    <br>
    I just tried this, but I'm not very proud of it :)<br>
    <br>
             <credentials><br>
                <password><br>
                   <inbound><br>
                      <strength>weak</strength><br>
                      <expression><br>
                         <script><br>
                           
    <code>basic.encrypt("SuperS#cr#tPa55w0rd!")</code><br>
                         </script><br>
                      </expression><br>
                   </inbound><br>
                </password><br>
             </credentials><br>
    <br>
    Remember the value will be visible in the resource XML.<br>
    <br>
    Regards,<br>
    Ivan<br>
    <br>
    <div class="moz-cite-prefix">On 04/14/2016 04:27 PM, Aivo Kuhlberg
      wrote:<br>
    </div>
    <blockquote cite="mid:1460644041974.90601@rmit.ee" type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
      <p>How can I set initial password for midPoint 3.3.1 user when I
        import them from csv-file. I tried to use something like that in
      </p>
      <p>schemaHandling section:<br>
        <br>
            <credentials><br>
                <password><br>
                    <inbound><br>
                        <strength>weak</strength><br>
                        <expression><br>
                            <value>5ecr3t</value><br>
                        </expression><br>
                    </inbound><br>
                </password><br>
            </credentials><br>
        <br>
        but user import fails with following error:<br>
        Failed to import: java.lang.IllegalStateException: Unencrypted
        value in field
        {<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>}value
        in user:null(test.user5)<br>
        <br>
        Thanks,<br>
        Aivo Kuhlberg<br>
      </p>
      <br>
      <hr>
      <font face="Arial" color="Gray" size="2">Käesolev e-kiri võib
        sisaldada asutusesiseseks kasutamiseks tunnistatud teavet.<br>
        This e-mail may contain information which is classified for
        official use.</font>
      <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">-- 
  Ing. Ivan Noris
  Senior Identity Management Engineer & IDM Architect
  evolveum.com                     evolveum.com/blog/
  ___________________________________________________
  "Semper ID(e)M Vix."
</pre>
  </body>
</html>