<div dir="ltr">Thanks for your answer Ivan.. sadly that did not work for me. I'll keep on looking into this problem and post the solution here once I find it.<div><br></div><div>Any other ideas I'll be thankful.</div><div><br></div><div>Regards,</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b><span></span><span></span>Ing. Martín Marchese</b><br><img src="http://www.identicum.com/img/favicon.ico">Identicum S.A.<br>Jorge Newbery 3226<br>Tel: +54 (11) 4552-3050<br><a href="mailto:mmarchese@identicum.com" target="_blank">mmarchese@identicum.com</a><br><a href="http://www.identicum.com" target="_blank">www.identicum.com</a></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Oct 7, 2016 at 3:26 AM, Ivan Noris <span dir="ltr"><<a href="mailto:ivan.noris@evolveum.com" target="_blank">ivan.noris@evolveum.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>Hi Martin,</p>
    <p>I have not tried this with DB Table, but for OpenLDAP resource
      I'm using the following:</p>
    <p>1)</p>
    <p>...<br>
    </p>
    <p>         <credentials><!-- here in my example is no
      weak, I'm syncing passwords everytime! --><br>
                  <password><br>
      <b>              
        <fetchStrategy>explicit</<wbr>fetchStrategy></b><b><br>
      </b>               <inbound/><br>
                  </password><br>
               </credentials><br>
      ...</p>
    <p>2)</p>
    <p>...<br>
    </p>
    <p>   <capabilities><br>
            <configured
xmlns:cap=<a class="m_2283859688240774922moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3" target="_blank">"http://midpoint.<wbr>evolveum.com/xml/ns/public/<wbr>resource/capabilities-3"</a>><br>
      <br>
               <cap:credentials><br>
      <b>            <cap:password></b><b><br>
      </b><b>              
        <cap:returnedByDefault>false</<wbr>cap:returnedByDefault></b><b><br>
      </b><b>            </cap:password></b><b><br>
      </b>         </cap:credentials><br>
            </configured><br>
      ...</p>
    <p>Could you please try if it helps?</p>
    <p>Regards,</p>
    <p>Ivan<br>
    </p><div><div class="h5">
    <div class="m_2283859688240774922moz-cite-prefix">On 10/06/2016 10:55 PM, Martin Marchese
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Hi All,
        <div><br>
        </div>
        <div>We are using a Database table connector (using PostgreSQL
          9.5) to create users into midpoint, and we are facing a
          problem while we try to set their password.</div>
        <div><br>
        </div>
        <div>Connector version is 1.4.2.0 and MidPoint version is 3.4.1</div>
        <div><br>
        </div>
        <div>We have configured a password policy that complies with all
          passwords within the database.</div>
        <div><br>
        </div>
        <div>Password column is configured correctly in the connector
          configuration. I was looking into the samples and I see that
          every samples uses the <generate> option as it follows:</div>
        <div><br>
        </div>
        <div>
          <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                            </span><credentials></div>
          <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                                    </span><password></div>
          <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                                            </span><outbound/></div>
          <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                                            </span><inbound></div>
          <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                                                    </span><strength>weak</strength></div>
          <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                                                    </span><expression></div>
          <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                                                            </span><generate/></div>
          <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                                                    </span></expression></div>
          <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                                            </span></inbound></div>
          <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                                    </span></password></div>
          <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                            </span></credentials></div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>My first thought was that replacing the expression as it
            follows it will work:</div>
          <div><br>
          </div>
          <div>
            <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                          </span><credentials></div>
            <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                                  </span><password></div>
            <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                                          </span><outbound/></div>
            <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                                          </span><inbound></div>
            <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                                                  </span><strength>weak</strength></div>
            <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                                                  </span><expression></div>
            <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                                                          </span><asIs/></div>
            <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                                                  </span></expression></div>
            <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                                          </span></inbound></div>
            <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                                  </span></password></div>
            <div><span class="m_2283859688240774922gmail-Apple-tab-span" style="white-space:pre-wrap">                          </span></credentials></div>
          </div>
          <div><br>
          </div>
          <div>However, when I run an import or livesync task i receive
            the following error:</div>
          <div><br>
          </div>
          <div>Provided password does not satisfy password policies.
            Required minimal size (4) of password is not met (password
            length: 0)<br>
          </div>
          <div><br>
          </div>
          <div>As if the password was not coming from the database.
            Also, when I look into the resource object thru the UI, the
            password attribute is empty.</div>
          <div><br>
          </div>
          <div>I took a look at this bug just in case: <a href="https://jira.evolveum.com/browse/MID-2405" target="_blank">https://jira.evolveum.<wbr>com/browse/MID-2405</a>,
            but it was a different behavior since for me, it fails with
            every password I try.</div>
          <div><br>
          </div>
          <div>Any ideas on what I'm missing here?</div>
          <div><br>
          </div>
          <div>Thanks in advance.</div>
          <div><br>
          </div>
          <div>
            <div class="m_2283859688240774922gmail_signature">
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div>
                      <div dir="ltr">
                        <div>
                          <div dir="ltr">
                            <div>
                              <div dir="ltr"><b><span></span><span></span>Ing.
                                  Martín Marchese</b><br>
                                <img src="http://www.identicum.com/img/favicon.ico">Identicum
                                S.A.<br>
                                Jorge Newbery 3226<br>
                                Tel: +54 (11) 4552-3050<br>
                                <a href="mailto:mmarchese@identicum.com" target="_blank">mmarchese@identicum.com</a><br>
                                <a href="http://www.identicum.com" target="_blank">www.identicum.com</a></div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="m_2283859688240774922mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
midPoint mailing list
<a class="m_2283859688240774922moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a>
<a class="m_2283859688240774922moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
    <pre class="m_2283859688240774922moz-signature" cols="72">-- 
Ivan Noris
Senior Identity Engineer
<a href="http://evolveum.com" target="_blank">evolveum.com</a>
</pre>
  </font></span></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></div>