Commit e0d5c592 authored by kkm's avatar kkm

Look up Kerberos identity without the @REALM if a lookup for the full UPN did...

Look up Kerberos identity without the @REALM if a lookup for the full UPN did not find the identity.
parent 56fee497
......@@ -97,6 +97,7 @@ module Grack
# Set @user if authentication succeeded
identity = ::Identity.find_by(provider: 'kerberos', extern_uid: krb_principal)
identity ||= ::Identity.find_by(provider: 'kerberos', extern_uid: krb_principal.split("@")[0])
@user = identity.user if identity
else
# Authentication with username and password
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment