gitlab-org--gitlab-foss/spec/models
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 Fix Error 500 when visiting build page of project with nil runners_token 2016-01-10 18:12:47 -08:00
concerns
hooks Accept 2xx status codes for successful Web hook triggers 2016-01-07 06:28:24 -08:00
members
project_services Suppress e-mails on failed builds if allow_failure is set 2016-01-07 10:45:39 -08:00
abuse_report_spec.rb Block the reported user before destroying the record 2016-01-12 20:59:55 -05:00
application_setting_spec.rb Annotate models 2016-01-06 13:09:55 +00:00
broadcast_message_spec.rb Move BroadcastMessage#status to a helper since it's presentational 2016-01-13 11:49:59 -05:00
build_spec.rb
commit_range_spec.rb
commit_spec.rb
commit_status_spec.rb Annotate models 2016-01-06 13:09:55 +00:00
deploy_key_spec.rb
deploy_keys_project_spec.rb
event_spec.rb
external_issue_spec.rb
external_wiki_service_spec.rb Annotate models 2016-01-06 13:09:55 +00:00
forked_project_link_spec.rb
generic_commit_status_spec.rb Annotate models 2016-01-06 13:09:55 +00:00
global_milestone_spec.rb
group_spec.rb Annotate models 2016-01-06 13:09:55 +00:00
identity_spec.rb Codestyle changes 2016-01-12 12:29:10 -02:00
issue_spec.rb
jira_issue_spec.rb
key_spec.rb
label_link_spec.rb
label_spec.rb
member_spec.rb
merge_request_spec.rb Annotate models 2016-01-06 13:09:55 +00:00
milestone_spec.rb
namespace_spec.rb Annotate models 2016-01-06 13:09:55 +00:00
note_spec.rb Fix specs and rubocop warnings 2016-01-14 10:04:48 +01:00
project_security_spec.rb
project_snippet_spec.rb
project_spec.rb Annotate models 2016-01-06 13:09:55 +00:00
project_team_spec.rb
project_wiki_spec.rb
protected_branch_spec.rb
release_spec.rb
repository_spec.rb
service_spec.rb Annotate models 2016-01-06 13:09:55 +00:00
snippet_spec.rb
user_spec.rb Add ldap_blocked as new state to users state machine 2016-01-08 16:26:04 -02:00
wiki_page_spec.rb