add something like this to the top part of your
/etc/raddb/users file
DEFAULT Realm == "LOCAL", Autz-Type := SQLautz
        Fall-Through = Yes
 
DEFAULT Realm == "NULL", Autz-Type := SQLautz
        Fall-Through = Yes
 
DEFAULT Realm == "DEFAULT", Autz-Type := SQLautz

and also include this in /etc/raddb/radiusd.conf

        Autz-Type SQLautz{
                sql
        }
in the authorize section.

Kafui Amedzekor.

--- lista <[EMAIL PROTECTED]> wrote:

> It is uncomment :)
> 
> I even changed its position (as I saw in an example
> configuration in the
> net...)
> 
> but no advance...
> 
> On Fri, 2004-08-20 at 11:49, lista wrote:
> > I is uncomment :)
> > On Fri, 2004-08-20 at 10:49, Amedzekor Kafui
> wrote:
> > > uncomment sql in the authorize section of
> radiusd.conf
> > > -
> > > -- lista <[EMAIL PROTECTED]> wrote:
> > > 
> > > > well, why can't I authenticate?
> > > > It seems to have a problem with the Auth-Type.
> > > > 
> > > > ERROR: Unknown value specified for Auth-Type
> > > > 
> > > > here are the records in mysql: (the encrypted
> one
> > > > was added with
> > > > freeradius web interface)
> > > > 
> > > > teste1 User-Password :=
> > > > $1$lUrUQChU$TARPEZEQojso6S9ZlkujF0
> > > > 
> > > > teste3 User-Password := 201125 (just to be
> sure that
> > > > the problem isn`t
> > > > the passwd crypt)
> > > > 
> > > > 
> > > > running radiusd -X and using radtest, I have
> this:
> > > > 
> > > > 
> > > > rlm_sql (sql): Released sql socket id: 1
> > > >   modcall[authorize]: module "sql" returns ok
> for
> > > > request 3
> > > >   rlm_eap: No EAP-Message, not doing EAP
> > > >   modcall[authorize]: module "eap" returns
> noop for
> > > > request 3
> > > >     users: Matched DEFAULT at 152
> > > >   modcall[authorize]: module "files" returns
> ok for
> > > > request 3
> > > > modcall: group authorize returns ok for
> request 3
> > > >   rad_check_password:  Found Auth-Type System
> > > > auth: type "System"
> > > >   ERROR: Unknown value specified for
> Auth-Type. 
> > > > Cannot perform
> > > > requested action.
> > > > auth: Failed to validate the user.
> > > > Delaying request 3 for 1 seconds
> > > > Finished request 3
> > > > 
> > > > 
> > > > TIA, 
> > > > 
> > > > Joao Reis
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > On Fri, 2004-08-20 at 04:02, Thor Spruyt
> wrote:
> > > > > The minimum you need is 1 record for each
> user in
> > > > the radcheck table.
> > > > >  
> > > > > insert into radcheck (username, attribute,
> op,
> > > > value) values
> > > > > ('testuser', 'User-Password', ':=',
> 'testpass');
> > > > >  
> > > > > --
> > > > > Regards,
> > > > >  
> > > > > Thor Spruyt
> > > > > E: [EMAIL PROTECTED]
> > > > > W: www.thor-spruyt.com
> > > > > M: +32 (0)475 67 22 65
> > > > > 
> > > > >         ----- Original Message ----- 
> > > > >         From: listas
> > > > >         To:
> [EMAIL PROTECTED]
> > > > >         Sent: Friday, August 20, 2004 3:05
> AM
> > > > >         Subject: table contents
> > > > >         
> > > > >         Is there a .sql with some example
> values
> > > > to feed radius
> > > > >         database?
> > > > >          
> > > > >         I can�t authenticate on radius using
> > > > mysql, I'm sure that I
> > > > >         have to put something else on the
> tables,
> > > > but I�m a freeradius
> > > > >         newbie, so if someone could help...
> > > > >          
> > > > >          
> > > > >          
> > > > >         TIA.
> > > > 
> > > > 
> > > > -
> > > > List info/subscribe/unsubscribe? See
> > > > http://www.freeradius.org/list/users.html
> > > > 
> > > 
> > > 
> > > 
> > >           
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail Address AutoComplete - You start. We
> finish.
> > > http://promotions.yahoo.com/new_mail
> > > 
> > > - 
> > > List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
> > 
> > 
> > - 
> > List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
> 
> 
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
> 



                
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 

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

Reply via email to