cloud-pipeline icon indicating copy to clipboard operation
cloud-pipeline copied to clipboard

Add possibility to choose way to sync blocked users with LDAP

Open SilinPavel opened this issue 3 years ago • 0 comments

Cloud-Pipeline has a mechanism to sync its current state with LDAP in terms of user blocking status. However right now cloud-pipeline relay that it has necessary permissions to load any object from LDAP, but in some cases we can have permissions to load only active users but not blocked ones.

Lets add an additional functionality to configure a method to determinate if user is blocked on LDAP or not. For this:

  1. Introduce new System Preference with possible values LOAD_BLOCKED, LOAD_ACTIVE_AND_INTERSECT
  • LOAD_BLOCKED - current approach to load blocked users
  • LOAD_ACTIVE_AND_INTERSECT - opposite approach when we firstly try to load active users from LDAP within a list of PipelineUser and after that check if we successfully loaded it - if so, then user is active on LDAP and should not be blocked, otherwise, if user can't be loaded - we should block such user
  1. in LdapBlockedUsersManager change filterBlockedUsers method with respect to this explanation

SilinPavel avatar Jul 01 '22 14:07 SilinPavel