Module 2 Help?
Alexander Chen
alex_chen at authenex.com
Tue Jun 22 11:05:08 CEST 2010
Dear Sirs:
How could write a module the function as hereunder:
1. Keep /usr/local/etc/raddb/users empty.
2. All Access-Request are all return Access-Accept.
3. I wish the function like rlm_sql (just modify authorization)
Could you give me sample code.
My config is:
/usr/local/etc/raddb/sites-available/default
authorize {
preprocess
chap
mschap
suffix
eap {
ok = return
}
unix
#files
#Alex:sql
mymodule
expiration
logintime
pap
}
authenticate {
Auth-Type PAP {
pap
}
Auth-Type CHAP {
chap
}
Auth-Type MS-CHAP {
mschap
}
unix
eap
}
preacct {
preprocess
acct_unique
suffix
files
}
accounting {
detail
unix
#Alex:sql
radutmp
attr_filter.accounting_response
}
session {
radutmp
}
post-auth {
exec
Post-Auth-Type REJECT {
attr_filter.access_reject
}
}
pre-proxy {
}
post-proxy {
eap
}
Thanks.
More information about the Freeradius-Devel
mailing list