It says rlm_realm is finding realm DEFAULT, but I don't understand why.

LINE 9 of users:
DEFAULT Called-Station-Id == "2345678901", Realm := "isp1.net"

LINE 10 of acct_users:
DEFAULT Called-Station-Id == "2345678901", Realm := "isp1.net"

proxy.conf:
realm isp1.net {
        type            = radius
        authhost        = LOCAL
        accthost        = LOCAL
}

Debug output:
rad_recv: Access-Request packet from host xxx.xxx.xxx.xxx:1814, id=237,
length=153
        User-Name = "username"
        User-Password = "\252L\355\246a\303\240.\336\246\022\331\210\337 !"
        NAS-IP-Address = xxx.xxx.xxx.xxx
        NAS-Identifier = "nas1 "
        NAS-Port = 7
        NAS-Port-Type = Async
        Service-Type = Framed-User
        Framed-Protocol = PPP
        State = 0x
        Calling-Station-Id = "9999999999"
        Called-Station-Id = "2345678901"
        Acct-Session-Id = "440615203"
        X-Ascend-Data-Rate = 28800
        X-Ascend-Xmit-Rate = 45333
        Proxy-State = 0x3732
modcall: entering group authorize
radius_xlat:  'username'
sql_set_user:  escaped user --> 'username'
radius_xlat:  'SELECT id,UserName,Attribute,Value,op FROM radcheck WHERE
Username = 'username' ORDER BY id'
rlm_sql: Reserving sql socket id: 4
radius_xlat:  'SELECT
radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupche
ck.Value,radgroupcheck.op  FROM radgroupcheck,usergroup WHERE
usergroup.Username = 'username' AND usergroup.GroupName =
radgroupcheck.GroupName ORDER BY radgroupcheck.id'
radius_xlat:  'SELECT id,UserName,Attribute,Value,op FROM radreply WHERE
Username = 'username' ORDER BY id'
radius_xlat:  'SELECT
radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radgrouprep
ly.Value,radgroupreply.op  FROM radgroupreply,usergroup WHERE
usergroup.Username = 'username' AND usergroup.GroupName =
radgroupreply.GroupName ORDER BY radgroupreply.id'
radius_xlat:  'SELECT Value,Attribute FROM radcheck WHERE UserName =
'username' AND ( Attribute = 'User-Password' OR Attribute = 'Password' OR
Attribute = 'Crypt-Password' ) ORDER BY Attribute DESC'
rlm_sql: Released sql socket id: 4
  modcall[authorize]: module "sql" returns ok
    users: Matched DEFAULT at 9
  modcall[authorize]: module "files" returns ok
modcall: group authorize returns ok
  rad_check_password:  Found Auth-Type Local
auth: type Local
auth: user supplied User-Password matches local User-Password
radius_xlat:  'ispNet'
Login OK: [username/password] (from client radiusproxy port 7 cli
9999999999)
Sending Access-Accept of id 237 to 209.16.220.24:1814
        Framed-Compression = Van-Jacobson-TCP-IP
        Framed-Protocol = PPP
        Service-Type = Framed-User
        Framed-MTU = 1500
        X-Ascend-Assign-IP-Pool = 0
        X-Ascend-Idle-Limit = 1800
        X-Ascend-Maximum-Time = 7200
        Reply-Message = "ispNet"
        X-Ascend-Client-Primary-DNS = 209.16.220.30
        X-Ascend-Client-Secondary-DNS = 209.16.220.31
        Proxy-State = 0x3732
Finished request 10
Going to the next request
--- Walking the entire request list ---
Waking up in 6 seconds...
\rad_recv: Accounting-Request packet from host 209.16.220.24:1814, id=238,
length=207
        User-Name = "username"
        Event-Timestamp = "Feb 23 2004"
        NAS-IP-Address = 216.89.148.252
        NAS-Identifier = "gw001.bigrivertel.net"
        NAS-Port = 7
        NAS-Port-Type = Async
        Service-Type = Framed-User
        Acct-Status-Type = Start
        Acct-Delay-Time = 0
        Acct-Session-Id = "440615203"
        Acct-Authentic = RADIUS
        X-Ascend-Modem-PortNo = 54
        X-Ascend-Modem-SlotNo = 5
        X-Ascend-Modem-ShelfNo = 1
        Calling-Station-Id = "9999999999"
        Called-Station-Id = "2345678901"
        Framed-Protocol = PPP
        Framed-IP-Address = 216.89.150.77
        Callback-Id = "00000000-0000-0000-0000-000000000000"
        Proxy-State = 0x3538
modcall: entering group preacct
  modcall[preacct]: module "preprocess" returns noop
    rlm_realm: Looking up realm NULL for User-Name = "username"
    rlm_realm: Found realm DEFAULT
    rlm_realm: Adding Stripped-User-Name = "username"
  rlm_realm: Proxying request from user username to realm DEFAULT
    rlm_realm: Adding Realm = "DEFAULT"
rlm_realm:  Accounting realm is LOCAL.
rlm_realm:  acct_port is not set.  proxy cancelled
  modcall[preacct]: module "suffix" returns noop
    acct_users: Matched DEFAULT at 10
  modcall[preacct]: module "files" returns ok
modcall: group preacct returns ok
modcall: entering group accounting
radius_xlat:  'username'
sql_set_user:  escaped user --> 'username'
radius_xlat:  'INSERT into radacct (RadAcctId, AcctSessionId, AcctUniqueId,
UserName, Realm, NASIPAddress, NASPortId, NASPortType, AcctStartTime,
AcctStopTime, AcctSessionTime, AcctAuthentic, ConnectInfo_start,
ConnectInfo_stop, AcctInputOctets, AcctOutputOctets, CalledStationId,
CallingStationId, AcctTerminateCause, ServiceType, FramedProtocol,
FramedIPAddress, AcctStartDelay, AcctStopDelay) values('', '440615203', '',
'username', 'DEFAULT', '111.222.333.444', '7', 'Async', '2004-02-23
14:51:16', '0', '0', 'RADIUS', '', '', '0', '0', '2345678901', '9999999999',
'', 'Framed-User', 'PPP', '111.222.333.123', '0', '0')'
rlm_sql: Reserving sql socket id: 3
rlm_sql: Released sql socket id: 3
  modcall[accounting]: module "sql" returns ok
modcall: group accounting returns ok
Sending Accounting-Response of id 238 to 209.16.220.24:1814
        Proxy-State = 0x3538
Finished request 11
Going to the next request
Cleaning up request 11 ID 238 with timestamp 403a67c4
rl_next:  returning NULL
Waking up in 6 seconds...

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:freeradius-
> [EMAIL PROTECTED] On Behalf Of Alan DeKok
> Sent: Monday, February 23, 2004 2:46 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Multiple realms
> 
> "Anson Rinesmith" <[EMAIL PROTECTED]> wrote:
> > DEFAULT Called-Station-Id == "2345678901", Realm := "isp1.net"
> > In both users and acct_users
> > And I still get DEFAULT put in the realm field in my database.
> 
>   Then read the debug log to see where the DEFAULT realm is coming from.
> 
>   Alan DeKok.
> 
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html


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

Reply via email to