How about using the DefaultRealm directive inside of the client clause for
the Quintum boxes? Something like this-

<Client 111.222.333.444>
        Identifier Quintum
        Secret somesecret
        DefaultRealm 111.222.333.444
        Other client config
</Client>

<Client 111.222.333.555>
        Identifier OtherQuintum
        Secret somesecret
        DefaultRealm 111.222.333.555
        Other client config
</Client>

DefaultRealm is documented in Section 6.5.2 of my Radiator 2.19 manual and
is used to add a realm to incoming requests that do not have a realm
specified.


Frank Danielson
[Infrastructure Architect]

voice:407.515.8633
fax:407.515.9001

ClearSky Mobile Media, Inc.
56 E. Pine St. Suite 200
Orlando, FL 32801
USA
 
-----Original Message-----
From: Richard Grantham [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 1:10 PM
To: [EMAIL PROTECTED]
Subject: (RADIATOR) Rewrite username or Quintum configuration?


Hi List,

I've been looking at the hooks with regards to rewriting usernames but
I'm not getting much mileage in what I'm trying to achieve.

What I want to do is the opposite of stripping realms out of requests. 
If the username does not have a realm in it it will add the NAS IP
address as a realm instead.  This is for a calling card platform where
requests are made with the username given as <[EMAIL PROTECTED]>. 
Hopefully the following Perl function will illustrate what I want to do:

sub
{
    my $p = ${$_[0]};

    my $username = $p->getUserName;
    if ($username !~ /\@/)
    {
        $username = "[EMAIL PROTECTED]>get_attr('NAS-IP-Address')";
    }
    return $username;
}

I want to do this because a customer wishes to use our calling card
platform with a Quintum which does not allow you to edit its IVR scripts
(and add the realm) and I don't want to write another load of handlers
when I can make the current ones more versatile.

If anyone else has a better idea or has experience getting Quintums to
authenticate as <[EMAIL PROTECTED]> it would be most welcome.  Being a
Cisco shop no-one here has had much use with them!

TIA

Richard
===
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.

Reply via email to