cas admin pages from every IP?

27 views
Skip to first unread message

Jennifer LaVoie

unread,
May 15, 2018, 3:54:59 PM5/15/18
to CAS Community
I want to be able to hit the admin page from any host...is there a way to do that in the /etc/cas/config/cas.properties file?  I tried leaving the entry blank, but no luck

my subnet is 10.28.51 so I at least need that so all my sys admins can log in.

thanks
Jen

David Curry

unread,
May 15, 2018, 4:02:41 PM5/15/18
to cas-...@apereo.org
You need to set  cas.adminPagesSecurity.ip to a regular expression that matches the IPs you want to let in.

To allow all of 10.28.51 in, you'd have something like this:

cas.adminPagesSecurity.ip:              ^10\\.28\\.51\\.[0-9]{1,3}$

I have something like this:

cas.adminPagesSecurity.ip:              ^192\\.168\\.(50\\.[0-9]{1,3}|1\\.[12]0)$

which allows the entire 192.168.50 subnet, as well as 192.168.1.10 and 192.168.1.20 (the load balancers).

You can use the entire regexp syntax in there, so you can go crazy. :-)

You might find this helpful to make sure you get what you want: https://www.freeformatter.com/java-regex-tester.html



--

DAVID A. CURRY, CISSP
DIRECTOR OF INFORMATION SECURITY
INFORMATION TECHNOLOGY

71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
+1 212 229-5300 x4728david...@newschool.edu

The New School


--
- 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/1323debf-0538-47b1-a9b0-15bed457abb1%40apereo.org.

Jennifer LaVoie

unread,
May 15, 2018, 4:03:25 PM5/15/18
to cas-...@apereo.org
Thanks again

what type of pizza do you eat?

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+unsubscribe@apereo.org.



--
"Confusion is a word we have invented for an order which is not understood."  ~Henry Miller
Reply all
Reply to author
Forward
0 new messages