odoo/odoo — pull request #2865 by hbrunn (2014-10-02 13:56:35+00:00)
Title: [FIX] strip spaces from user name as they will probably be ignored by ldap's search

According to http://tools.ietf.org/html/rfc4518, caseIgnoreMatch (the matching operator commonly used for uid) also discards 'insignificant spaces'. The informative section states that this includes leading and trailing spaces.