bad9197 Issue 49210 - Fix regression when checking is password min

Authored and Committed by mreynolds 2 years ago
    Issue 49210 - Fix regression when checking is password min
     age should be checked
    
    Bug Description:  If a plugin makes an internal modification of userpassword
                      the connection structure in the pblock is null, and it was
                      being dereferenced.
    
    Fix Description:  These internal operations do not need to have the password
                      policy checks done.  They are intended to be unrestricted.
                      So we only need to check password policy on client connections.
                      The fix frist hecks if the connection structy is present,
                      only then it continues.
    
                      Revised test script to include the tool: ldappasswd
    
    https://pagure.io/389-ds-base/issue/49210
    
    Reviewed by: firstyear(Thanks!)
    
    (cherry picked from commit f5e4b8a39c6afca9363ea9f1239fb3b43ad21d30)
    
        
file modified
+1 -1