CAS + LDAP Filter

Hi,
I’m using CAS authentication plus LDAP with filter validation.

When entering Gitlab, CAS pops up. When loging with a valid CAS user who does not belong to the require LDAP group, it redirects to the /users/sign_in page.

Is there any way to disable this redirection, or to redirect to another URL?

Thanks!