CAS 5 alternativeIpAddressHeader

49 views
Skip to first unread message

Adam Causey

unread,
Dec 13, 2017, 3:46:23 PM12/13/17
to cas-...@apereo.org
We are upgrading from CAS 3.x to CAS 5.1.4 . Currently we log the originating IP (X-Forwarded-For) with this configuration in the web.xml in CAS 3:

<filter>
                <filter-name>CAS Client Info Logging Filter</filter-name>
                <filter-class>com.github.inspektr.common.web.ClientInfoThreadLocalFilter</filter-class>
                <init-param>
                        <param-name>alternativeIpAddressHeader</param-name>
                        <param-value>X-Forwarded-For</param-value>
                </init-param>
        </filter>


How can I achieve the same thing in CAS 5.1.4?


Thank you,
Adam

Misagh Moayyed

unread,
Dec 13, 2017, 5:35:52 PM12/13/17
to cas-...@apereo.org
--
- 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/CAN6MV5PjAhhWJMwZjPjT-_Hp2fjzSAg1nH%2BsgWQ6A99mcqny8A%40mail.gmail.com.

Adam Causey

unread,
Dec 14, 2017, 7:52:52 AM12/14/17
to cas-...@apereo.org
Thanks. I saw that but am not getting back the IPs. It's probably another configuration issue on the networking side.

Adam

To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

--
- 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+unsubscribe@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/1291951227.9872272.1513204548944.JavaMail.zimbra%40unicon.net.

Adam Causey

unread,
Dec 14, 2017, 8:31:33 AM12/14/17
to cas-...@apereo.org
I got this working. The CAS documentation implies that X-Forwarded-For is the default value for the 'cas.audit.alternateClientAddrHeaderName' property, which it is not. You have to specifically define this in your properties file and set it to X-Forwarded-For.  The documentation could be clearer to indicate that this is not a default value.

Adam

To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.

--
- 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.
Reply all
Reply to author
Forward
0 new messages