<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="gmail-Apple-tab-span" style="white-space:pre">                         </span><credentials></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                    </span><password></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                               </span><outbound/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                              </span><inbound></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                                        </span><strength>weak</strength></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                                  </span><expression></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                                             </span><generate/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                                      </span></expression></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                            </span></inbound></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                       </span></password></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                              </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="gmail-Apple-tab-span" style="white-space:pre">                                </span><credentials></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                    </span><password></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                               </span><outbound/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                              </span><inbound></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                                        </span><strength>weak</strength></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                                  </span><expression></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                                             </span><asIs/></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                                  </span></expression></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                            </span></inbound></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                                       </span></password></div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                              </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">https://jira.evolveum.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="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>
</div></div>