Dear 3APA3A,

   I aplied your patch and what I get:

���  4 20:30:14 fast radiusd: rad_recv: Access-Request packet from host 
127.0.0.1:2547, id=79, length=131
���  4 20:30:14 fast radiusd: ^IService-Type ?? Framed-User
���  4 20:30:14 fast radiusd: ^IFramed-Protocol ?? PPP
���  4 20:30:14 fast radiusd: ^IUser-Name ?? "vpn"
���  4 20:30:14 fast radiusd: ^IMS-CHAP-Challenge ?? 
0xccf0cb92f266f2ba3c3090a2352d5e20
���  4 20:30:14 fast radiusd: ^IMS-CHAP2-Response ?? 
0x0100e24ac8421dcfd92300d62af48929e5c300000000000000004ba11f1b0681dfd39f5e107858fa565653f3eae9d006d9e0
���  4 20:30:14 fast radiusd: ^INAS-IP-Address ?? 127.0.0.1
���  4 20:30:14 fast radiusd: ^INAS-Port ?? 0
���  4 20:30:14 fast radiusd: modcall: entering group authorize
���  4 20:30:14 fast radiusd:   modcall[authorize]: module "preprocess" 
returns ok
���  4 20:30:14 fast radiusd:     rlm_realm: Looking up realm NULL for 
User-Name = "vpn"
���  4 20:30:14 fast radiusd:     rlm_realm: No such realm NULL
���  4 20:30:14 fast radiusd:   modcall[authorize]: module "suffix" 
returns noop
���  4 20:30:14 fast radiusd:     users: Matched DEFAULT at 152
���  4 20:30:14 fast radiusd:     users: Matched DEFAULT at 171
���  4 20:30:14 fast radiusd:     users: Matched DEFAULT at 178
���  4 20:30:14 fast radiusd:   modcall[authorize]: module "files" 
returns ok
���  4 20:30:14 fast radiusd: radius_xlat:  'vpn'
���  4 20:30:14 fast radiusd: sql_set_user:  escaped user --> 'vpn'
���  4 20:30:14 fast radiusd: radius_xlat:  'SELECT 
id,UserName,Attribute,Value FROM radcheck WHERE Username = 'vpn' ORDER 
BY id'
���  4 20:30:14 fast radiusd: rlm_sql: Reserving sql socket id: 1
���  4 20:30:14 fast radiusd: query: SELECT id,UserName,Attribute,Value 
FROM radcheck WHERE Username = 'vpn' ORDER BY id
���  4 20:30:14 fast radiusd: rlm_postgresql Status: PGRES_TUPLES_OK
���  4 20:30:14 fast radiusd: sql_postgresql: affected rows =
���  4 20:30:14 fast radiusd: radius_xlat:  'SELECT 
radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupcheck.Value 
FROM radgroupcheck,usergroup WHERE usergroup.Username = 'vpn' AND 
usergroup.GroupName = radgroupcheck.GroupName ORDER BY radgroupcheck.id'
���  4 20:30:14 fast radiusd: query: SELECT 
radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupcheck.Value 
FROM radgroupcheck,usergroup WHERE usergroup.Username = 'vpn' AND 
usergroup.GroupName = radgroupcheck.GroupName ORDER BY radgroupcheck.id
���  4 20:30:14 fast radiusd: rlm_postgresql Status: PGRES_TUPLES_OK
���  4 20:30:15 fast radiusd: sql_postgresql: affected rows =
���  4 20:30:15 fast radiusd: rlm_sql: unknown attribute ^IService-Type
���  4 20:30:15 fast radiusd: rlm_sql:  Error getting data from database
���  4 20:30:15 fast radiusd: radius_xlat:  'SELECT 
id,UserName,Attribute,Value FROM radreply WHERE Username = 'vpn' ORDER 
BY id'
���  4 20:30:15 fast radiusd: query: SELECT id,UserName,Attribute,Value 
FROM radreply WHERE Username = 'vpn' ORDER BY id
���  4 20:30:15 fast radiusd: rlm_postgresql Status: PGRES_TUPLES_OK
���  4 20:30:15 fast radiusd: sql_postgresql: affected rows =
���  4 20:30:15 fast radiusd: radius_xlat:  'SELECT 
radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radgroupreply.Value 
FROM radgroupreply,usergroup WHERE usergroup.Username = 'vpn' AND 
usergroup.GroupName = radgroupreply.GroupName ORDER BY radgroupreply.id'
���  4 20:30:15 fast radiusd: query: SELECT 
radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radgroupreply.Value 
FROM radgroupreply,usergroup WHERE usergroup.Username = 'vpn' AND 
usergroup.GroupName = radgroupreply.GroupName ORDER BY radgroupreply.id
���  4 20:30:15 fast radiusd: rlm_postgresql Status: PGRES_TUPLES_OK
���  4 20:30:15 fast radiusd: sql_postgresql: affected rows =
���  4 20:30:15 fast radiusd: rlm_sql:  check items
���  4 20:30:15 fast radiusd:      NT-Password ?? 0x
���  4 20:30:15 fast radiusd:      Auth-Type ?? MS-CHAP
���  4 20:30:15 fast radiusd: rlm_sql:  reply items
���  4 20:30:15 fast radiusd:      Framed-IP-Address ?? 10.10.1.1
���  4 20:30:15 fast radiusd:      Framed-Protocol ?? PPP
���  4 20:30:16 fast radiusd:      Service-Type ?? Framed-User
���  4 20:30:16 fast radiusd: rlm_sql:  request items
���  4 20:30:16 fast radiusd:      Service-Type ?? Framed-User
Sep  4 20:30:16 fast pppd[31112]: CHAP peer authentication failed for 
remote host vpn
���  4 20:30:16 fast radiusd:      Framed-Protocol ?? PPP
���  4 20:30:16 fast radiusd:      User-Name ?? "vpn"
���  4 20:30:16 fast radiusd:      MS-CHAP-Challenge ?? 
0xccf0cb92f266f2ba3c3090a2352d5e20
Sep  4 20:30:16 fast pppd[31112]: Connection terminated.
���  4 20:30:16 fast radiusd:      MS-CHAP2-Response ?? 
0x0100e24ac8421dcfd92300d62af48929e5c30000000000
Sep  4 20:30:16 fast pppd[31112]: Exit.
���  4 20:30:16 fast radiusd:      NAS-IP-Address ?? 127.0.0.1
Sep  4 20:30:16 fast pptpd[31111]: GRE: 
read(fd=5,buffer=804d9c0,len=8196) from PTY failed: status = -1 error = 
Input/output error
���  4 20:30:16 fast radiusd:      NAS-Port ?? 0
Sep  4 20:30:16 fast pptpd[31111]: CTRL: PTY read or GRE write failed 
(pty,gre)=(5,6)
���  4 20:30:16 fast radiusd:      Client-IP-Address ?? 127.0.0.1
���  4 20:30:16 fast radiusd:      SQL-User-Name ?? "vpn"
���  4 20:30:16 fast radiusd: rlm_sql: Pairs do not match [vpn]
���  4 20:30:17 fast radiusd: rlm_sql: Released sql socket id: 1
���  4 20:30:17 fast radiusd:   modcall[authorize]: module "sql" returns 
notfound
Sep  4 20:30:16 fast pptpd[31111]: CTRL: Client 192.168.1.1 control 
connection finished
���  4 20:30:17 fast radiusd: modcall: group authorize returns ok
���  4 20:30:17 fast radiusd:   rad_check_password:  Found Auth-Type MS-CHAP
���  4 20:30:17 fast radiusd: auth: type "MS-CHAP"
���  4 20:30:17 fast radiusd: modcall: entering group authenticate
���  4 20:30:17 fast radiusd: rlm_mschap: No LM/NT password configured. 
Check authorization.
���  4 20:30:17 fast radiusd:   modcall[authenticate]: module "mschap" 
returns invalid
���  4 20:30:17 fast radiusd: modcall: group authenticate returns invalid
���  4 20:30:17 fast radiusd: auth: Failed to validate the user.
���  4 20:30:17 fast radiusd: Login incorrect: [vpn/<no User-Password 
attribute>] (from client 127.0.0.1 port 0)


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

Reply via email to