Baba,

This sounds like Haproxy config issue. Perhaps that user list could help.

Ray

On Mon, 2022-06-13 at 03:06 -0700, Baba Ndiaye wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Hello guys
I'm using Haproxy (public IP) and moodle for my backend (private IP). Now it's 
work nice. But when i use CAS SSO for the authentication in my url service i 
have the address of my backend moodle and not my frontend like this  
https://mycas.example.com/cas/login?service=https%3A%2F%2Fmymoodleinterne.mydomainlocal.com%2Flogin%2Findex.php%3FauthCAS%3DCAS
my frontend url adress myhaproxy.example.com
my moodle url address mymoodleinterne.mydomainlocal.com
i want if that my CAS use myhaproxy url and not mymoodleinterne

Le vendredi 11 mars 2022 à 15:26:14 UTC, C Ryan a écrit :

Perfect, that did it.

Thanks Misagh

On 3/10/22 11:44 PM, Misagh wrote:
Sorry. Didn't realize you are on 6.3.x. Use:

cas.audit.alternate-client-addr-header-name=X-Forwarded-For

On Fri, Mar 11, 2022, 8:40 AM Misagh <misagh....@gmail.com> wrote:

  *   cas.audit.engine.alternate-client-addr-header-name=

  *

Request header to use to identify the client address.

If the application is sitting behind a load balancer, the client address 
typically ends up being the load balancer address itself. A common example for 
a header here would be X-Forwarded-For to glean the client address from the 
request, assuming the load balancer is configured correctly to pass that header 
along.

-- Misagh

On Fri, Mar 11, 2022, 4:54 AM Colin Ryan <col...@caveo.ca> wrote:
Folks,

I know there's lots of info on this but I just can't seem to make it go,
it should be a no brainer...but...alas...


I'm running CAS 6.3 in a Docker Container with embedded Spring Tomcat.
In front of this is Apache2 Reverse Proxy with straight forward
ProxyPass/ProxyPassReverse configurations. CAS itself is working
completely but the CLIENT-IP in the audit logs is showing the IP of the
Reverse Proxy.

What Directives do I need in cas.properties to correct this.

from the CAS Shell I've found the:


  server.tomcat.remote-ip-header: X-FORWARDED-FOR


directive and I've tried a few other server directives from the Spring
Boot world, just can't make it work.



--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+u...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/c52de75b-b2ba-ac98-0a4b-6ba27f170d12%40caveo.ca.


-- Misagh

--

Ray Bon
Programmer Analyst
Development Services, University Systems
2507218831 | CLE 019 | r...@uvic.ca<mailto:r...@uvic.ca>

I acknowledge and respect the lək̓ʷəŋən peoples on whose traditional territory 
the university stands, and the Songhees, Esquimalt and WSÁNEĆ peoples whose 
historical relationships with the land continue to this day.

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/4e092f25cc98bc1dbedd7b864fe9e6556884f93e.camel%40uvic.ca.

Reply via email to