Skip to content

Improve ldap:check errors

Drew Blessing requested to merge dblessing/gitlab-ce:ldap_check_bind into master

What does this MR do?

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/21621.

Introduce better credential and error checking for the rake gitlab:ldap:check task.

Are there points in the code the reviewer needs to double check?

No

Why was this MR needed?

It was previously possible for invalid credential errors to go unnoticed in this task. Users would believe everything was configured correctly and then sign in would fail with 'Invalid credentials'. This adds a specific bind check, plus catches errors connecting to the server.

Screenshots (if relevant)

Success

Screen_Shot_2016-09-29_at_2.14.53_PM

Failed

Screen_Shot_2016-09-29_at_2.14.21_PM

Anonymous

Screen_Shot_2016-09-29_at_2.15.22_PM

Cannot connect

Screen_Shot_2016-09-29_at_2.15.47_PM

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Merge request reports