Changeset 1990


Ignore:
Timestamp:
2005-09-24T19:49:16+02:00 (11 years ago)
Author:
nbd
Message:

add radius configuration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/whiterussian/openwrt/package/webif/files/www/cgi-bin/webif/wireless-config.sh

    r1988 r1990  
    4141        esac 
    4242        FORM_wpa_psk=${wl0_wpa_psk:-$(nvram get wl0_wpa_psk)} 
     43        FORM_radius_key=${wl0_radius_key:-$(nvram get wl0_radius_key)} 
     44        FORM_radius_ipaddr=${wl0_radius_ipaddr:-$(nvram get wl0_radius_ipaddr)} 
    4345        crypto=${wl0_crypto:-$(nvram get wl0_crypto)} 
    4446        case "$crypto" in 
     
    9294                                wpa1wpa2) save_setting wireless wl0_akm "wpa wpa2";; 
    9395                        esac 
     96                        validate_ip "$FORM_radius_ipaddr" "RADIUS Server" 1 && \ 
     97                                save_setting wireless wl0_radius_ipaddr "$FORM_radius_ipaddr" 
     98                        save_setting wireless wl0_radius_key "$FORM_radius_key" 
    9499                        ;; 
    95100                wep) 
     
    123128        set_visible('wep_keys', checked('encryption_wep')); 
    124129 
     130        v = checked('encryption_wpa'); 
     131        set_visible('radius_key', v); 
     132        set_visible('radius_ipaddr', v); 
     133 
    125134        if (checked('mode_wet') || checked('mode_sta')) { 
    126135                        var wpa = document.getElementById('encryption_wpa'); 
     
    141150        <h2>Settings saved</h2> 
    142151        <br /> 
    143 <?el?> 
     152<?fi?> 
    144153<? display_form "start_form:$SCRIPT_NAME 
    145154field:ESSID 
     
    162171field:WPA preshared key:wpa_psk 
    163172text:wpa_psk:$FORM_wpa_psk 
     173field:RADIUS Server IP:radius_ipaddr 
     174text:radius_ipaddr:$FORM_radius_ipaddr 
     175field:RADIUS Server Key:radius_key 
     176text:radius_key:$FORM_radius_key 
    164177field:WEP keys:wep_keys 
    165178radio:key:$FORM_key:1 
     
    175188end_form" 
    176189?> 
    177 <?fi?> 
    178190 
    179191<? footer ?> 
Note: See TracChangeset for help on using the changeset viewer.