[midPoint] User initial password

Ivan Noris ivan.noris at evolveum.com
Thu Apr 14 17:58:18 CEST 2016


Hi Aivo,

I just tried this, but I'm not very proud of it :)

         <credentials>
            <password>
               <inbound>
                  <strength>weak</strength>
                  <expression>
                     <script>
                        <code>basic.encrypt("SuperS#cr#tPa55w0rd!")</code>
                     </script>
                  </expression>
               </inbound>
            </password>
         </credentials>

Remember the value will be visible in the resource XML.

Regards,
Ivan

On 04/14/2016 04:27 PM, Aivo Kuhlberg wrote:
>
> 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
>
> schemaHandling section:
>
>     <credentials>
>         <password>
>             <inbound>
>                 <strength>weak</strength>
>                 <expression>
>                     <value>5ecr3t</value>
>                 </expression>
>             </inbound>
>         </password>
>     </credentials>
>
> but user import fails with following error:
> Failed to import: java.lang.IllegalStateException: Unencrypted value
> in field
> {http://midpoint.evolveum.com/xml/ns/public/common/common-3}value in
> user:null(test.user5)
>
> Thanks,
> Aivo Kuhlberg
>
>
> ------------------------------------------------------------------------
> Käesolev e-kiri võib sisaldada asutusesiseseks kasutamiseks
> tunnistatud teavet.
> This e-mail may contain information which is classified for official use.
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint

-- 
  Ing. Ivan Noris
  Senior Identity Management Engineer & IDM Architect
  evolveum.com                     evolveum.com/blog/
  ___________________________________________________
  "Semper ID(e)M Vix."

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20160414/67210810/attachment.htm>


More information about the midPoint mailing list