gitlab-org--gitlab-foss/lib/gitlab
Robert Speicher 42603af326 Merge branch 'fix_email_downcasing' into 'master'
LDAP email address downcasing

Fixes #2960

In the event we cannot match an LDAP user by DN we attempt to find an identity by email address and then update the DN. In this case the identity is matched by email address. 

If the user's email address in LDAP has an upper case character we cannot find a match in the GitLab database. GitLab downcases emails before the user object is saved.

This merge request downcases the email from LDAP before we lookup by email. I also added a test to prevent a regression.

See merge request !1550
2015-10-11 22:53:11 +00:00
..
backend Normalize space-like characters in keys before output to gitlab-shell 2015-10-08 20:34:50 -04:00
bitbucket_import Fix bug where only the first 15 Bitbucket issues would be imported. 2015-09-01 08:50:20 -07:00
diff Fix rubocop warnings in lib 2015-10-03 01:29:58 -05:00
email Rename reply_by_email to incoming_email to prepare for the future. 2015-09-21 10:35:37 +02:00
fogbugz_import Fix rubocop warnings in lib 2015-10-03 01:29:58 -05:00
git Refactor pre/post receive commit services into one class 2015-08-14 16:04:17 +02:00
github_import Fix bug where only the first 15 Bitbucket issues would be imported. 2015-09-01 08:50:20 -07:00
gitlab_import Fix bug where only the first 15 Bitbucket issues would be imported. 2015-09-01 08:50:20 -07:00
gitorious_import Define GITORIOUS_HOST only once 2015-06-10 01:31:27 -04:00
google_code_import Fix rubocop warnings in lib 2015-10-03 01:29:58 -05:00
graphs Refactor commits graph 2014-09-29 12:05:17 +03:00
ldap Fix ldap email downcasing bug 2015-10-08 14:59:46 -05:00
markdown Allow RelativeLinkFilter to go up multiple directories 2015-09-20 19:21:33 -04:00
middleware Revert "Increase timeout for Git-over-HTTP requests." 2015-03-19 18:29:20 -07:00
o_auth Shuffle config around a bit 2015-09-09 11:40:31 +01:00
sidekiq_middleware Use SIGKILL by default in Sidekiq::MemoryKiller 2015-05-13 17:09:12 +02:00
access.rb Improve description of branch protection levels. 2015-05-13 09:41:55 +02:00
app_logger.rb Dry admin logs. 2014-10-06 00:14:46 +02:00
asciidoc.rb Handle AsciiDoc better, reuse HTML pipeline filters (fixes #9263) 2015-05-18 20:48:03 +02:00
auth.rb Session API: Use case-insensitive authentication like in UI 2014-10-30 18:29:18 +02:00
bitbucket_import.rb Fix specs. 2015-02-24 15:07:24 +01:00
blacklist.rb Prevent people from using ci since we plan to host ci on /ci later. 2014-09-09 10:11:07 +02:00
closing_issue_extractor.rb Make use of to_reference in more specs 2015-05-26 15:49:22 -04:00
color_schemes.rb Add `count` to Themes and ColorSchemes 2015-08-26 11:30:38 -07:00
compare_result.rb
config_helper.rb
contributions_calendar.rb Fix rubocop warnings in lib 2015-10-03 01:29:58 -05:00
contributor.rb Move lib/gitlab/contributors to its correct path 2015-04-09 15:34:55 -04:00
current_settings.rb Added USE_DB env var to allow loading fake settings without db running. 2015-09-01 17:49:16 +02:00
database.rb Added methods for detecting MySQL/PostgreSQL 2015-10-07 23:32:14 +02:00
force_push_check.rb Fewer constants, more helpers. 2015-03-19 10:34:04 +01:00
git.rb Use Gitlab::Git helper methods and constants as much as possible. 2015-03-10 13:39:31 +01:00
git_access.rb Fix GitAccess. 2015-05-13 09:46:22 +02:00
git_access_status.rb Rubocop enabled for: Use spaces inside hash literal braces 2015-02-02 20:36:54 -08:00
git_access_wiki.rb Rename abilities to correspond contoller/model action names 2015-06-26 15:55:56 +02:00
git_logger.rb Dry admin logs. 2014-10-06 00:14:46 +02:00
git_ref_validator.rb fix system silent call 2014-11-06 13:07:42 +02:00
gitorious_import.rb Define GITORIOUS_HOST only once 2015-06-10 01:31:27 -04:00
identifier.rb Use project.commit convenience method. 2015-04-24 12:29:36 +02:00
import_formatter.rb Fix bug where only the first 15 Bitbucket issues would be imported. 2015-09-01 08:50:20 -07:00
import_sources.rb FogBugz project import 2015-09-08 20:23:01 -04:00
incoming_email.rb Rename reply_by_email to incoming_email to prepare for the future. 2015-09-21 10:35:37 +02:00
inline_diff.rb Fix bug where backslashes in inline diffs could be dropped 2015-08-11 18:39:27 -07:00
issues_labels.rb remove feature label 2014-10-31 17:22:16 -07:00
key_fingerprint.rb Simplify regex. 2015-04-14 15:58:28 +02:00
logger.rb Dry admin logs. 2014-10-06 00:14:46 +02:00
markdown.rb Fix emoji URLs in Markdown when relative_url_root is used 2015-09-06 09:46:10 -07:00
markup_helper.rb markup_helper: detect .mkd and .mkdn as markdown 2015-08-12 15:29:15 -04:00
note_data_builder.rb No longer needed to pass project argument to commit methods. 2015-04-24 12:29:36 +02:00
popen.rb Style/RedundantReturn enabled 2015-03-24 18:35:57 -07:00
production_logger.rb Dry admin logs. 2014-10-06 00:14:46 +02:00
project_search_results.rb Revert "No need to check if `repository_ref` is present" 2015-06-09 15:18:15 +02:00
push_data_builder.rb Dont set checkout sha for removed branch/tag 2015-06-15 17:54:22 +02:00
reference_extractor.rb Require gitlab/markdown in ReferenceExtractor 2015-09-01 13:28:19 -04:00
regex.rb Fix (project_)name_regex to accept non-ASCII letters and dash 2015-04-27 16:38:47 +02:00
search_results.rb Ability to search milestones 2015-08-24 13:59:01 +03:00
seeder.rb Revert "Create dev fixture projects with fixed visibility" 2014-11-10 16:17:04 +02:00
sidekiq_logger.rb Dry admin logs. 2014-10-06 00:14:46 +02:00
snippet_search_results.rb Updating to persist a params snippets variable 2014-09-05 13:30:55 -04:00
themes.rb Add `count` to Themes and ColorSchemes 2015-08-26 11:30:38 -07:00
upgrader.rb Fix upgrader script 2015-05-23 13:11:23 +03:00
url_builder.rb Merge branch 'master' into ci-and-ce-sitting-in-a-tree-k-i-s-s-i-n-g 2015-09-09 14:56:02 +02:00
user_access.rb Cache LDAP check in Gitlab::UserAccess 2014-08-06 18:03:01 +02:00
utils.rb add common method to force utf8 and force oauth properties to be utf8 2015-05-03 00:43:46 +03:00
version_info.rb
visibility_level.rb Fork visibility level fix 2015-07-06 17:40:33 +03:00