[EMAIL PROTECTED] sent:

Evan

I am trying to also add a customer attribute to return in the access-accept

i want to send

gnugk-lcr1 as a string.

i ahve added it into the radcheck table of mysql. and i notice that
normal dictionary defined attributes will show in the response, but not
my attributes? where and in what dictionary do i put my customized
attriubutes so freeradius will send them in the access-accept message.
alan dekok is treating my posts much like he treated yours. so i dont
expect quick help from him until he has detroyed my self esteem. thanks!
-----------------------------------------------------
-----------------------------------------------------

I only think you need the attribute in the check table if you are going to use it for 
authentication, like a password (I'm not 100% sure on this because I only use the 
password in the radcheck).  It sounds like you need this in the radreply table to add 
the attribute to the access-accept packet.

You have to add this string to the dictionary to set it up correctly
for example, this went in my dictionary for my attribute
VENDOR  Slipstream  7000
ATTRIBUTE   Slipstream-Auth 1 string    Slipstream

that means that it will send out this attribute with the value of 7000
so it's something like, 7000=TRUE or 7000=False   (something like that, I'm not quite 
completely technical with this; someone please correct me if I'm wrong)

ANYWAY
add it to the radreply table
so for mine, it is:
id, username, attribute,          value,   op (maybe not in that order)
1   evan      slipstream-auth     TRUE     :=

then, when I do a radtest, I get this in the Access-Accept packet
Slipsream-Auth = TRUE



I hope this is clear enough
Just add it to the dictionary (I don't know what settings you'll need though for 
that), then put the attribute into the radreply table
You may have to adjust this.

If you need any other help (doesn't matter how simple; could be "how do I add it to 
the radreply table?), i'll try and help

Evan 

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to