0

Using CAS 6.6.8.

I have users than can login with a user name like "jsmith" or with an email like "john.smith@ex---e.com".

I have user attributes stored in db as the user name, in this case jsmith.

I'm setting my principle id from ldap as:

cas.authn.ldap[0].principalAttributeId: uid

I have my repository query setup as:

cas.authn.attribute-repository.jdbc[0].sql=select a, b, c from user_table where {0}
cas.authn.attributeRepository.jdbc[0].username=USER_ID

This works fine when user logins with username, but does not return results when logging in with email address. Enabling debug statement shows the CredentialId is being used in the query and not the principle id.

Is this a bug or a misconfig?

Micho Rizo
  • 1,000
  • 3
  • 12
  • 27

0 Answers0