Alan,
What I am trying to do is pass some attributes in a shell script.
I currently pass the USER_NAME to a shell script. I call it
In the users file with the following line.
Exec-Program = /usr/local/etc/raddb/authUser.sh
In the shell script I access $USER_NAME and pass the user name.
Here's the problem:
It looks like only attributes in the ACCESS-REQUEST create shell
variables. I need the attributes in the ACCESS-ACCEPT to create
Shell variables.
printenv results:
PWD=/root
CLIENT_IP_ADDRESS=10.0.0.53
REALM="widget.com"
STRIPPED_USER_NAME="bob"
NAS_IP_ADDRESS=10.0.0.53
USER_NAME="[EMAIL PROTECTED]"
SHLVL=1
USER_PASSWORD="gr00vi3"
------------------------
authUser.sh
mac=$CALLING_STATION_ID
user=$USER_NAME
wget "http://10.0.0.212/appdir/RadiusLogin.jsp?userName=$user&mac=$mac"
printenv >> /usr/local/etc/raddb/env_vsa_vars.txt
Thanks,
Ron Wahler.
-----Original Message-----
From: Alan DeKok [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 5:09 AM
To: [EMAIL PROTECTED]
Subject: Re: Can RADIUS attributes pass through to Apache?
"Ron Wahler" <[EMAIL PROTECTED]> wrote:
> I was thinking more of how Freeradius could assign a variable to an
> attribute from the access Accept message, in a proxy configuration.
...
> what file do I need to update to create the Attribute-name, I did add
my
> own
> VSA file and added it to dictionary. Now I want to access the
attribute
> I Created.
You should be able to just refer to it by name.
Alan DeKok.
-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html