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 On Thu, Dec 14, 2017 at 7:52 AM, Adam Causey <[email protected]> wrote: > Thanks. I saw that but am not getting back the IPs. It's probably another > configuration issue on the networking side. > > Adam > > On Wed, Dec 13, 2017 at 5:35 PM, Misagh Moayyed <[email protected]> > wrote: > >> https://apereo.github.io/cas/5.1.x/installation/Configuratio >> n-Properties.html >> <https://apereo.github.io/cas/5.1.x/installation/Configuration-Properties.html#audits> >> >> Look up Audits. >> >> --Misagh >> >> ------------------------------ >> >> *From: *"Adam Causey" <[email protected]> >> *To: *[email protected] >> *Sent: *Wednesday, December 13, 2017 1:45:55 PM >> *Subject: *[cas-user] CAS 5 alternativeIpAddressHeader >> >> 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.inspe >> ktr.common.web.ClientInfoThreadLocalFilter</filter-class> >> <init-param> >> <param-name>alternativeIpAddre >> ssHeader</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 >> >> -- >> - 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 [email protected]. >> To view this discussion on the web visit https://groups.google.com/a/ap >> ereo.org/d/msgid/cas-user/CAN6MV5PjAhhWJMwZjPjT-_Hp2fjzSAg1n >> H%2BsgWQ6A99mcqny8A%40mail.gmail.com >> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAN6MV5PjAhhWJMwZjPjT-_Hp2fjzSAg1nH%2BsgWQ6A99mcqny8A%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> -- >> - 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 [email protected]. >> To view this discussion on the web visit https://groups.google.com/a/ap >> ereo.org/d/msgid/cas-user/1291951227.9872272.1513204548944. >> JavaMail.zimbra%40unicon.net >> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/1291951227.9872272.1513204548944.JavaMail.zimbra%40unicon.net?utm_medium=email&utm_source=footer> >> . >> > > -- - 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 [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAN6MV5N0Ak--Pu4HQzsD8LFz7UktAtpBN1J30-nHZoENbtjwbQ%40mail.gmail.com.
