使用最广泛的radius的linux的源码
源代码在线查看: user_new.php3
require('../conf/config.php3'); if ($show == 1){ header("Location: user_admin.php3?login=$login"); exit; } require('../lib/attrshow.php3'); require('../lib/defaults.php3'); if ($config[general_lib_type] == 'sql' && $config[sql_use_operators] == 'true'){ $colspan=2; $show_ops=1; }else{ $show_ops = 0; $colspan=1; } ?> New user creation page include("password_generator.jsc"); ?> User Preferences for new user if ($create == 1){ if (is_file("../lib/$config[general_lib_type]/user_info.php3")) include("../lib/$config[general_lib_type]/user_info.php3"); if ($user_exists != "no"){ echo The username $login already exists in the user database EOM; } else{ if (is_file("../lib/$config[general_lib_type]/create_user.php3")) include("../lib/$config[general_lib_type]/create_user.php3"); require("../lib/defaults.php3"); if (is_file("../lib/$config[general_lib_type]/user_info.php3")) include("../lib/$config[general_lib_type]/user_info.php3"); } } ?> echo Username Password EOM; if ($config[general_lib_type] == 'sql'){ if (isset($member_groups)) $selected[$member_groups[0]] = 'selected'; echo Group EOM; foreach ($member_groups as $group) echo "$group\n"; echo EOM; } if ($config[general_lib_type] == 'ldap' || ($config[general_lib_type] == 'sql' && $config[sql_use_user_info_table] == 'true')){ echo Name (First Name Surname) Mail Department Home Phone Work Phone Mobile Phone EOM; } foreach($show_attrs as $key => $desc){ $name = $attrmap["$key"]; if ($name == 'none') continue; $oper_name = $name . '_op'; $val = ($item_vals["$key"][0] != "") ? $item_vals["$key"][0] : $default_vals["$key"][0]; print $desc EOM; if ($show_ops) print = := += == != > >= < <= =~ !~ EOM; print EOM; } ?>