Repository navigation
Is it possible to use environment variables in the tac_plus-ng config? #185
Answered
by
MarcJHuber
Kleinrotti
asked this question in
Q&A
|
Hi, mavis module = external {
setenv LDAP_SERVER_TYPE = "microsoft"
setenv LDAP_HOSTS = "ldaps://test.lan"
setenv LDAP_BASE = "dc=test,dc=lan"
setenv LDAP_USER = "test"
setenv LDAP_PASSWD = $LDAPPASSWORD
setenv LDAP_NESTED_GROUP_DEPTH = 1
exec = /usr/local/lib/mavis/mavis_tacplus-ng_ldap.pl
}
host switches {
address = 0.0.0.0/0
welcome banner = "Welcome\n"
anonymous-enable = yes
key = $TACACSKEY
}Is that possible? |
Answered by
MarcJHuber
Sep 29, 2025
Replies: 1 comment
|
Hi, yes, just use Cheers, Marc |
0 replies
Answer selected by
Kleinrotti
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
yes, just use
"${yourVariableName}". Quoting the string is pretty much mandatory.Cheers,
Marc