Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-4502

Random password generator sometimes generates passwords that do not meet policies

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.6.1
    • Fix Version/s: 3.9
    • Component/s: Repository
    • Labels:
      None
    • Subscription:
      No subscription (community)

      Description

      There is a bug in random password generator.

      Random password generator sometimes generates passwords that do not meet policies and generates this error:
      2018-03-06 18:05:59,244 [] [pool-1-thread-333] ERROR (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): SYNCHRONIZATION: Error in synchronization on resource:resource-stag-students(STAG-Students) for situation UNMATCHED: PolicyViolationException: Provided password does not satisfy the policies: Required minimal count of unique characters (3) in password are not met (unique characters in password 2)

      My configuration in resource schema handling:

      	         <credentials>
      	            <password>
      	               <inbound>
      	                  <strength>weak</strength>
      	                  <expression>
      	                     <generate/>
      	                  </expression>
      	               </inbound>
      	               <passwordPolicyRef oid="password-policy-zcu" type="c:ValuePolicyType"/>
      	            </password>
      	         </credentials>
      

      The piece code in Password policy:

        <stringPolicy>
            <description>String policy</description>
            <limitations>
               <minLength>8</minLength>
               <maxLength>30</maxLength>
               <minUniqueChars>3</minUniqueChars>
      ...
      

        Attachments

          Activity

            People

            • Assignee:
              rpudil Roman Pudil
              Reporter:
              rpudil Roman Pudil
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: