Re: (RADIATOR) Buffer Overflow in Radius

2001-07-11 Thread sj

Buffer overflow occurs if the app tries to put more data
to the buffer than its length.

Perl is different from C, Perl automatically manages buffers, you
don't have worry about buffer overflow until you don't execute other
program from your Perl script.

BTW, if you stick to C, try some compiler enhancements such as StackGuard
and make your stack non-executable (this won't prevent _all_ the buffer
overruns but will help a lot). If you're running Linux 2.2.x you can try
Solar Designer's openwall kernel patch

SJ.

Vajon mit eszik egy ilyen macska ?
Csak nem az uj kitekatot extra joghurttal ?

On Tue, 10 Jul 2001 [EMAIL PROTECTED] wrote:

 the xforce iss site indicates there is a possible buffer overflow
 vulnerability in two radius packages they tested.  They did not test
 radiator.

 Attached is the link to the iss site:
 http://xforce.iss.net/alerts/advise87.php

 Do we know if Radiator is susceptible to this vulnerability?


 ===
 Archive at http://www.open.com.au/archives/radiator/
 Announcements on [EMAIL PROTECTED]
 To unsubscribe, email '[EMAIL PROTECTED]' with
 'unsubscribe radiator' in the body of the message.


===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



Re: (RADIATOR) Radius Attribute to set Hostname?

2001-07-11 Thread Hugh Irvine


Hello Shon -

I think you will find that the service you were dialling in to had 
all their dialup ports defined in their DNS (many other providers do 
this as well).

As far as I know there is no way to specify a hostname with radius.

regards

Hugh


At 9:25 -0400 01/7/10, Shon Stephens wrote:
I am wondering how this is done. When I connected to my former ISP, 
if I ran winipcfg, my hostname would be (as an example) 
199-200-201-202-adsl.nyc.bellatlantic.net. This is even though my 
Windows host was named Laika. I am now working to set up a dial-up 
service and want to know if there is a Radius attribute to configure 
the hostname of a dial-up client. I tried making an entry for the IP 
address in DNS, figuring that maybe Windows would do a reverse 
lookup on itself, but this did not happen?

Thanks,
Shon Stephens

===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

-- 

NB: I am travelling this week, so there may be delays in our correspondence.

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



Re: (RADIATOR) Using Radiator for WholesaleDialupandSessionDatabase

2001-07-11 Thread Hugh Irvine


Hello Tom -

My point is, how are you going to decide how to apply a 
RewriteUsername if you don't know who the customer belongs to?

regards

Hugh


At 12:31 -0400 01/7/9, Tom Daly wrote:
I would say that's the problem. Since I enforce a default simultaneous use
of 1 caller, if identical usernames are trying to login from two different
wholesalers, one will be rejected, therefore, I would like to be able to add
a realm name before the username goes into the Session DB.

--Tom

- Original Message -
From: Hugh Irvine [EMAIL PROTECTED]
To: Tom Daly [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, July 07, 2001 12:50 AM
Subject: Re: (RADIATOR) Using Radiator for Wholesale
DialupandSessionDatabase



  Hello Tom -

  How are you going to know which customer is which?

  regards

  Hugh


  At 12:51 -0400 01/7/6, Tom Daly wrote:
  Hugh,
  
  I would say my problem then is this. I am using CalledStation.pm to send
  users to radius proxy which does not use a realm, so users will dialup
with
  'username'. Now, our ISP does not require users to have a realm name
either,
  so they also dialup with 'username'. In the case of two identical
usernames
  between ISPs, one user will not be authenticated. Is there a way I can
add a
  realm name to the CalledStation.pm users for the sake of the session
  database, however, still send the proxy server just 'username'. I am
  guessing this will need to be done with some sort of hook.
  
  --Tom
  
  - Original Message -
  From: Hugh Irvine [EMAIL PROTECTED]
  To: Tom Daly [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Sent: Friday, July 06, 2001 12:21 PM
  Subject: Re: (RADIATOR) Using Radiator for Wholesale Dialup
  andSessionDatabase
  
  
  
Hi Tom -
  
By default Radiator uses the username string as received from the
NAS, as that is what it needs if it is to query the NAS directly to
verify connections.
  
regards
  
Hugh
  
  
At 12:29 -0400 01/7/6, Tom Daly wrote:
Hi,

By default, what entry does Radiator to put into the Session
Database?
  From
what I can see, it seems that it copies the Username as entered by
the
user, before any rewrite username, or other functions are used.

Tom

- Original Message -
From: Hugh Irvine [EMAIL PROTECTED]
To: Tom Daly [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 5:44 AM
Subject: Re: (RADIATOR) Using Radiator for Wholesale Dialup and
SessionDatabase



  Hello Tom -

  At 12:17 -0400 01/7/5, Tom Daly wrote:
  Hello,
  We are currently using Radiator and MySQL for a SessionDB. As a
  wholesale
  provider, we have two ways for our wholesalers to access
accounts.
  
  1. Per Port - An ISP is assigned a unique DNIS to which all
radius
requested
  are directed at thier radius server by proxy. We do this by the
  following
  method.
  
  CalledStationId /..3400/
   AuthBy RADIUS
   Host xxx.xxx.xxx.xxx
   Secret VeryVerySecret
   AuthPort 1645
   AcctPort 1646
   Retries 5
   RetryTimeout 15
   /AuthBy
  
  This method seems to be slow, as we have to search through a few
  hundred
  DNISs for the same provider, if they have multiple DNISs. So I am
  looking
  for a way to use one statement that will search each providers
list
  of
  DNISs. Also, when a customer dials in, thier username is just
  username.
It
  there a way to make the session database show
[EMAIL PROTECTED],
  but
  still pass username to the proxy radius server?


  If you are using the CalledStationId.pm file from the goodies
  section of the distribution, there is almost no overhead, as the
  number that is specified in the definition is used as a key to
  directly access that clause. This is by far the fastest way to
  process large numbers of phone numbers.

  For your second question, you can use RewriteUsername(s) and
custom
  queries for the SessionDatabase to do what you require.


  2. Per User - An ISP is assigned a Unique REALM via a Realm or
  Handler
  Realm= Clause. This gets very very complicated, so it there a
way to
  simplify this?


  I don't understand the problem, sorry. Can you elaborate?


  Also, 1 ISP does not use a realm, so is there a way to make
  the session database show [EMAIL PROTECTED] and the radius
server
check
  for just username?
 
  See above - RewriteUsername(s) and custom queries.

  regards

  Hugh

  --

  NB: I am travelling this week, so there may be delays in our
correspondence.

  Radiator: the most portable, flexible and configurable RADIUS
server
  anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT,

Re: (RADIATOR) IPass Accounting

2001-07-11 Thread Hugh Irvine


Hi Charles -

This sounds like a problem with iPASS not sending accounting stops. 
You should probably check with them what is happening.

regards

Hugh


At 13:56 -0400 01/7/9, Charles Sprickman wrote:
Hi,

I've been noticing that about half of my ipass sections linger on in my
radonline table, and that I'm not seeing stops quite often... or possibly
multiple starts???

Anyone else using radiator and Ipass notice anything strange?  I can't run
the ping check, as I don't yet want to run radiator as root...

Thanks,

Charles

| Charles Sprickman  | Internet Channel
| INCH System Administration Team| (212)243-5200
| [EMAIL PROTECTED] | [EMAIL PROTECTED]


===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

-- 

NB: I am travelling this week, so there may be delays in our correspondence.

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



Re: (RADIATOR) problem about radiator server

2001-07-11 Thread Hugh Irvine


Hello Eddie -

You will have to configure a Client clause for your NAS:

Client 203.100.64.69
Secret xxx
..
/Client

hth

Hugh


Dear Sir/Madam,

I have installed radiator server and tried to configured for my needs
but the error comes out
as follows when I tried to run radpwtst in the command prompt.

I intend to us UNIX password file for authentication but I have not
tested with NAS, is it possible
if I did not set up a NAS for testing?That means I just installed the
radiator server and then
tested it with the program radpwtst.


The logs have been recorded and stated as follows:



*** Sending to 127.0.0.1 port 53175 
Code:   Accounting-Response
Identifier: 58
Authentic:  21u183?`192X1P207$17+w193a
Attributes:

Mon Jul  9 15:13:02 2001: DEBUG: Packet dump:
*** Received from 203.100.64.69 port 56936 
Code:   Access-Request
Identifier: 90
Authentic:  1234567890123456
Attributes:
 User-Name = eddie
 Service-Type = Framed-User
 NAS-IP-Address = 203.63.154.1
 NAS-Port = 1234
 Called-Station-Id = 123456789
 Calling-Station-Id = 987654321
 NAS-Port-Type = Async
 User-Password =
156239;196202m619718889160216}x153

Mon Jul  9 15:13:02 2001: NOTICE: Request from unknown client
203.100.64.69: ignored
Mon Jul  9 15:13:05 2001: DEBUG: Packet dump:
*** Received from 203.100.64.69 port 56936 
Code:   Accounting-Request
Identifier: 91
Authentic:  131184!178139208254)g18,6166244R(
Attributes:
 User-Name = eddie
 Service-Type = Framed-User
 NAS-IP-Address = 203.63.154.1
 NAS-Port = 1234
 NAS-Port-Type = Async
 Acct-Session-Id = 1234
 Acct-Status-Type = Start
 Called-Station-Id = 123456789
 Calling-Station-Id = 987654321

Mon Jul  9 15:13:05 2001: NOTICE: Request from unknown client
203.100.64.69: ignored
Mon Jul  9 15:13:10 2001: DEBUG: Packet dump:
*** Received from 203.100.64.69 port 56936 
Code:   Accounting-Request
Identifier: 92
Authentic:
194(225S24829225194162372481952312x171
Attributes:
 User-Name = eddie
 Service-Type = Framed-User
 NAS-IP-Address = 203.63.154.1
 NAS-Port = 1234
 NAS-Port-Type = Async
 Acct-Session-Id = 1234
 Acct-Status-Type = Stop
 Called-Station-Id = 123456789
 Calling-Station-Id = 987654321
 Acct-Delay-Time = 0
 Acct-Session-Time = 1000
 Acct-Input-Octets = 2
 Acct-Output-Octets = 3

Mon Jul  9 15:13:10 2001: NOTICE: Request from unknown client
203.100.64.69: ignored
***

Regards,
Eddie




---End of forwarded mail from [EMAIL PROTECTED]

--
Mike McCauley   [EMAIL PROTECTED]
Open System Consultants Pty. LtdUnix, 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, Active Directory etc etc
on Unix, Win95/8, 2000, NT, MacOS 9, MacOS X
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

-- 

NB: I am travelling this week, so there may be delays in our correspondence.

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



Re: (RADIATOR) Linux and 2.18.2

2001-07-11 Thread Hugh Irvine


Hello Chris -

When you installed Radiator and ran the test suite, what did that show?

And what happens with just a simple configuartion file?

In this particular case, it looks like there is a problem reading the 
client list from the SQL database. Have you installed DBI and DBD 
correctly?

hth

Hugh


At 15:50 -0600 01/7/9, Chris M wrote:
I'm running Radiator on a new (meaning clean RedHat 7.1 install) box and
have some annoying things happening.

When Radiator starts it logs a few messages to the Trace 4 log,.then
stops!  It just quits logging to the %d log file.

I went to the Download page and didn't see any new patches there (although
it alludes to some, all I can seem to download is the 2.18.2 distribution).

The log portion of the config looks like this right now:

# Set this to the directory where your logfile and details file are to go
LogDir  /home/radius/raw
LogFile /home/radius/raw/%d-radius.log

#Log SYSLOG
#   Facility radius
#/Log

Trace 4

Log SQL
 DBSource   dbi:mysql:raddude
 DBUsername mysql
 DBAuth yeah yeah some password

 Trace 3
/Log

Chris

--- what is in the raw log file, just some stuff from the startup then it
quits 

# more 08-radius.log
Sun Jul  8 22:19:47 2001: DEBUG: Adding Clients from SQL database
Sun Jul  8 22:19:47 2001: DEBUG: Query is: select
 NASIDENTIFIER,
 SECRET,
 IGNOREACCTSIGNATURE,
 DUPINTERVAL,
 DEFAULTREALM,
 NASTYPE,
 SNMPCOMMUNITY,
 LIVINGSTONOFFS,
 LIVINGSTONHOLE,
 FRAMEDGROUPBASEADDRESS,
 FRAMEDGROUPMAXPORTSPERCLASSC,
 REWRITEUSERNAME,
 NOIGNOREDUPLICATES,
 PREHANDLERHOOK from RADCLIENTLIST

Sun Jul  8 22:19:48 2001: DEBUG: Reading group file /etc/group
Sun Jul  8 22:19:55 2001: DEBUG: Adding Clients from SQL database
Sun Jul  8 22:19:55 2001: DEBUG: Query is: select
 NASIDENTIFIER,
 SECRET,
 IGNOREACCTSIGNATURE,
 DUPINTERVAL,
 DEFAULTREALM,
 NASTYPE,
 SNMPCOMMUNITY,
 LIVINGSTONOFFS,
 LIVINGSTONHOLE,
 FRAMEDGROUPBASEADDRESS,
 FRAMEDGROUPMAXPORTSPERCLASSC,
 REWRITEUSERNAME,
 NOIGNOREDUPLICATES,
 PREHANDLERHOOK from RADCLIENTLIST

Sun Jul  8 22:19:56 2001: DEBUG: Reading group file /etc/group
Sun Jul  8 22:20:00 2001: DEBUG: Adding Clients from SQL database
Sun Jul  8 22:20:00 2001: DEBUG: Query is: select
 NASIDENTIFIER,
 SECRET,
 IGNOREACCTSIGNATURE,
 DUPINTERVAL,
 DEFAULTREALM,
 NASTYPE,
 SNMPCOMMUNITY,
 LIVINGSTONOFFS,
 LIVINGSTONHOLE,
 FRAMEDGROUPBASEADDRESS,
 FRAMEDGROUPMAXPORTSPERCLASSC,
 REWRITEUSERNAME,
 NOIGNOREDUPLICATES,
 PREHANDLERHOOK from RADCLIENTLIST

Sun Jul  8 22:20:01 2001: DEBUG: Reading group file /etc/group

===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

-- 

NB: I am travelling this week, so there may be delays in our correspondence.

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



Re: (RADIATOR) CalledStation.pm

2001-07-11 Thread Hugh Irvine
Title: Re: (RADIATOR)
CalledStation.pm



Hello Tom -

You can do this very easily with multiple AuthBy clauses, as has
been discussed many times on this mailing list.

# define AuthBy SQL for accounting
# note empty AuthSelect to disable authentication

AuthBy SQL

Identifier SQLAccounting

DBSource 

DBUsername 
 DBAuth


AuthSelect

AccountingTable ACCOUNTING

AcctColumnDef .

..
/AuthBy

# define CalledStationId's

CalledStationId ..

AuthByPolicy ContinueAlways
 AuthBy
SQLAccounting
 AuthBy
ProxyToWhereever
/CalledStationId

.

hth

Hugh


At 16:19 -0400 01/7/9, Tom Daly wrote:
Hi
All,

When using
CalledStation.pm, is there a way to force accounting records to go to
two different servers? In my situation, I let my wholesalers run
thier own radius servers, which mine proxies to. This means that
authorization and accounting packets travel to thier servers.
However, for billing purposes, I need to get the accounting packets
as well. Does anyone know of a way that I can get them to go to my
MS-SQL DB as well at to the proxied radius server?

--Tom

Tom Daly
Network Operations Administrator
G4 Communications Corp. / Metro2000 Internet Services
E: [EMAIL PROTECTED] / W3: www.metro2000.net


--


NB:
I am travelling this week, so there may be delays in our
correspondence.

Radiator: the most portable, flexible and configurable RADIUS
server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT,
Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc,
etc.
Available on Unix, Linux,
FreeBSD, Windows 95/98/2000, NT, MacOS X.



(RADIATOR) Re: Using client list identifiers in handler

2001-07-11 Thread Hugh Irvine


Hello Griff -

If you just add the IDENTIFIER field to the list of fields in the 
select (at the end of the list), it will work (in Radiator 2.18.2):

select NASIDENTIFIER,SECRET,IGNOREACCTSIGNATURE,DUPINTERVAL, \
DEFAULTREALM,NASTYPE,SNMPCOMMUNITY,LIVINGSTONOFFS, \
 LIVINGSTONHOLE,FRAMEDGROUPBASEADDRESS, \
 FRAMEDGROUPMAXPORTSPERCLASSC,REWRITEUSERNAME, \
 NOIGNOREDUPLICATES,PREHANDLERHOOK, IDENTIFIER from \
RADCLIENTLIST


Then you can use the following for a Handler:

Handler Client-Identifier = myradclient
.
/Handler


hth

Hugh



At 15:16 -0700 01/7/9, Griff Hamlin wrote:
Hello,

Is it possible to have a handler that uses an 'identifier' from and SQL
client list? In the docs, it says that the following sql statement is
the default, and that the fields must come in this order. However, I
don't see 'identifier' or any such device listed unless NASIDENTIFIER is
an identifier that I can make up, similar to the regular client list,
instead of the nas IP address as I'm guessing.

select NASIDENTIFIER,SECRET,IGNOREACCTSIGNATURE,DUPINTERVAL,

DEFAULTREALM,NASTYPE,SNMPCOMMUNITY,LIVINGSTONOFFS,
  LIVINGSTONHOLE,FRAMEDGROUPBASEADDRESS,
  FRAMEDGROUPMAXPORTSPERCLASSC,REWRITEUSERNAME,
  NOIGNOREDUPLICATES,PREHANDLERHOOK from
RADCLIENTLIST

Furthermore, assuming that I have an identifier in a client block (not
in sql format, though I'd prefer that if I can):

Client 192.168.25.6)#the ip address is irrelevant
secret mysecret
identifier myradclient
/Client

can I then do

Handler identifier = myradclient
 #stuff
/Handler

If this is not possible, is it possible to make a handler that utilizes
the ip address of the actual radius client instead of the NAS ip address
in case they are different which sometimes happens from some of our
clients?

Griff Hamlin, III

-- 

NB: I am travelling this week, so there may be delays in our correspondence.

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



RE: (RADIATOR) problem about radiator server

2001-07-11 Thread Hugh Irvine


Hello Todd -

What is the problem?

thanks

Hugh


At 8:17 -0700 01/7/9, Todd Dokey wrote:
That is essentially the same error I am getting, only it isn't recognising
localhost, either as localhost or as 127.0.0.1 -even though there is an
entry for it in radius.cfg

===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

-- 

NB: I am travelling this week, so there may be delays in our correspondence.

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



(RADIATOR) Radiator with SQL Server 2000

2001-07-11 Thread Mike McCauley


--- Forwarded mail from [EMAIL PROTECTED]

From: [EMAIL PROTECTED]
Date: Tue, 10 Jul 2001 23:56:40 -0500
To: [EMAIL PROTECTED]
Subject: BOUNCE [EMAIL PROTECTED]:Non-member submission from [Daud
Yusof [EMAIL PROTECTED]]

From [EMAIL PROTECTED] Tue Jul 10 23:56:40 2001
Received: from mail5.nettwerk.com.sg ([203.126.68.61])
by server1.open.com.au (8.11.0/8.11.0) with ESMTP id f6B4uXD04955
for [EMAIL PROTECTED]; Tue, 10 Jul 2001 23:56:38 -0500
Received: from daudy [202.79.95.12] by mail5.nettwerk.com.sg [203.126.68.60]
with SMTP (MDaemon.v3.5.0.R)
for [EMAIL PROTECTED]; Wed, 11 Jul 2001 14:48:48 +0800
From: Daud Yusof [EMAIL PROTECTED]
To: Radiator [EMAIL PROTECTED]
Subject: Radiator with SQL Server 2000
Date: Wed, 11 Jul 2001 14:48:51 +0800
Message-ID: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Importance: Normal
X-MDRemoteIP: 202.79.95.12
X-Return-Path: [EMAIL PROTECTED]
X-MDaemon-Deliver-To: [EMAIL PROTECTED]

Hi there,

I know that radiator works with MSSQL Server 7 but what about SQL Server
2000 ?
Has anybody tried this config ? No reason it should not, right ?

Thanks






---End of forwarded mail from [EMAIL PROTECTED]

-- 
Mike McCauley   [EMAIL PROTECTED]
Open System Consultants Pty. LtdUnix, 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, Active Directory etc etc 
on Unix, Win95/8, 2000, NT, MacOS 9, MacOS X
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



(RADIATOR) AuthBy Radius, limiting Calling ID stations

2001-07-11 Thread lloyd

hi there,
this is what we have right nowwe have this radius that does
authentication...our radius also does proxying to other radius by AuthBy
Radius clause...our problem right now is how do we limit the users say
user01@realm1 from dialling at Calling-Station-Id, say 1234?

the complication: if our radius finds out that the user has realm =
realm1, it proxys it to another radius server but before our radius
server proxys  that particular user, we need to find out if that user is
dialling the correct Calling-Station-Idso the question is how do we
proxy to another radius together with limiting that particular user from
dialling to a set of numbers..

does this work? or do you have any suggestions in mind?

Handler Calling-Station-Id = /123445 | 91836724912 | 913240123/ ,
Client-Id=/202.202.202.202/
AuthBy RADIUS
Host  
Secret  ***
AuthPort
AcctPort
/AuthBy
/Handler

p.s.
follow-up: how do we bind to NO PORT...i mean how do we reject
completely a usersay for
exampleNOT BINDING TO AN AUTHPORT OR NOT BINDING TO AN ACCTPORT?


that's all i guess
thank you
hope you can reply soon


Lloyd Brian V. Dagoc
Consulting Engineer
InterDotNet Philipines Incorporated

===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



(RADIATOR) SQL Server 2000

2001-07-11 Thread Daud Yusof

Hi there,

I know that radiator works with MSSQL Server 7 but what about SQL Server
2000 ?
Has anybody tried this config ? No reason it should not, right ?

Thanks


===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



RE: (RADIATOR) SQL Server 2000

2001-07-11 Thread Chris Given

Yes, it does.

Try the driver at www.merant.com (This driver is not free, but its not a
proxy driver like most others either)

-Original Message-
From: Daud Yusof [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 7:01 AM
To: Radiator
Subject: (RADIATOR) SQL Server 2000


Hi there,

I know that radiator works with MSSQL Server 7 but what about SQL Server
2000 ?
Has anybody tried this config ? No reason it should not, right ?

Thanks


===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



RE: (RADIATOR) accept all auth-req

2001-07-11 Thread julio . prada

Hi,
 
you can include a group in your Realm like this:
 
Realm xxx
 AuthBy GROUP_Identifier
 .
 .
/Realm
 
and your group could be compose of two AuthBy authenticators:
 
AuthBy GROUP
AuthByPolicy ContinueUntilAccept
 
 Identifier GROUP_Identifier
 
 AuthBy RADMIN_Identifier
 AuthBy TEST_Identifier
/AuthBy GROUP
 
So in that way I think you first will authenticate via RADMIN, and in case
of failure, AuthBy TEST will always accept your authentication requests.
 
Test it and tell me if it works.
 
regards,
jules
 
 -Mensaje original-
De: chairarth [mailto:[EMAIL PROTECTED]]
Enviado el: lunes 9 de julio de 2001 10:38
Para: radiator
Asunto: (RADIATOR) accept all auth-req



Hi, 

In case of Authen by Radmin ,  how can I config Radiator to accept all
authen-requests whenever the SQL Host down. 


Regards, 
Chairath 


** 
Noticia legal 
Este mensaje electrónico contiene información de BT Telecomunicaciones S.A.
que es privada y confidencial, siendo para el uso exclusivo de la persona(s)
o entidades arriba mencionadas. Si usted no es el destinatario señalado, le
informamos que cualquier divulgación, copia, distribución o uso de los
contenidos está prohibida. Si usted ha recibido este mensaje por error, por
favor borre su contenido y comuníquenoslo en la dirección [EMAIL PROTECTED] 
Gracias
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



RE: (RADIATOR) IMPORTANT - MaxSessions problem in Radiator 2.18

2001-07-11 Thread Dmitry Kopylov

Hello,

We run ver. 2.18 and I think we have mentioned problem with the MaxSession
but I can't find any patches in the patch area. Can I count on help?

regards,
Dmitry Kopylov

Network Architect ISP/DSL
BBned
Saturnusstraat 40-44
2132 HB Hoofdorp
Phone: +31 23 5659953
Fax: +31 23 5633356
Mobile: +31 62 7047960
 

-Original Message-
From: Hugh Irvine [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 3:42 AM
To: Frederic Gargula
Cc: [EMAIL PROTECTED]
Subject: (RADIATOR) IMPORTANT - MaxSessions problem in Radiator 2.18



Salut Fred, Salut Tout-le-monde -

There is a slight error in Radiator 2.18 when using MaxSessions in a Realm
or 
Handler. There is a patched version of Handler.pm in the patches area.

Merci a Fred de l'avoir trouve!

A+

Hugues


-- 
Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.

===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



Re: (RADIATOR) Using Radiator for WholesaleDialupandSessionDatabase

2001-07-11 Thread Tom Daly

The DNIS defines who the call belongs to. Each wholesaler is given each a
unique DNIS.

--Tom

- Original Message -
From: Hugh Irvine [EMAIL PROTECTED]
To: Tom Daly [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 2:56 AM
Subject: Re: (RADIATOR) Using Radiator for WholesaleDialupandSessionDatabase



 Hello Tom -

 My point is, how are you going to decide how to apply a
 RewriteUsername if you don't know who the customer belongs to?

 regards

 Hugh


 At 12:31 -0400 01/7/9, Tom Daly wrote:
 I would say that's the problem. Since I enforce a default simultaneous
use
 of 1 caller, if identical usernames are trying to login from two
different
 wholesalers, one will be rejected, therefore, I would like to be able to
add
 a realm name before the username goes into the Session DB.
 
 --Tom
 
 - Original Message -
 From: Hugh Irvine [EMAIL PROTECTED]
 To: Tom Daly [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Saturday, July 07, 2001 12:50 AM
 Subject: Re: (RADIATOR) Using Radiator for Wholesale
 DialupandSessionDatabase
 
 
 
   Hello Tom -
 
   How are you going to know which customer is which?
 
   regards
 
   Hugh
 
 
   At 12:51 -0400 01/7/6, Tom Daly wrote:
   Hugh,
   
   I would say my problem then is this. I am using CalledStation.pm to
send
   users to radius proxy which does not use a realm, so users will
dialup
 with
   'username'. Now, our ISP does not require users to have a realm name
 either,
   so they also dialup with 'username'. In the case of two identical
 usernames
   between ISPs, one user will not be authenticated. Is there a way I
can
 add a
   realm name to the CalledStation.pm users for the sake of the session
   database, however, still send the proxy server just 'username'. I am
   guessing this will need to be done with some sort of hook.
   
   --Tom
   
   - Original Message -
   From: Hugh Irvine [EMAIL PROTECTED]
   To: Tom Daly [EMAIL PROTECTED]; [EMAIL PROTECTED]
   Sent: Friday, July 06, 2001 12:21 PM
   Subject: Re: (RADIATOR) Using Radiator for Wholesale Dialup
   andSessionDatabase
   
   
   
 Hi Tom -
   
 By default Radiator uses the username string as received from the
 NAS, as that is what it needs if it is to query the NAS directly
to
 verify connections.
   
 regards
   
 Hugh
   
   
 At 12:29 -0400 01/7/6, Tom Daly wrote:
 Hi,
 
 By default, what entry does Radiator to put into the Session
 Database?
   From
 what I can see, it seems that it copies the Username as entered
by
 the
 user, before any rewrite username, or other functions are used.
 
 Tom
 
 - Original Message -
 From: Hugh Irvine [EMAIL PROTECTED]
 To: Tom Daly [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Friday, July 06, 2001 5:44 AM
 Subject: Re: (RADIATOR) Using Radiator for Wholesale Dialup and
 SessionDatabase
 
 
 
   Hello Tom -
 
   At 12:17 -0400 01/7/5, Tom Daly wrote:
   Hello,
   We are currently using Radiator and MySQL for a SessionDB. As
a
   wholesale
   provider, we have two ways for our wholesalers to access
 accounts.
   
   1. Per Port - An ISP is assigned a unique DNIS to which all
 radius
 requested
   are directed at thier radius server by proxy. We do this by
the
   following
   method.
   
   CalledStationId /..3400/
AuthBy RADIUS
Host xxx.xxx.xxx.xxx
Secret VeryVerySecret
AuthPort 1645
AcctPort 1646
Retries 5
RetryTimeout 15
/AuthBy
   
   This method seems to be slow, as we have to search through a
few
   hundred
   DNISs for the same provider, if they have multiple DNISs. So
I am
   looking
   for a way to use one statement that will search each
providers
 list
   of
   DNISs. Also, when a customer dials in, thier username is just
   username.
 It
   there a way to make the session database show
 [EMAIL PROTECTED],
   but
   still pass username to the proxy radius server?
 
 
   If you are using the CalledStationId.pm file from the
goodies
   section of the distribution, there is almost no overhead, as
the
   number that is specified in the definition is used as a key to
   directly access that clause. This is by far the fastest way to
   process large numbers of phone numbers.
 
   For your second question, you can use RewriteUsername(s) and
 custom
   queries for the SessionDatabase to do what you require.
 
 
   2. Per User - An ISP is assigned a Unique REALM via a Realm
or
   Handler
   Realm= Clause. This gets very very complicated, so it there
a
 way to
   simplify this?
 
 
   I don't understand the problem, sorry. Can you elaborate?
 
 
   Also, 1 ISP does not use a realm, so is 

(RADIATOR) changing the realm.

2001-07-11 Thread Griff Hamlin

Hello all,

I am trying to take the username (including realm or not) that comes in
from the packet, strip the realm and then put on a new one based on the
radius client that is providing the packet. I have the following in a
client block:

Client 127.0.0.1
   RewriteUsername s/^([^@]+).*/$1/
   Secret mysecret
   PreHandlerHook sub { ${$_[0]}-change_attr('Realm','home'); \
my $request = ${$_[0]}; \
my $attrref = $request-{Attributes}; \
my @attr = @$attrref; \
foreach (@attr) { \
   my @attr2 = @$_; \
   my $attr3; \
   foreach $attr3 (@attr2) { \
  print attribute is '$attr3'\n; \
   }\
}\
 }
/Client

Mostly, what happens is I try and use the 'change_attr' method to change
the realm from whatever it was to 'home'. However, when I tried then
using a Handler  Realm = home block, it never noticed the new realm,
and continued with the old realm as per the following log file segment:

attribute is 'User-Name'
attribute is 'hamlin'
attribute is 'Service-Type'
attribute is 'Framed-User'
attribute is 'NAS-IP-Address'
attribute is '203.63.154.1'
attribute is 'NAS-Port'
attribute is '1234'
attribute is 'Called-Station-Id'
attribute is '123456789'
attribute is 'Calling-Station-Id'
attribute is '987654321'
attribute is 'NAS-Port-Type'
attribute is 'Async'
attribute is 'Framed-IP-Address'
attribute is '255.255.255.254'
attribute is 'User-Password'
attribute is 'ϸfß5pö¼8 Ø}x'
attribute is 'Realm'
attribute is 'home'
Wed Jul 11 10:45:34 2001: DEBUG: Packet dump:
*** Received from 65.13.83.72 port 1027 
Code:   Access-Request
Identifier: 124
Authentic:  1234567890123456
Attributes:
User-Name = [EMAIL PROTECTED]
Service-Type = Framed-User
NAS-IP-Address = 203.63.154.1
NAS-Port = 1234
Called-Station-Id = 123456789
Calling-Station-Id = 987654321
NAS-Port-Type = Async
Framed-IP-Address = 255.255.255.254
User-Password =
207184f1542235p24618889160216}x153
Wed Jul 11 10:45:34 2001: DEBUG: Rewrote user name to hamlin
Wed Jul 11 10:45:34 2001: DEBUG: Check if Handler Realm = home should be
used to handle this request
Wed Jul 11 10:45:34 2001: DEBUG: Check if Handler  should be used to
handle this request
Wed Jul 11 10:45:34 2001: DEBUG: Handling request with Handler ''
Wed Jul 11 10:45:34 2001: DEBUG:  Deleting session for
[EMAIL PROTECTED], 203.63.154.1, 1234

As you can see, when printing out attributes, it shows the Realm to be
'home', and later when doing the packet dump, the username is
[EMAIL PROTECTED] as it was sent from the radius client. Maybe this is
not possible, which would be OK I have other ideas to work around it.
But now I'm curious.

Griff Hamlin, 


===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



RE: (RADIATOR) IMPORTANT - MaxSessions problem in Radiator 2.18

2001-07-11 Thread Hugh Irvine


Hello Dmitry -

You should just upgrade to Radiator 2.18.2.

regards

Hugh


At 17:43 +0200 01/7/11, Dmitry Kopylov wrote:
Hello,

We run ver. 2.18 and I think we have mentioned problem with the MaxSession
but I can't find any patches in the patch area. Can I count on help?

regards,
Dmitry Kopylov

Network Architect ISP/DSL
BBned
Saturnusstraat 40-44
2132 HB Hoofdorp
Phone: +31 23 5659953
Fax: +31 23 5633356
Mobile: +31 62 7047960


-Original Message-
From: Hugh Irvine [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 3:42 AM
To: Frederic Gargula
Cc: [EMAIL PROTECTED]
Subject: (RADIATOR) IMPORTANT - MaxSessions problem in Radiator 2.18



Salut Fred, Salut Tout-le-monde -

There is a slight error in Radiator 2.18 when using MaxSessions in a Realm
or
Handler. There is a patched version of Handler.pm in the patches area.

Merci a Fred de l'avoir trouve!

A+

Hugues


--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.

===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

-- 

NB: I am travelling this week, so there may be delays in our correspondence.

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



Re: (RADIATOR) AuthBy Radius, limiting Calling ID stations

2001-07-11 Thread Hugh Irvine


Hello Lloyd -

I would suggest that you use the AuthBy PORTLIMITCHECK clause before 
proxying the request. Note that you will need to use a 
SessionDatabase SQL to be able to use AuthBy PORTLIMITCHECK.

hth

Hugh


At 14:56 +0800 01/7/11, lloyd wrote:
hi there,
this is what we have right nowwe have this radius that does
authentication...our radius also does proxying to other radius by AuthBy
Radius clause...our problem right now is how do we limit the users say
user01@realm1 from dialling at Calling-Station-Id, say 1234?

the complication: if our radius finds out that the user has realm =
realm1, it proxys it to another radius server but before our radius
server proxys  that particular user, we need to find out if that user is
dialling the correct Calling-Station-Idso the question is how do we
proxy to another radius together with limiting that particular user from
dialling to a set of numbers..

does this work? or do you have any suggestions in mind?

Handler Calling-Station-Id = /123445 | 91836724912 | 913240123/ ,
Client-Id=/202.202.202.202/
 AuthBy RADIUS
 Host  
 Secret  ***
 AuthPort
 AcctPort
 /AuthBy
/Handler

p.s.
follow-up: how do we bind to NO PORT...i mean how do we reject
completely a usersay for
exampleNOT BINDING TO AN AUTHPORT OR NOT BINDING TO AN ACCTPORT?


that's all i guess
thank you
hope you can reply soon


Lloyd Brian V. Dagoc
Consulting Engineer
InterDotNet Philipines Incorporated

===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

-- 

NB: I am travelling this week, so there may be delays in our correspondence.

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



Re: (RADIATOR) LDAP_NO_SUCH_OBJECT. Disconnecting with Radiatorand Netscape LDAP server

2001-07-11 Thread Hugh Irvine
Title: Re: (RADIATOR) LDAP_NO_SUCH_OBJECT. Disconnecting
with



Hello Sajida -

The first thing to do is upgrade to Radiator 2.18.2.

Then I will need to see a copy of your configuration file (no
secrets) together with the trace 4 debug.

From what you show below, it looks like the object you are
looking for is not in the LDAP database.

hth

Hugh


At 12:12 +0500 01/7/10, sajida kalsoom wrote:
Hi
users!

Can
any one please help me...

I am
using Netscape LDAP server 3.1 on windows 2000 server and Radiator
2.15 on solaris sparc. My problem is that whenevrer I try to connect
and use LDAP server i get the following error when running this
:

#
./radpwtst -user sajida -password skalsoom

error is
...

##
Mon
Jul 9 19:07:35 2001: INFO: Server started: Radiator 2.15
Mon Jul 9 19:08:29 2001: DEBUG: Packet dump:
*** Received from 127.0.0.1 port 32836 
Code: Access-Request
Identifier: 73
Authentic: 1234567890123456
Attributes:
 User-Name =
sajida
 Service-Type =
Framed-User
 NAS-IP-Address =
203.63.154.1
 NAS-Port = 1234
 NAS-Port-Type = Async
 User-Password =
1382241932203k15518889160216}x153

Mon
Jul 9 19:08:29 2001: DEBUG: Handling request with Handler
'Realm=DEFAULT'
Mon Jul 9 19:08:29 2001: DEBUG: Deleting session for
sajida, 203.63.154.1, 1234
Mon Jul 9 19:08:29 2001: DEBUG: Handling with
Radius::AuthLDAP2
Mon Jul 9 19:08:29 2001: DEBUG: Connecting to 192.168.0.122,
port 389
Net::LDAP=HASH(0x531028) sending:

30 3B 02 01
01 60 36 02 01 02 04 22 63 6E 3D 44 0;...`6cn=D
69 72 65 63 74 6F 72 79 20 4D 61 6E 61 67 65 72 irectory Manager
2C 20 6F 3D 41 69 72 69 75 73 2E 63 6F 6D 80 0D , o=Airius.com..
73 61 6A 69 64 61 6B 61 6C 73 6F 6F 6D __ __ __
sajidakalsoom


30 59: SEQUENCE {
0002 02 1: INTEGER = 1
0005 60 54: [APPLICATION 0] {
0007 02 1: INTEGER = 2
000A 04 34: STRING =
'cn=Directory Manager, o=Airius.com'
002E 80 13: [CONTEXT 0]
0030
: 73 61 6A 69 64 61 6B 61 6C 73
6F 6F 6D __ __ __ sajidakalsoom
003D : }
003D : }
Net::LDAP=HASH(0x531028) received:

30 18 02 01
01 61 13 0A 01 20 04 0C 6F 3D 61 69 0a... ..o=ai
72 69 75 73 2E 63 6F 6D 04 00 __ __ __ __ __ __
rius.com..


30 24: SEQUENCE {
0002 02 1: INTEGER = 1
0005 61 19: [APPLICATION 1] {
0007 0A 1: ENUM = 32
000A 04 12: STRING =
'o=airius.com'
0018 04 0: STRING = ''
001A : }
001A : }
Mon Jul 9 19:08:29 2001: ERR: Could not bind connection with
cn=Directory Manager, o=Airius.com, sajidakalsoom, error:
LDAP_NO_SUCH_OBJECT. Disconnecting
##


--


NB:
I am travelling this week, so there may be delays in our
correspondence.

Radiator: the most portable, flexible and configurable RADIUS
server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT,
Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc,
etc.
Available on Unix, Linux,
FreeBSD, Windows 95/98/2000, NT, MacOS X.



Re: (RADIATOR) changing the realm.

2001-07-11 Thread Hugh Irvine


Hello Griff -

As has been mentioned elsewhere, Realm is not an attribute, rather it 
is the suffix on a username after the @ sign.

hth

Hugh


At 9:50 -0700 01/7/11, Griff Hamlin wrote:
Hello all,

I am trying to take the username (including realm or not) that comes in
from the packet, strip the realm and then put on a new one based on the
radius client that is providing the packet. I have the following in a
client block:

Client 127.0.0.1
RewriteUsername s/^([^@]+).*/$1/
Secret mysecret
PreHandlerHook sub { ${$_[0]}-change_attr('Realm','home'); \
 my $request = ${$_[0]}; \
 my $attrref = $request-{Attributes}; \
 my @attr = @$attrref; \
 foreach (@attr) { \
my @attr2 = @$_; \
my $attr3; \
foreach $attr3 (@attr2) { \
   print attribute is '$attr3'\n; \
}\
 }\
  }
/Client

Mostly, what happens is I try and use the 'change_attr' method to change
the realm from whatever it was to 'home'. However, when I tried then
using a Handler  Realm = home block, it never noticed the new realm,
and continued with the old realm as per the following log file segment:

attribute is 'User-Name'
attribute is 'hamlin'
attribute is 'Service-Type'
attribute is 'Framed-User'
attribute is 'NAS-IP-Address'
attribute is '203.63.154.1'
attribute is 'NAS-Port'
attribute is '1234'
attribute is 'Called-Station-Id'
attribute is '123456789'
attribute is 'Calling-Station-Id'
attribute is '987654321'
attribute is 'NAS-Port-Type'
attribute is 'Async'
attribute is 'Framed-IP-Address'
attribute is '255.255.255.254'
attribute is 'User-Password'
attribute is 'ϸfß5pö¼8 Ø}x'
attribute is 'Realm'
attribute is 'home'
Wed Jul 11 10:45:34 2001: DEBUG: Packet dump:
*** Received from 65.13.83.72 port 1027 
Code:   Access-Request
Identifier: 124
Authentic:  1234567890123456
Attributes:
 User-Name = [EMAIL PROTECTED]
 Service-Type = Framed-User
 NAS-IP-Address = 203.63.154.1
 NAS-Port = 1234
 Called-Station-Id = 123456789
 Calling-Station-Id = 987654321
 NAS-Port-Type = Async
 Framed-IP-Address = 255.255.255.254
 User-Password =
207184f1542235p24618889160216}x153
Wed Jul 11 10:45:34 2001: DEBUG: Rewrote user name to hamlin
Wed Jul 11 10:45:34 2001: DEBUG: Check if Handler Realm = home should be
used to handle this request
Wed Jul 11 10:45:34 2001: DEBUG: Check if Handler  should be used to
handle this request
Wed Jul 11 10:45:34 2001: DEBUG: Handling request with Handler ''
Wed Jul 11 10:45:34 2001: DEBUG:  Deleting session for
[EMAIL PROTECTED], 203.63.154.1, 1234

As you can see, when printing out attributes, it shows the Realm to be
'home', and later when doing the packet dump, the username is
[EMAIL PROTECTED] as it was sent from the radius client. Maybe this is
not possible, which would be OK I have other ideas to work around it.
But now I'm curious.

Griff Hamlin, 


===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

-- 

NB: I am travelling this week, so there may be delays in our correspondence.

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



Re: (RADIATOR) Using Radiator forWholesaleDialupandSessionDatabase

2001-07-11 Thread Hugh Irvine


Hello Tom -

If you are using different CalledStationId's, then you can use a 
RewriteUsername to add the realm and use the special characters %n 
and %u to store both forms of the username in the session database 
(you will have to add a field for the rewritten one). Then you can 
use custom queries in the session database to use the correct one for 
checking simultaneous use, as well as writing both forms.

hth

Hugh


At 13:53 -0400 01/7/11, Tom Daly wrote:
The DNIS defines who the call belongs to. Each wholesaler is given each a
unique DNIS.

--Tom

- Original Message -
From: Hugh Irvine [EMAIL PROTECTED]
To: Tom Daly [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 2:56 AM
Subject: Re: (RADIATOR) Using Radiator for WholesaleDialupandSessionDatabase



  Hello Tom -

  My point is, how are you going to decide how to apply a
  RewriteUsername if you don't know who the customer belongs to?

  regards

  Hugh


  At 12:31 -0400 01/7/9, Tom Daly wrote:
  I would say that's the problem. Since I enforce a default simultaneous
use
  of 1 caller, if identical usernames are trying to login from two
different
  wholesalers, one will be rejected, therefore, I would like to be able to
add
  a realm name before the username goes into the Session DB.
  
  --Tom
  
  - Original Message -
  From: Hugh Irvine [EMAIL PROTECTED]
  To: Tom Daly [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Sent: Saturday, July 07, 2001 12:50 AM
  Subject: Re: (RADIATOR) Using Radiator for Wholesale
  DialupandSessionDatabase
  
  
  
Hello Tom -
  
How are you going to know which customer is which?
  
regards
  
Hugh
  
  
At 12:51 -0400 01/7/6, Tom Daly wrote:
Hugh,

I would say my problem then is this. I am using CalledStation.pm to
send
users to radius proxy which does not use a realm, so users will
dialup
  with
'username'. Now, our ISP does not require users to have a realm name
  either,
so they also dialup with 'username'. In the case of two identical
  usernames
between ISPs, one user will not be authenticated. Is there a way I
can
  add a
realm name to the CalledStation.pm users for the sake of the session
database, however, still send the proxy server just 'username'. I am
guessing this will need to be done with some sort of hook.

--Tom

- Original Message -
From: Hugh Irvine [EMAIL PROTECTED]
To: Tom Daly [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 12:21 PM
Subject: Re: (RADIATOR) Using Radiator for Wholesale Dialup
andSessionDatabase



  Hi Tom -

  By default Radiator uses the username string as received from the
  NAS, as that is what it needs if it is to query the NAS directly
to
  verify connections.

  regards

  Hugh


  At 12:29 -0400 01/7/6, Tom Daly wrote:
  Hi,
  
  By default, what entry does Radiator to put into the Session
  Database?
From
  what I can see, it seems that it copies the Username as entered
by
  the
  user, before any rewrite username, or other functions are used.
  
  Tom
  
  - Original Message -
  From: Hugh Irvine [EMAIL PROTECTED]
  To: Tom Daly [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Sent: Friday, July 06, 2001 5:44 AM
  Subject: Re: (RADIATOR) Using Radiator for Wholesale Dialup and
  SessionDatabase
  
  
  
Hello Tom -
  
At 12:17 -0400 01/7/5, Tom Daly wrote:
Hello,
 We are currently using Radiator and MySQL for a SessionDB. As
a
wholesale
provider, we have two ways for our wholesalers to access
  accounts.

1. Per Port - An ISP is assigned a unique DNIS to which all
  radius
  requested
are directed at thier radius server by proxy. We do this by
the
following
method.

CalledStationId /..3400/
 AuthBy RADIUS
 Host xxx.xxx.xxx.xxx
 Secret VeryVerySecret
 AuthPort 1645
 AcctPort 1646
 Retries 5
 RetryTimeout 15
 /AuthBy

This method seems to be slow, as we have to search through a
few
hundred
DNISs for the same provider, if they have multiple DNISs. So
I am
looking
for a way to use one statement that will search each
providers
  list
of
DNISs. Also, when a customer dials in, thier username is just
username.
  It
there a way to make the session database show
  [EMAIL PROTECTED],
but
still pass username to the proxy radius server?
  
  
If you are using the CalledStationId.pm file from the
goodies
section of the distribution, there is almost no overhead, as
the
number that is specified in the definition is used as 

Re: (RADIATOR) RV: DBD Error

2001-07-11 Thread Hugh Irvine


Hello Enrique -

We have not seen this problem before. It is probably something to do 
with the DBD-Oracle module. Have you tried different versions?

regards

Hugh


At 17:00 +0200 01/7/10, [EMAIL PROTECTED] wrote:
   Hello,

  First time I send a access-request to my radiator server after restarting,
  I can see in my console this error:

  DBD::Oracle::db do failed: ORA-12571: TNS:packet writer failure (DBD:
  oopen error) at Radius/SqlDb.pm line 247.

  These are the messages that appears in the log file:

  Tue Jul 10 16:33:29 2001: DEBUG: OracleDatabase Deleting session for
  935200550, 10.10.2.3, 1234
  Tue Jul 10 16:33:29 2001: DEBUG: do query is: delete from RADONLINE where
  NASIDENTIFIER='10.10.2.3' and NASPORT=01234

  Tue Jul 10 16:33:29 2001: ERR: do failed for 'delete from RADONLINE where
  NASIDENTIFIER='10.10.2.3' and NASPORT=01234': ORA-12571: TNS:packet writer
  failure (DBD: oopen error)
  Tue Jul 10 16:33:29 2001: DEBUG: Handling with Radius::AuthSQL
  Tue Jul 10 16:33:29 2001: DEBUG: Handling with Radius::AuthSQL

  When I sent more requests, this error does not appear.

  Does anyone know why it is happening? Is there a way to avoid this error?

  Thanks and regards,

  Enrique Carnicero Requena
  BT Telecomunicaciones, S.A.
  C/Isabel Colbrand, 8
  28050 - Madrid
  Teléfono: (+34) 91 270 61 88
  Fax: (+34) 91 270 63 10

**
Noticia legal
Este mensaje electrónico contiene información de BT Telecomunicaciones S.A.
que es privada y confidencial, siendo para el uso exclusivo de la persona
(s) o entidades arriba mencionadas. Si usted no es el destinatario señalado,
le informamos que cualquier divulgación, copia, distribución o uso de los
contenidos está prohibida. Si usted ha recibido este mensaje por error, por
favor borre su contenido y comuníquenoslo en la dirección [EMAIL PROTECTED]
Gracias.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

-- 

NB: I am travelling this week, so there may be delays in our correspondence.

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



Re: (RADIATOR) accept all auth-req

2001-07-11 Thread Chairarth K


Hi Jules
Thanks for your advice.
Regards,
Chairath
[EMAIL PROTECTED] wrote:
Hi,
you can include a group in your Realm like this:
Realm xxx>
 AuthBy GROUP_Identifier
 .
 .
/Realm>
and your group could be compose of two AuthBy authenticators:
AuthBy GROUP>
 AuthByPolicy ContinueUntilAccept
 Identifier GROUP_Identifier
 AuthBy RADMIN_Identifier
 AuthBy TEST_Identifier
/AuthBy GROUP>
So in that way I think you first will authenticate via RADMIN, and in
case
of failure, AuthBy TEST will always accept your authentication requests.
Test it and tell me if it works.
regards,
jules
-Mensaje original-
De: chairarth [mailto:[EMAIL PROTECTED]]
Enviado el: lunes 9 de julio de 2001 10:38
Para: radiator
Asunto: (RADIATOR) accept all auth-req
Hi,
In case of Authen by Radmin , how can I config Radiator to accept
all
authen-requests whenever the SQL Host down.
Regards,
Chairath
**
Noticia legal
Este mensaje electrnico contiene informacin de BT Telecomunicaciones
S.A.
que es privada y confidencial, siendo para el uso exclusivo de la persona(s)
o entidades arriba mencionadas. Si usted no es el destinatario sealado,
le
informamos que cualquier divulgacin, copia, distribucin
o uso de los
contenidos est prohibida. Si usted ha recibido este mensaje
por error, por
favor borre su contenido y comunquenoslo en la direccin
[EMAIL PROTECTED]
Gracias