Monday, March 25, 2002, 7:28:31 PM, you wrote:

BN> Andrei Koulik wrote:
>> DEFAULT Service-Type == Framed-User
>>         Framed-IP-Address = 255.255.255.254,
>>         Framed-MTU = 576,
>>         Service-Type = Framed-User,
>>         Fall-Through = Yes
>> 
>>         Framed-Protocol == PPP
>>         Framed-Protocol = PPP,
>>         Framed-Compression = Van-Jacobson-TCP-IP
>> 
>> Note: by default Fall-Through = Yes

BN> Aha! So you multiplexes several check-/reply-item tuples per key using
BN> an empty line as a separator. Clever.
No. All blank line are ignored they are for readability only.
Separators are: newline or ';'
By other words: if ',' found then parameter list are continuing, if
'\n' or ';'  have found then assume end-of-list reached.
The ';' need only to distinguish an empty line from empty list:

# permit any framed  user
DEFAULT Service-Type == Framed-User
         Framed-IP-Address = 255.255.255.254,
         Framed-MTU = 576,
         Service-Type = Framed-User,
         Fall-Through = Yes

#except who call from number 555-666
DEFAULT Auth-Type := Reject,Service-Type ==Framed-User,
        Calling-Station-ID == "555-666"

#or call number 555-667
DEFAULT Auth-Type := Reject,Service-Type ==Framed-User,
        Calling-Station-ID == "555-667"

it should  look like:
DEFAULT Service-Type == Framed-User    (1)
         Framed-IP-Address = 255.255.255.254, # comma - list continued
         Framed-MTU = 576,
         Service-Type = Framed-User,
         Fall-Through = Yes         # \n - end of list
         Auth-Type := Reject,Service-Type ==Framed-User, (2)
         Calling-Station-ID == "555-666"
         ;
         Auth-Type := Reject,Service-Type ==Framed-User, (3)
         Calling-Station-ID == "555-667"
         ;
this entity contain of three pairs:(1),(2),(3)
pairs (2) and (3) contain an empty reply lists, but we can't leave it
blank because blank lines ignored, so we must set "end of list" to
declare an empty list but not empty line.


>> gdbm support compatibility with dbm and Alan added a configure script
>> which can recognize dbm or gbm installed on your box. So nothing need
>> to do in this way

BN> I'll mail some flowers for you and Alan. :)
Ok, but good idea to attach a message with rlm_dbm documentation.
Flowers may be omitted.
:)
BN> Thanks for the help; this has made the migration a lot easier.


-- 
Andrei Koulik.


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

Reply via email to