gitlab-org--gitlab-foss/spec/services
Douwe Maan 4d64a32c88 Merge branch 'feature/ldap-sync-edgecases' into 'master'
LDAP Sync blocked user edgecases

Allow GitLab admins to block otherwise valid GitLab LDAP users
(https://gitlab.com/gitlab-org/gitlab-ce/issues/3462)

Based on the discussion on the original issue, we are going to differentiate "normal" block operations to the ldap automatic ones in order to make some decisions when its one or the other.

Expected behavior:

- [x] "ldap_blocked" users respond to both `blocked?` and `ldap_blocked?`
- [x] "ldap_blocked" users can't be unblocked by the Admin UI
- [x] "ldap_blocked" users can't be unblocked by the API
- [x] Block operations that are originated from LDAP synchronization will flag user as "ldap_blocked"
- [x] Only "ldap_blocked" users will be automatically unblocked by LDAP synchronization
- [x] When LDAP identity is removed, we should convert `ldap_blocked` into `blocked`
 
Mockup for the Admin UI with both "ldap_blocked" and normal "blocked" users:
![image](/uploads/4f56fc17b73cb2c9e2a154a22e7ad291/image.png)

There will be another MR for the EE version.

See merge request !2242
2016-01-14 11:00:08 +00:00
..
ci Remove ci_ prefix from all ci related things 2015-12-11 18:02:09 +01:00
issues Tag service specs 2015-12-09 11:55:49 +01:00
merge_requests Fix errors 2015-12-11 18:02:09 +01:00
milestones Tag service specs 2015-12-09 11:55:49 +01:00
notes Tag service specs 2015-12-09 11:55:49 +01:00
projects DRY up upload and download services 2016-01-08 17:38:53 +01:00
archive_repository_service_spec.rb Tag service specs 2015-12-09 11:55:49 +01:00
create_commit_builds_service_spec.rb Don't create CI status for refs that doesn't have .gitlab-ci.yml, even if the builds are enabled 2015-12-17 16:33:47 +01:00
create_release_service_spec.rb Tag service specs 2015-12-09 11:55:49 +01:00
create_snippet_service_spec.rb Tag service specs 2015-12-09 11:55:49 +01:00
destroy_group_service_spec.rb Tag service specs 2015-12-09 11:55:49 +01:00
event_create_service_spec.rb Tag service specs 2015-12-09 11:55:49 +01:00
git_hooks_service_spec.rb Tag service specs 2015-12-09 11:55:49 +01:00
git_push_service_spec.rb Backport JIRA service 2015-12-18 14:19:48 -06:00
git_tag_push_service_spec.rb Fixed Rubocop offenses 2015-12-15 00:53:52 -02:00
notification_service_spec.rb Fix notification spec 2016-01-05 18:17:55 +01:00
repair_ldap_blocked_user_service_spec.rb Code style fixes and some code simplified 2016-01-08 16:26:04 -02:00
search_service_spec.rb Tag service specs 2015-12-09 11:55:49 +01:00
system_hooks_service_spec.rb Merge branch 'add_username_to_user_system_hooks' of https://github.com/tbeadle/gitlabhq 2016-01-13 10:12:30 +01:00
system_note_service_spec.rb Link to milestone in "Milestone changed" system note 2015-12-24 14:44:17 +01:00
test_hook_service_spec.rb Tag service specs 2015-12-09 11:55:49 +01:00
update_release_service_spec.rb Tag service specs 2015-12-09 11:55:49 +01:00
update_snippet_service_spec.rb Fixed Rubocop offenses 2015-12-15 00:53:52 -02:00