Hello freeradius-users,

I have a problem authenticating user with sql.

RH7.2+Oracle8.1.7: I have created user 'test' with passwd 'test' in db
When I run radclient I get:
....
  modcall[authorize]: module "sql" returns ok
    users: Matched DEFAULT at 157
  modcall[authorize]: module "files" returns ok
modcall: group authorize returns ok
  rad_check_password:  Found Auth-Type System
auth: type "System"
modcall: entering group authenticate
  HASH:  user test found in hashtable bucket 71511
  modcall[authenticate]: module "unix" returns reject
modcall: group authenticate returns reject
auth: Failed to validate the user.
Login incorrect: [test] (from nas UNKNOWN-NAS port 0)
...

When I make record in users:
test     Auth-Type := Local, User-Password == 'test'
I get:
....
modcall[authorize]: module "sql" returns ok
    users: Matched test at 91
  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:  'Hello from Oracle!'
Login OK: [test] (from nas UNKNOWN-NAS port 0)
Sending Access-Accept of id 111 to 192.168.200.2:32770
        Reply-Message = "Hello from Oracle!
....

It means that I get reply that was inserted into Oracle table, but how
can I authenticate using Oracle and not users file? (sql is not
allowed in radiusd.conf in authenticate section)

Any sugestions and advices are very appreciated. Thanks in advance.

-- 
Best regards,
 alienoid                          mailto:[EMAIL PROTECTED]


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

Reply via email to