freeradius + mysql + pptpd help me please

hyunok jinjusi at Kornet.net
Sun Aug 19 04:19:15 CEST 2007


Fedora cor 5
freeradius-1.1.7.tar.gz ==> rpmbuild -bb Redhat\freeradius.spec
radiusd.conf ==> option sql enable

options.pptpd  
plugin radius.so
radius-config-file /usr/local/etc/radiusclient/radiusclient.conf
plugin radattr.so

mysql 
use raidius;

mysql> select * from usergroup;
+----------+-----------+----------+
| UserName | GroupName | priority |
+----------+-----------+----------+
| testuser | pptpd     |        1 |
+----------+-----------+----------+
1 row in set (0.00 sec)

mysql> select * from radcheck;
+----+----------+---------------+----+------------------------------------+
| id | UserName | Attribute     | op | Value                              |
+----+----------+---------------+----+------------------------------------+
|  2 | testuser | User-Password | := | $1$GhlXfa4L$4MU8.SGVhavIVwTtWOWRV1 |
+----+----------+---------------+----+------------------------------------+
1 row in set (0.00 sec)

radiusd -xx 

.............
Thread spawned new child 1. Total threads in pool: 1
Thread spawned new child 2. Total threads in pool: 2
Thread spawned new child 3. Total threads in pool: 3
Thread spawned new child 4. Total threads in pool: 4
Thread spawned new child 5. Total threads in pool: 5
Thread pool initialized
Listening on authentication *:1812
Listening on accounting *:1813
Ready to process requests.
Thread 1 waiting to be assigned a request
Thread 2 waiting to be assigned a request
Thread 3 waiting to be assigned a request
Thread 4 waiting to be assigned a request
Thread 5 waiting to be assigned a request
rad_recv: Access-Request packet from host 127.0.0.1:32772, id=237, length=69
Thread 1 got semaphore
--- Walking the entire request list ---
Waking up in 31 seconds...
Threads: total/active/spare threads = 5/0/5
Thread 1 handling request 0, (1 handled so far)
        Service-Type = Framed-User
        Framed-Protocol = PPP
        User-Name = "testuser"
        Calling-Station-Id = "123.xx.xx.xx"
        NAS-IP-Address = 127.0.0.1
        NAS-Port = 0
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 0
  modcall[authorize]: module "preprocess" returns ok for request 0
  modcall[authorize]: module "chap" returns noop for request 0
  modcall[authorize]: module "mschap" returns noop for request 0
    rlm_realm: No '@' in User-Name = "testuser", looking up realm NULL
    rlm_realm: No such realm "NULL"
  modcall[authorize]: module "suffix" returns noop for request 0
  rlm_eap: No EAP-Message, not doing EAP
  modcall[authorize]: module "eap" returns noop for request 0
    users: Matched entry DEFAULT at line 153
    users: Matched entry DEFAULT at line 172
    users: Matched entry DEFAULT at line 184
  modcall[authorize]: module "files" returns ok for request 0
radius_xlat:  'testuser'
rlm_sql (sql): sql_set_user escaped user --> 'testuser'
radius_xlat:  'SELECT id, UserName, Attribute, Value, op           FROM radcheck                                    
WHERE Username = 'testuser'           ORDER BY id'
rlm_sql (sql): Reserving sql socket id: 4
radius_xlat:  'SELECT radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,r                         
adgroupcheck.Value,radgroupcheck.op  FROM radgroupcheck,usergroup WHERE usergroup.Userna                         
me = 'testuser' AND usergroup.GroupName = radgroupcheck.GroupName ORDER BY radgroupcheck                         
.id'
radius_xlat:  'SELECT id, UserName, Attribute, Value, op           FROM radreply                                    
WHERE Username = 'testuser'           ORDER BY id'
radius_xlat:  'SELECT radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,r                         
adgroupreply.Value,radgroupreply.op  FROM radgroupreply,usergroup WHERE usergroup.Userna                         
me = 'testuser' AND usergroup.GroupName = radgroupreply.GroupName ORDER BY radgroupreply                         
.id'
rlm_sql (sql): Released sql socket id: 4
  modcall[authorize]: module "sql" returns ok for request 0
rlm_pap: Found existing Auth-Type, not changing it.
  modcall[authorize]: module "pap" returns noop for request 0
modcall: leaving group authorize (returns ok) for request 0
  rad_check_password:  Found Auth-Type System
auth: type "System"
  Processing the authenticate section of radiusd.conf
modcall: entering group authenticate for request 0
rlm_unix: Attribute "User-Password" is required for authentication.
  modcall[authenticate]: module "unix" returns invalid for request 0
modcall: leaving group authenticate (returns invalid) for request 0
auth: Failed to validate the user.
Delaying request 0 for 1 seconds
Finished request 0
Going to the next request
Thread 1 waiting to be assigned a request

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20070819/a5727805/attachment.html>


More information about the Freeradius-Users mailing list