From patchwork Thu Apr 7 16:22:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin O'Connor X-Patchwork-Id: 607496 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (caladan.dune.hu [78.24.191.180]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qgntX0Hpxz9t5q for ; Fri, 8 Apr 2016 02:22:27 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=koconnor-net.20150623.gappssmtp.com header.i=@koconnor-net.20150623.gappssmtp.com header.b=mr1+Cj6V; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 760A8B90F6D; Thu, 7 Apr 2016 18:22:17 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu X-Spam-Level: ** X-Spam-Status: No, score=2.4 required=5.0 tests=RDNS_NONE,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP; Thu, 7 Apr 2016 18:22:17 +0200 (CEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id F3EA0B90F68 for ; Thu, 7 Apr 2016 18:22:15 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .koconnor. - helo: .mail-qg0-f45.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 Received: from mail-qg0-f45.google.com (unknown [209.85.192.45]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Thu, 7 Apr 2016 18:22:15 +0200 (CEST) Received: by mail-qg0-f45.google.com with SMTP id f105so43742329qge.2 for ; Thu, 07 Apr 2016 09:22:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=koconnor-net.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=Jl3hx8OWNDJgckHCzvq4cXb77CzLPf54Eq2985yNVLM=; b=mr1+Cj6VeYXLuVt56spd44rZ4k3WLdCQnvv1xL6rVnkmLPCYFqc/zVml4x+Na10JiO AzbzN7lZnSYZi4KJ5rNjesoLaemNPYemvNGq1+Fmc0jEGPuOAMSW81Fg7p9EZ6EWY7Uf yjR4kjLv3S7iV6gNhjpOavT+3eWRkV7qzdBzmCF8/bwFteADqIhQwgLJxMkLmpxIqSAH xuNi17cf3c7V+SIqTIqqyDsrcUROOkzRrbtqIsb6QJneF7wxrJvxnuMIsApI+1q/gfaB yaspPMR1x6nsPPxJrqy5GamHj6gv/DJHyYI6a+8q00ZDNjwfySwtxfnDG7cUSvypNWIZ Ifag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=Jl3hx8OWNDJgckHCzvq4cXb77CzLPf54Eq2985yNVLM=; b=RLJZApMmBancwiFv44K6EW2jRNZp2NGL2CzkLvrAkKnT0Dn2end33Z6gxEcTSeErpO Lp84SMQ+JtSdJiZoezH6TKqBauhdVT2tHD52orq3VNpVN8OKle1P3Ne7GvVNKw8qnyNz vT66fkJ99IT5pWdXMir0ABidKJQT9JQoxZhZ2AoJNVSV0tYf0ozECfHG8k51rc3sLIMo 8vLHlpXTnxcCCWVkR0GIR4ccpH4SHrEa7ku3mLYZaTcMHCu4EOWwe6trLC6RO2JOvb0m L1fLlQ+bWiJNygHGGVRO0/JF1/8h/uODHu8UHRrnDb9r2233rtJzxXy2Kre1NIB6uN38 AD2g== X-Gm-Message-State: AD7BkJL5YjOPDM2F38Xvs2kL/bj3JJBmwsdEXVKQ8pa/1h+BLY/7QzqcCtgpk8yTFtGO1g== X-Received: by 10.140.87.98 with SMTP id q89mr4949644qgd.8.1460046134339; Thu, 07 Apr 2016 09:22:14 -0700 (PDT) Received: from localhost (209-122-232-221.c3-0.avec-ubr1.nyr-avec.ny.cable.rcn.com. [209.122.232.221]) by smtp.gmail.com with ESMTPSA id b74sm3687598qge.22.2016.04.07.09.22.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Apr 2016 09:22:13 -0700 (PDT) From: Kevin O'Connor To: openwrt-devel@lists.openwrt.org Date: Thu, 7 Apr 2016 12:22:11 -0400 Message-Id: <1460046131-3843-1-git-send-email-kevin@koconnor.net> X-Mailer: git-send-email 2.5.5 Subject: [OpenWrt-Devel] [luci] [PATCH] luci-mod-admin-full: Add option to set anonymous_identity field X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Add support for setting the "anonymous_identity" field on EAP type networks. Signed-off-by: Kevin O'Connor Reviewed-By: Manuel Munz --- I sent a similar request to the openwrt mailing list that adds support to the hostapd.sh script. --- .../luasrc/model/cbi/admin_network/wifi.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua index 945512e..09763e8 100644 --- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -967,6 +967,24 @@ if hwtype == "atheros" or hwtype == "mac80211" or hwtype == "prism2" then identity:depends({mode="sta-wds", eap_type="tls", encryption="wpa2"}) identity:depends({mode="sta-wds", eap_type="tls", encryption="wpa"}) + anonymous_identity = s:taboption("encryption", Value, "anonymous_identity", translate("Anonymous Identity")) + anonymous_identity:depends({mode="sta", eap_type="fast", encryption="wpa2"}) + anonymous_identity:depends({mode="sta", eap_type="fast", encryption="wpa"}) + anonymous_identity:depends({mode="sta", eap_type="peap", encryption="wpa2"}) + anonymous_identity:depends({mode="sta", eap_type="peap", encryption="wpa"}) + anonymous_identity:depends({mode="sta", eap_type="ttls", encryption="wpa2"}) + anonymous_identity:depends({mode="sta", eap_type="ttls", encryption="wpa"}) + anonymous_identity:depends({mode="sta-wds", eap_type="fast", encryption="wpa2"}) + anonymous_identity:depends({mode="sta-wds", eap_type="fast", encryption="wpa"}) + anonymous_identity:depends({mode="sta-wds", eap_type="peap", encryption="wpa2"}) + anonymous_identity:depends({mode="sta-wds", eap_type="peap", encryption="wpa"}) + anonymous_identity:depends({mode="sta-wds", eap_type="ttls", encryption="wpa2"}) + anonymous_identity:depends({mode="sta-wds", eap_type="ttls", encryption="wpa"}) + anonymous_identity:depends({mode="sta", eap_type="tls", encryption="wpa2"}) + anonymous_identity:depends({mode="sta", eap_type="tls", encryption="wpa"}) + anonymous_identity:depends({mode="sta-wds", eap_type="tls", encryption="wpa2"}) + anonymous_identity:depends({mode="sta-wds", eap_type="tls", encryption="wpa"}) + password = s:taboption("encryption", Value, "password", translate("Password")) password:depends({mode="sta", eap_type="fast", encryption="wpa2"}) password:depends({mode="sta", eap_type="fast", encryption="wpa"})