radius - FreeRadius + PHP Configuration -


i'm trying configure freeradius authenticate using php script. i've been messing around trying get server authenticate based on script, can't find documentation on doing way.

this we're trying configure.

we have web server, has wordpress site installed on thousands of users. we're wanting install wifi service @ locations uses freeradius authentication , want allow users signed on wordpress site use credentials.

the problem i'm facing right can't seem freeradius authenticate based on php script.

this i've configured far based on other stackoverflow posts have mentioned configuration.

i've created following file in /etc/modules/php , added this

exec php {     wait = yes     program = "/usr/bin/php -f /etc/raddb/myscript.php"     input_pairs = request     output_pairs = reply } 

in /etc/raddb/sites-enabled/default i've added following:

authenticate {   auth-type php {     php   } } 

in /etc/raddb/users i've added following line end

default auth-type := php 

in terms of myscript.php file, i've added responses see , printed "access-accept" or "access-reject" see if give me clues whether authenticate based on responses, neither helped.

any guidance or examples appreciated.

also, i've tried method listed here: freeradius , php auth script no avail.

the method in link updating control:auth-type should work. make sure it's done in authorize {}

change responses accept , reject (as per link posted). access-accept != accept, access-reject != reject.

for clarity , avoid annoying log message add:

authenticate {     reject } 

which add auth-type reject { reject } section.

you don't need accept, there's builtin auth type accept causes authentication succeed.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -