Alright, everything seems to be working fine now from my previous post 
regarding initial configuration of Freeradius 0.7 and MySQL, however, now I 
cannot authenticate a user.  I'm not sure what I'm supposed to set Auth-Type 
to or where I'm supposed to set it.  I want to just use PAP clear text 
authentication for testing and use unix crypt later.  I get the following 
when trying to authenticate a user:

rad_recv: Access-Request packet from host xxx.xxx.xxx.xxx:1645, id=30, 
length=159
                User-Name = "test1"
                User-Password = 
"Z\224\356\032\221\344\016\004\235\\|\007\025\210\016\240"
                NAS-IP-Address = xxx.xxx.xxx.xxx
                NAS-Port = 14081
                Acct-Session-Id = "test11"
                USR-Interface-Index = 0
                USR-Supports-Tags = 0
                USR-Chassis-Call-Slot = 56
                USR-Chassis-Call-Span = 1
                USR-Chassis-Call-Channel = 1
                USR-Connect-Speed = NONE
                Calling-Station-Id = ""
                Called-Station-Id = ""
                NAS-Port-Type = Virtual
modcall: entering group authorize
   modcall[authorize]: module "preprocess" returns ok
      rlm_realm: Looking up realm NULL for User-Name = "test1"
      rlm_realm: No such realm NULL
   modcall[authorize]: module "suffix" returns noop
radius_xlat: 'test1'
sql_set_user: escaped user --> 'test1'
radius_xlat: <default query from sql.conf>
radius_xlat: <default query from sql.conf>
radius_xlat: <default query from sql.conf>
radius_xlat: <default query from sql.conf>
rlm_sql: Pairs do not match [test1]
rlm_sql: Released sql socket id: 4
  modcall[authorize]: module "sql" returns notfound
modcall: group authorize returns ok
auth: No authenticate method(Auth-Type) configuration found for the request: 
Rejecting the user
auth: Failed to validate the user.

I have set the following in radiusd.conf:

pap {
        encryption_scheme = clear
}
authorize {
        preprocess
        suffix
        sql
}
authenticate {
        authtype PAP {
                pap
        }
}
preacct {
        preprocess
        suffix
}
accounting {
        detail
        sql
        radutmp
}
session {
        sql
}

I have the following setup in users:

DEFAULT Auth-Type := PAP

I also have the following entry in the radgroupreply table for the group that 
my test accounts are associated with:

| id | GroupName | Attribute          | Value               | op   | prio |
+----+-----------+--------------------+---------------------+------+------+
|  8 | DialUp    | Auth-Type          | PAP                 | NULL |    0 |

I'm not sure if any of this is correct.  Anybody have any ideas?  I apologize 
if I included any unecessary log information, but I wasn't sure what would be 
of importance.

Thanks,

--Josh Snyder
NetNITCO Systems Administration
        

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

Reply via email to