Comments (7)
Hi,
sure, you can limit commands in a profile:
profile roAccess {
script {
if (service == shell) {
# message = "commandline=${cmd]" # uncomment that to see the command line
if (cmd == "") { set priv-lvl = 15 pemit } # permit exec
if (cmd =~ /^ping /) permit
if (cmd = /^show run/ permit
deny
}
}
}
Cheers,
Marc
from event-driven-servers.
Great! And how do I fix this? I came across it before when I was editing the config, but I couldn't figure it out
if (cmd =~ /
tac_plus-ng.cfg:40: You're using PCRE syntax, but this binary wasn't compiled with PCRE support.
10893: tac_plus-ng.cfg:40: You're using PCRE syntax, but this binary wasn't compiled with PCRE support.
10893: Detected fatal configuration error. Exiting.
from event-driven-servers.
It seems like I fixed an error related to PCRE. Installed additional packages and executed ./configure --with-pcre.
But the way you proposed to limit commands did not work, any commands are executed
from event-driven-servers.
Hi,
if PCRE (v2 will be mandatory soon) support is available (and "tac_plus-ng -v" confirms that) it's likely that your router/switch/whatever configuration lacks authorization directives. You're using the appropriate "aaa authorization command" statements (assuming that this is a Cisco device)?
Cheers,
Marc
from event-driven-servers.
I use the following Cisco settings (maybe I missed something):
!
tacacs server tpng
address ipv4 x.x.x.x
key secret
!
aaa group server tacacs+ tpnggp
server name tpng
!
aaa authentication login default group tpnggp local
aaa authorization exec default group tpnggp local
!
from event-driven-servers.
Hi,
I'd try
aaa authorization commands 15 default group tpnggp if-authenticated
and, eventually,
aaa authorization config-commands
Cheers,
Marc
from event-driven-servers.
It looks like it's working!
I'll figure it out a little better tomorrow.
Thank you very much Mark, you helped me a lot!
from event-driven-servers.
Related Issues (20)
- groups filter stops working after Oct 2 change HOT 2
- groups_getlist() implementation of getgrouplist() doesn't match the libc implementation with sssd enabled HOT 2
- tac_plus to docker logs HOT 1
- Local used variable won't be free until user is free-ed HOT 1
- Unable to compile on Debian HOT 3
- Custom Logging destination in tac_plus HOT 3
- LDAP SSL/TLS version HOT 1
- mavis external python module HOT 10
- Outdated tac_plus-ng documentation HOT 5
- FLAG_USE_MEMBEROF is being ignored HOT 4
- tac_plus-ng: Multiple External Authentication Sources ceased working since commit 193d7513a352ae7c70650fbdcba1002b982f9e2d HOT 1
- tac_plus: Timeout for non-responding ldap-servers HOT 1
- config error HOT 2
- Compile error since commit 5ed6cbc66be00d3cf090dbae88650a0038d8b1c6 (tac_plus-ng: add dns name logging) HOT 3
- empty key not working HOT 2
- syslog format question HOT 2
- Local user and AD connection problem HOT 4
- tacplus-ng: Regular expression matching is unsupported for 'nac' since b5d4dada8a326f3e3a02690ad3cbd9fa67a0882b HOT 5
- Broken if-clause / external module inclusion since Apr., 17 2023 (193d7513) HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from event-driven-servers.