On May 7, 9:55am, Arnie Roberts wrote:
> Subject: RE: (RADIATOR) beginners question
> On Friday, May 07, 1999 3:08 PM, Mike McCauley [SMTP:[EMAIL PROTECTED]]
> > That should work, irrespective of whether they are in the dictionary or
> > Probably you have your DefaultReply spread over several lines in the config
> > file without using the line continuation character (ie the backslash \) ?.
> > should put the entire DefaultReply on one line, else use line
> > DefaultReply attr1=val1,\
> > attr2=val2,\
> > etc....
> Yes that is what I was doing wrong. It works now - thanks.
> > >
> > > Another beginners question -
> > > A user has two phones at home and I want to check his caller-id is one or
> > other.
> > > How do you logically or a string check item?
> > In the users file:
> > username Password=xxxxx,Calling-Station-Id=95980985
> > reply item,
> > reply item,
> > ....
> > (Of course this requires that your NAS is sending Calling-Station-Id in
> > request)
> Yes the NAS sends Calling-Station-Id but I don't understand your reply.
> Calling-Station-Id is a string attribute and not an integer and so I would
> expected your users entry to have been
> username Password=xxxxx,Calling-Station-Id="95980985"
You only need the quotes of there are spaces in the string. Its pretty liberal.
> If my users two phones are 9580985 and 1234567 then the Calling-Station-Id
> be either of these and the check item needs to reflect this. I can guess from
> example users file how to OR integers. There is no example of OR for string
> however and despite trying many syntactical possibilities I haven't managed
to get it
its doesnt really matter if its a string or an integer, exact matches and
regular expressions work the same. If you want to match 2 possibilities, you
will need to do it like this:
Since this is using a regular expression match, you _must_ have the slashes at
Hope that helps.
Mike McCauley [EMAIL PROTECTED]
Open System Consultants Pty. Ltd Unix, Perl, Motif, C++, WWW
24 Bateman St Hampton, VIC 3188 Australia http://www.open.com.au
Phone +61 3 9598-0985 Fax +61 3 9598-0955
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8,
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.