LDAP authentication fails when loggin in with a username containing '!'

Environment:

HOSTNAME: llin417
OS: redhat
RELEASE: Red Hat Enterprise Linux Server release 6.7 (Santiago)
FOREMAN: 1.10.0-RC2
RUBY: ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
PUPPET: 3.8.3
DENIALS: 30758

Explanation:

Try to use Windows AD for authentication and creation of foreman user in
Katello…

we have two username conventions: !username is an admin account, and plain
username is the regular user account.

used DOMAIN!username to bind to the AD server gave no problems…

However using !username to try to login to Foreman returns Invalid username
or password error, while the plain username gets accepted and logs in
without problems.

Thanks for helping out…

foreman-debug-wTYpo.tar.xz (12.6 KB)