jathanism / do_auth

A post-authorization script for tac_plus to allow greater flexibility in TACACS+ authentication and authorization controls.
tacacs.org
GNU General Public License v3.0
25 stars 9 forks source link

Implement optional support for CIDR notation for IP addresses #2

Closed jathanism closed 6 years ago

jathanism commented 10 years ago

It would be nice if IP addresses specified in do_auth.ini worked with regex OR / notation. Dan provided a patch that can be found in this Gist that uses netaddr:

https://gist.github.com/jathanism/0377958332d0f534e2a5

This adds the ability to match ip addresses on subnet (ie - / notation) instead (or even in addition) to regexes.

jathanism commented 6 years ago

Fixed in 29a74260c21e146edf56127a0afd747b0516a8eb