Hi all, In a users file, I have for example: # DEFAULT Group == "disabled", Auth-Type := Reject # Reply-Message = "Your account has been disabled." # [...] # steve Cleartext-Password := "testing" # Service-Type = Framed-User, # Framed-Protocol = PPP, # Framed-IP-Address = 172.16.3.33, # Framed-IP-Netmask = 255.255.255.0, # Framed-Routing = Broadcast-Listen, # Framed-Filter-Id = "std.ppp", # Framed-MTU = 1500, # Framed-Compression = Van-Jacobsen-TCP-IP I have a few questions, and I am looking for the place they are documented. I dont have all the technical terms yet to make an efficient search. - what is the difference between ':=', '==' and '=' - when do/dont I put a comma - in the DEFAULT, I would like append 'Simultaneous-Use := 1' [1], but what is the syntax if i want multiple DEFAULTSs After that, I will switch to PG-SQL, and looking at: http://wiki.freeradius.org/SQL_HOWTO, must I have somthing like: +----+----------------+--------------------+------------------+------+ | id | UserName | Attribute | Value | Op | +----+----------------+--------------------+------------------+------+ | 1 | fredf | Cleartext-Password | wilma | := | | 2 | barney | Cleartext-Password | betty | := | | 2 | dialrouter | Cleartext-Password | dialup | := | | | fredf | Simultaneous-Use | 1 | := | | | barney | Simultaneous-Use | 1 | := | | | dialrouter | Simultaneous-Use | 1 | := | +----+----------------+--------------------+------------------+------+ In the database? [1] In order to _help_ the Access controller to forbid simultneous login -- Architecte Informatique: Administration Systeme, Recherche & Developpement + 261 32 11 401 65 Pensez a l'environnement avant d'imprimer ce message
07/24/2009 11:14 AM, Rakotomandimby Mihamina::
# DEFAULT Group == "disabled", Auth-Type := Reject # Reply-Message = "Your account has been disabled."
- in the DEFAULT, I would like append 'Simultaneous-Use := 1' [1], but what is the syntax if i want multiple DEFAULTSs
Not clear. I meant: I would like to add many defaults Attributes/Values, what is the syntax? -- Architecte Informatique: Administration Systeme, Recherche & Developpement + 261 32 11 401 65 Pensez a l'environnement avant d'imprimer ce message
07/24/2009 11:14 AM, Rakotomandimby Mihamina::
# DEFAULT Group == "disabled", Auth-Type := Reject # Reply-Message = "Your account has been disabled."
- in the DEFAULT, I would like append 'Simultaneous-Use := 1' [1], but what is the syntax if i want multiple DEFAULTSs
Not clear. I meant: I would like to add many defaults Attributes/Values, what is the syntax?
In sql you use groups.Again, chack items go into radgroupcheck, reply into radgroupreply. And you add user to as many groups as you like in radusergroup. If group check items match, reply items will be added to user profile (if they don't, reply items will be ignored). Ivan Kalik Kalik Informatika ISP
Rakotomandimby Mihamina wrote:
- what is the difference between ':=', '==' and '='
"man users"
- when do/dont I put a comma
"man users"
- in the DEFAULT, I would like append 'Simultaneous-Use := 1' [1], but what is the syntax if i want multiple DEFAULTSs
I'm not sure that will work. Alan DeKok.
- what is the difference between ':=', '==' and '='
You also have a nice wiki page about it: http://wiki.freeradius.org/Operators
After that, I will switch to PG-SQL, and looking at: http://wiki.freeradius.org/SQL_HOWTO, must I have somthing like:
+----+----------------+--------------------+------------------+------+ | id | UserName | Attribute | Value | Op | +----+----------------+--------------------+------------------+------+ | 1 | fredf | Cleartext-Password | wilma | := | | 2 | barney | Cleartext-Password | betty | := | | 2 | dialrouter | Cleartext-Password | dialup | := | | | fredf | Simultaneous-Use | 1 | := | | | barney | Simultaneous-Use | 1 | := | | | dialrouter | Simultaneous-Use | 1 | := | +----+----------------+--------------------+------------------+------+
In the database?
[1] In order to _help_ the Access controller to forbid simultneous login
Yes, things from the check line go into radcheck table, reply items to radreply table. Ivan Kalik Kalik Informatika ISP
participants (3)
-
Alan DeKok -
Ivan Kalik -
Rakotomandimby Mihamina