Skip to content
  • Ghada El-Zoghbi's avatar
    bug#1607669: Validate the results of ldap_search() and ldap_list() when syncing users. · 1daee33a
    Ghada El-Zoghbi authored
    When retrieving data from the LDAP server, check the results retrieved from
    ldap_search() and ldap_list(). If there is an error, do not continue.
    
    Otherwise, the sync_users() will assume that zero users were retrieved
    from LDAP. It will then deleted or suspended users when
    'If a user is no longer present in LDAP' is set to either suspend
    users or delete them.
    
    behatnotneeded
    
    Change-Id: Ib57901c61f769d96720cf932d2e0d7f643853a56
    1daee33a