gitlabhq/gitlabhq — pull request #5366 by Y3PP3R (2013-10-18 14:15:37+00:00)
Title: Fix for LDAP auth failing when LDAP email has a leading space

Easy fix: after getting the leading part from the email, use .strip() Fixes #1603 for me