help-gnu-radius
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gnu-radius] different situations for different called numbers


From: Kurt Tragant
Subject: [Help-gnu-radius] different situations for different called numbers
Date: Wed, 26 Mar 2003 16:41:30 +0100

Hello list,

I've setup a rewrite function, rewriting the user name of the incoming request.
This works well:

huntgroups:

test       NAS-IP-Address = x.x.x.x, Rewrite-Function = "testparsing"   NULL
DEFAULT Rewrite-Function = "testparsing2"  NULL


users:

DEFAULT Huntgroup-Name = "testparsing",
        Auth-Type = Accept
        User-Service = Framed-User,
        Framed-Protocol = PPP,
        Framed-Routing = None,
        Framed-Netmask = 255.255.255.255,
        Framed-Compression=Van-Jacobsen-TCP-IP,
        Framed-MTU = 1500,
        Ascend-Idle-Limit = 14400

DEFAULT Auth-Type = Accept
        User-Service = Framed-User,
        Framed-Protocol = PPP,
        Framed-Routing = None,
        Framed-Netmask = 255.255.255.255,
        Framed-Compression=Van-Jacobsen-TCP-IP,
        Framed-MTU = 1500,
        Ascend-Idle-Limit = 14400

Now to the problem: In the setup above, every user is allowed to dial in.
I plan to allow some users via password, if the called-station-id matches.
To test it, I would like to replace the username. So every user with the user 
name
"username", who didn't dial in via NAS x.x.x.x and dialed "123456" will be 
accounted
as "usernamereplaced". I think it would work like this (2nd DEFAULT entry 
matches),
but it doesn't work:

huntgroups:

(see above)

users:

DEFAULT Huntgroup-Name = "testparsing",
        Auth-Type = Accept
        User-Service = Framed-User,
        Framed-Protocol = PPP,
        Framed-Routing = None,
        Framed-Netmask = 255.255.255.255,
        Framed-Compression=Van-Jacobsen-TCP-IP,
        Framed-MTU = 1500,
        Ascend-Idle-Limit = 14400

DEFAULT Called-Station-Id = "123456",
        Auth-Type = Accept
        Replace-User-Name = "%C{User-Name}replaced",
        User-Service = Framed-User,
        Framed-Protocol = PPP,
        Framed-Routing = None,
        Framed-Netmask = 255.255.255.255,
        Framed-Compression=Van-Jacobsen-TCP-IP,
        Framed-MTU = 1500,
        Ascend-Idle-Limit = 14400

DEFAULT Auth-Type = Accept
        User-Service = Framed-User,
        Framed-Protocol = PPP,
        Framed-Routing = None,
        Framed-Netmask = 255.255.255.255,
        Framed-Compression=Van-Jacobsen-TCP-IP,
        Framed-MTU = 1500,
        Ascend-Idle-Limit = 14400

For an answer, I thank you in advance.

Regards
Kurt Tragant

__________________________________________________________________
Arcor-DSL Flatrate - jetzt kostenlos einsteigen und bis zu 76,18 Euro sparen!
Arcor-DSL gibt es jetzt auch mit bis zu 1500 Mbit/s Downstream! 
http://www.angebot.arcor.net/cgi-bin/angebot.cgi?key=b13e92247022


reply via email to

[Prev in Thread] Current Thread [Next in Thread]