El Fri, 21 Mar 2003 17:31:16 -0500
[EMAIL PROTECTED] escribi�:

> I've seen quite a few messages in the archives regarding different issues 
> with MySQL authentication.  I can get nothing to work.  I tried this 
> patch, 
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg12306.html 
> and this patch, 
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg14684.html 
> (which wouldn't apply properly, I'm no programmer) and I still can't get 
> MySQL authentication to work.  I used the instructions here: 
> http://www.frontios.com/freeradius.html and got authentication working 
> just fine with using the users file.  I can get accounting info into my 
> database, but the rlm_mysql doesn't seem to be connecting to the db at 
> all, which indicates the port issue described in the second patch thread I 
> listed. 
> 
                
I don't know how to help you, but I can tell you that I installed freeRadius 0.8.1 in 
Mandrake 9.0
and I have it working without problem right now. I use only mysql for auth and acct, 
maybe my radius.conf can give you a clue.
I must say that my "users" file is empty.

--- radius.conf ---             
prefix = /usr/local
exec_prefix = ${prefix}
sysconfdir = ${prefix}/etc
localstatedir = ${prefix}/var
sbindir = ${exec_prefix}/sbin
logdir = ${localstatedir}/log/radius
raddbdir = ${sysconfdir}/raddb
radacctdir = ${logdir}/radacct
confdir = ${raddbdir}
run_dir = ${localstatedir}/run/radiusd
log_file = ${logdir}/radius.log
libdir = ${exec_prefix}/lib
pidfile = ${run_dir}/radiusd.pid
max_request_time = 30
delete_blocked_requests = no
cleanup_delay = 5
max_requests = 1024
bind_address = *
port = 0
hostname_lookups = no
allow_core_dumps = no
regular_expressions     = yes
extended_expressions    = yes
log_stripped_names = no
log_auth = yes
log_auth_badpass = yes
log_auth_goodpass = yes
usercollide = yes
lower_user = no
lower_pass = no
nospace_user = yes
nospace_pass = yes
checkrad = ${sbindir}/checkrad
security {
        max_attributes = 1200
        reject_delay = 1
        status_server = no
}
proxy_requests  = no
$INCLUDE  ${confdir}/clients.conf
$INCLUDE  ${confdir}/snmp.conf
thread pool {
        start_servers = 5
        max_servers = 32
        min_spare_servers = 3
        max_spare_servers = 10
        max_requests_per_server = 0
}
modules {
        pap {
                encryption_scheme = crypt
        }
        chap {
                authtype = CHAP
        }
        pam {
                pam_auth = radiusd
        }
        realm suffix {
                format = suffix
                delimiter = "@"
        }
        realm realmslash {
                format = prefix
                delimiter = "/"
        }
        realm realmpercent {
                format = suffix
                delimiter = "%"
        }
        preprocess {
                huntgroups = ${confdir}/huntgroups
                hints = ${confdir}/hints
                with_ascend_hack = no
                ascend_channels_per_line = 23
                with_ntdomain_hack = no
                with_specialix_jetstream_hack = no
                with_cisco_vsa_hack = no
        }
        files {
                usersfile = ${confdir}/users
                acctusersfile = ${confdir}/acct_users
                compat = no
        }
        detail {
                detailfile = ${radacctdir}/%{Client-IP-Address}/detail-%Y%m%d
                detailperm = 0600
        }
        acct_unique {
                key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, 
NAS-Port-Id"
        }
        $INCLUDE  ${confdir}/sql.conf
        radutmp {
                filename = ${logdir}/radutmp
                perm = 0600
                callerid = "yes"
        }
        radutmp sradutmp {
                filename = ${logdir}/sradutmp
                perm = 0644
                callerid = "no"
        }
        attr_filter {
                attrsfile = ${confdir}/attrs
        }
        counter {
                filename = ${raddbdir}/db.counter
                key = User-Name
                count-attribute = Acct-Session-Time
                reset = daily
                counter-name = Daily-Session-Time
                check-name = Max-Daily-Session
                allowed-servicetype = Framed-User
                cache-size = 5000
        }
        always fail {
                rcode = fail
        }
        always reject {
                rcode = reject
        }
        always ok {
                rcode = ok
                simulcount = 0
                mpp = no
        }
        expr {
        }
}
instantiate {
        expr
}
authorize {
        preprocess
        suffix
        sql     
        files
}
authenticate {
        authtype PAP {
                pap
        }
}
preacct {
        preprocess
        suffix
        files
}
accounting {
        acct_unique
        detail
        sql
        radutmp
}
session {
        sql
}
post-auth {
}
--------------------------

I'm planning to move this to a RH7.0 server or maybe a RH8.0

-- 
Pablo Veliz

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

Reply via email to