<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Fabian,</p>
    <p>thank you very much for your suggestion. The attribute is not
      defined in the schema section generated by midPoint.<br>
      I have double checked the schema definition in OpenLDAP and the
      attribute is defined there as optional.</p>
    <p>I also checked that read access to the attribute is possible on
      all user objects with the account midPoint uses to bind the LDAP
      server.<br>
    </p>
    <p>Additionally I tried setting allowUnknownAttributes in the
      connector settings, but that didn't work either.</p>
    <p><br>
    </p>
    <p>Is there a way to manually add the attribute to the generated
      schema?</p>
    <p><br>
    </p>
    <p>Kind regards,</p>
    <p>Sven</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Am 22.11.22 um 11:17 schrieb Fabian
      Noll-Dukiewicz:<br>
    </div>
    <blockquote type="cite"
cite="mid:BE1P281MB1939469946A5644CE4D54627A30D9@BE1P281MB1939.DEUP281.PROD.OUTLOOK.COM">
      <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>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);" class="elementToProof">
        Hi Sven,</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);" class="elementToProof">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);" class="elementToProof">
        you have to check if the attribute "userPassword" is defined in
        the <schema> section of your resource configuration. If
        not check if another attribute could contain the password value,
        e.g. "password" (default openldap attribute).</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);" class="elementToProof">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);" class="elementToProof">
        Kind regards,</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);" class="elementToProof">
        Fabian</div>
      <div class="elementToProof">
        <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
          font-size: 12pt; color: rgb(0, 0, 0);">
          <br>
        </div>
        <div id="Signature">
          <div>
            <div style="font-family: Calibri, Arial, Helvetica,
              sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
              <p style="color:rgb(32, 31,
                30);text-align:start;background-color:rgb(255, 255,
                255);font-size:11pt;font-family:Calibri,
                sans-serif;margin:0px">
                <b><span style="font-size:10pt;font-family:Verdana,
                    sans-serif;margin:0px;color:black">Fabian
                    Noll-Dukiewicz</span></b><b><span
                    style="font-family:Verdana,
                    sans-serif;margin:0px;color:black"></span></b></p>
              <p style="color:rgb(32, 31,
                30);text-align:start;background-color:rgb(255, 255,
                255);font-size:11pt;font-family:Calibri,
                sans-serif;margin:0px">
                <i><span style="font-size:10pt;font-family:Verdana,
                    sans-serif;margin:0px;color:black">Spezialist
                    Identity & Access Management | Geschäftsführer</span></i></p>
              <p style="color:rgb(32, 31,
                30);text-align:start;background-color:rgb(255, 255,
                255);font-size:11pt;font-family:Calibri,
                sans-serif;margin:0px">
                <span style="font-size:10pt;font-family:Verdana,
                  sans-serif;margin:0px;color:black" lang="en-US">Tel.:
                  +49 152 244 63 211</span></p>
              <p style="color:rgb(32, 31,
                30);text-align:start;background-color:rgb(255, 255,
                255);font-size:11pt;font-family:Calibri,
                sans-serif;margin:0px">
                <span style="font-size:10pt;font-family:Verdana,
                  sans-serif;margin:0px;color:black" lang="en-US">Email:<span
                    style="margin:0px"> fabian.noll-dukiewicz@</span>veryfy.gmbh</span></p>
              <p style="color:rgb(32, 31,
                30);text-align:start;background-color:rgb(255, 255,
                255);font-size:11pt;font-family:Calibri,
                sans-serif;margin:0px">
                <span style="font-size:10pt;font-family:Verdana,
                  sans-serif;margin:0px;color:black">Web:<span
                    style="margin:0px"> <a class="moz-txt-link-freetext" href="https://veryfy.gmbh">https://veryfy.gmbh</a></span></span></p>
            </div>
          </div>
        </div>
      </div>
      <div>
        <div style="font-family:Calibri,Arial,Helvetica,sans-serif;
          font-size:12pt; color:rgb(0,0,0)">
          <br>
        </div>
        <hr tabindex="-1" style="display:inline-block; width:98%">
        <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
            face="Calibri, sans-serif" color="#000000"><b>Von:</b> Sven
            Feyerabend <a class="moz-txt-link-rfc2396E" href="mailto:Sven.Feyerabend@stuvus.uni-stuttgart.de"><Sven.Feyerabend@stuvus.uni-stuttgart.de></a><br>
            <b>Gesendet:</b> Sonntag, 20. November 2022 10:44<br>
            <b>An:</b> <a class="moz-txt-link-abbreviated" href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>
            <a class="moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com"><midpoint@lists.evolveum.com></a><br>
            <b>Betreff:</b> [midPoint] midPoint does not recognize
            userPassword attribute in inetOrgPerson</font>
          <div> </div>
        </div>
        <div class="BodyFragment"><font size="2"><span
              style="font-size:11pt">
              <div class="PlainText">Hello everyone,<br>
                <br>
                I'm currently in the process of connecting midPoint
                (version 4.4.3) to <br>
                my old identity management solution.<br>
                The user data is stored in an OpenLDAP instance, users
                are represented <br>
                using the inetOrgPerson objectClass as defined in
                RFC2798.<br>
                <br>
                I configured the server as a resource using the <br>
                com.evolveum.polygon.connector.ldap.LdapConnector and
                importing orgs <br>
                from organizational units did work as expected.<br>
                <br>
                When I defined the userPassword attribute for
                objectClass inetOrgPerson <br>
                in the schemaHandling section of my resource, I got the
                following error:<br>
                <br>
                Definition of attribute userPassword not found in object
                class <br>
{<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3</a>}inetOrgPerson
                <br>
                as defined in definition of resource<br>
                <br>
                <br>
                How can I get midPoint to work with this attribute?<br>
                Is there some special configuration required?<br>
                <br>
                Thanks in advance and kind regards<br>
                <br>
                Sven<br>
                <br>
                <br>
              </div>
            </span></font></div>
      </div>
    </blockquote>
  </body>
</html>