1 |
commit: 5343549ab73d2ae2bb32d91fbc01e197ee6e66ca |
2 |
Author: Johannes Huber <johu <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 5 08:48:07 2018 +0000 |
4 |
Commit: Johannes Huber <johu <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 5 08:48:07 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=5343549a |
7 |
|
8 |
kde-plasma/plasma-nm: Remove unused patch |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
.../plasma-nm/files/plasma-nm-add_EAP-PWD.patch | 201 --------------------- |
13 |
1 file changed, 201 deletions(-) |
14 |
|
15 |
diff --git a/kde-plasma/plasma-nm/files/plasma-nm-add_EAP-PWD.patch b/kde-plasma/plasma-nm/files/plasma-nm-add_EAP-PWD.patch |
16 |
deleted file mode 100644 |
17 |
index 896a8144d5..0000000000 |
18 |
--- a/kde-plasma/plasma-nm/files/plasma-nm-add_EAP-PWD.patch |
19 |
+++ /dev/null |
20 |
@@ -1,201 +0,0 @@ |
21 |
-From b98333458ca1edd1cafb2a5b83d45f46faf14103 Mon Sep 17 00:00:00 2001 |
22 |
-From: Jan Grulich <jgrulich@××××××.com> |
23 |
-Date: Wed, 13 Dec 2017 08:51:06 +0100 |
24 |
-Subject: 802-1x: Add support for EAP-PWD |
25 |
- |
26 |
-BUG:387685 |
27 |
---- |
28 |
- libs/editor/settings/security802-1x.cpp | 49 +++++++++++++++++++++++++++++---- |
29 |
- libs/editor/settings/ui/802-1x.ui | 49 +++++++++++++++++++++++++++++---- |
30 |
- 3 files changed, 88 insertions(+), 12 deletions(-) |
31 |
- |
32 |
-diff --git a/libs/editor/settings/security802-1x.cpp b/libs/editor/settings/security802-1x.cpp |
33 |
-index d6405bf..461a38c 100644 |
34 |
---- a/libs/editor/settings/security802-1x.cpp |
35 |
-+++ b/libs/editor/settings/security802-1x.cpp |
36 |
-@@ -40,6 +40,7 @@ Security8021x::Security8021x(const NetworkManager::Setting::Ptr &setting, bool w |
37 |
- m_ui->leapPassword->setPasswordOptionsEnabled(true); |
38 |
- m_ui->md5Password->setPasswordOptionsEnabled(true); |
39 |
- m_ui->peapPassword->setPasswordOptionsEnabled(true); |
40 |
-+ m_ui->pwdPassword->setPasswordOptionsEnabled(true); |
41 |
- m_ui->tlsPrivateKeyPassword->setPasswordOptionsEnabled(true); |
42 |
- m_ui->ttlsPassword->setPasswordOptionsEnabled(true); |
43 |
- |
44 |
-@@ -49,18 +50,20 @@ Security8021x::Security8021x(const NetworkManager::Setting::Ptr &setting, bool w |
45 |
- |
46 |
- m_ui->auth->setItemData(0, NetworkManager::Security8021xSetting::EapMethodTls); |
47 |
- m_ui->auth->setItemData(1, NetworkManager::Security8021xSetting::EapMethodLeap); |
48 |
-- m_ui->auth->setItemData(2, NetworkManager::Security8021xSetting::EapMethodFast); |
49 |
-- m_ui->auth->setItemData(3, NetworkManager::Security8021xSetting::EapMethodTtls); |
50 |
-- m_ui->auth->setItemData(4, NetworkManager::Security8021xSetting::EapMethodPeap); |
51 |
-+ m_ui->auth->setItemData(2, NetworkManager::Security8021xSetting::EapMethodPwd); |
52 |
-+ m_ui->auth->setItemData(3, NetworkManager::Security8021xSetting::EapMethodFast); |
53 |
-+ m_ui->auth->setItemData(4, NetworkManager::Security8021xSetting::EapMethodTtls); |
54 |
-+ m_ui->auth->setItemData(5, NetworkManager::Security8021xSetting::EapMethodPeap); |
55 |
- } else { |
56 |
- m_ui->auth->removeItem(2); // LEAP |
57 |
- m_ui->stackedWidget->removeWidget(m_ui->leapPage); |
58 |
- |
59 |
- m_ui->auth->setItemData(0, NetworkManager::Security8021xSetting::EapMethodMd5); |
60 |
- m_ui->auth->setItemData(1, NetworkManager::Security8021xSetting::EapMethodTls); |
61 |
-- m_ui->auth->setItemData(2, NetworkManager::Security8021xSetting::EapMethodFast); |
62 |
-- m_ui->auth->setItemData(3, NetworkManager::Security8021xSetting::EapMethodTtls); |
63 |
-- m_ui->auth->setItemData(4, NetworkManager::Security8021xSetting::EapMethodPeap); |
64 |
-+ m_ui->auth->setItemData(2, NetworkManager::Security8021xSetting::EapMethodPwd); |
65 |
-+ m_ui->auth->setItemData(3, NetworkManager::Security8021xSetting::EapMethodFast); |
66 |
-+ m_ui->auth->setItemData(4, NetworkManager::Security8021xSetting::EapMethodTtls); |
67 |
-+ m_ui->auth->setItemData(5, NetworkManager::Security8021xSetting::EapMethodPeap); |
68 |
- } |
69 |
- |
70 |
- // Set PEAP authentication as default |
71 |
-@@ -88,6 +91,8 @@ Security8021x::Security8021x(const NetworkManager::Setting::Ptr &setting, bool w |
72 |
- connect(m_ui->leapPassword, &PasswordField::passwordOptionChanged, this, &Security8021x::slotWidgetChanged); |
73 |
- connect(m_ui->fastAllowPacProvisioning, &QCheckBox::stateChanged, this, &Security8021x::slotWidgetChanged); |
74 |
- connect(m_ui->pacFile, &KUrlRequester::textChanged, this, &Security8021x::slotWidgetChanged); |
75 |
-+ connect(m_ui->pwdUsername, &KLineEdit::textChanged, this, &Security8021x::slotWidgetChanged); |
76 |
-+ connect(m_ui->pwdPassword, &PasswordField::textChanged, this, &Security8021x::slotWidgetChanged); |
77 |
- connect(m_ui->fastUsername, &KLineEdit::textChanged, this, &Security8021x::slotWidgetChanged); |
78 |
- connect(m_ui->fastPassword, &PasswordField::textChanged, this, &Security8021x::slotWidgetChanged); |
79 |
- connect(m_ui->fastPassword, &PasswordField::passwordOptionChanged, this, &Security8021x::slotWidgetChanged); |
80 |
-@@ -175,6 +180,18 @@ void Security8021x::loadConfig(const NetworkManager::Setting::Ptr &setting) |
81 |
- } else { |
82 |
- m_ui->leapPassword->setPasswordOption(PasswordField::AlwaysAsk); |
83 |
- } |
84 |
-+ |
85 |
-+ } else if (eapMethods.contains(NetworkManager::Security8021xSetting::EapMethodPwd)) { |
86 |
-+ m_ui->auth->setCurrentIndex(m_ui->auth->findData(NetworkManager::Security8021xSetting::EapMethodPwd)); |
87 |
-+ m_ui->pwdUsername->setText(securitySetting->identity()); |
88 |
-+ |
89 |
-+ if (securitySetting->passwordFlags().testFlag(NetworkManager::Setting::None)) { |
90 |
-+ m_ui->pwdPassword->setPasswordOption(PasswordField::StoreForAllUsers); |
91 |
-+ } else if (securitySetting->passwordFlags().testFlag(NetworkManager::Setting::AgentOwned)) { |
92 |
-+ m_ui->pwdPassword->setPasswordOption(PasswordField::StoreForUser); |
93 |
-+ } else { |
94 |
-+ m_ui->pwdPassword->setPasswordOption(PasswordField::AlwaysAsk); |
95 |
-+ } |
96 |
- } else if (eapMethods.contains(NetworkManager::Security8021xSetting::EapMethodFast)) { |
97 |
- m_ui->auth->setCurrentIndex(m_ui->auth->findData(NetworkManager::Security8021xSetting::EapMethodFast)); |
98 |
- m_ui->fastAnonIdentity->setText(securitySetting->anonymousIdentity()); |
99 |
-@@ -256,6 +273,8 @@ void Security8021x::loadSecrets(const NetworkManager::Setting::Ptr &setting) |
100 |
- m_ui->leapPassword->setText(securitySetting->password()); |
101 |
- } else if (eapMethods.contains(NetworkManager::Security8021xSetting::EapMethodFast)) { |
102 |
- m_ui->fastPassword->setText(securitySetting->password()); |
103 |
-+ } else if (eapMethods.contains(NetworkManager::Security8021xSetting::EapMethodPwd)) { |
104 |
-+ m_ui->pwdPassword->setText(securitySetting->password()); |
105 |
- } else if (eapMethods.contains(NetworkManager::Security8021xSetting::EapMethodTtls)) { |
106 |
- m_ui->ttlsPassword->setText(securitySetting->password()); |
107 |
- } else if (eapMethods.contains(NetworkManager::Security8021xSetting::EapMethodPeap)) { |
108 |
-@@ -366,6 +385,22 @@ QVariantMap Security8021x::setting() const |
109 |
- } else { |
110 |
- setting.setPasswordFlags(NetworkManager::Setting::NotSaved); |
111 |
- } |
112 |
-+ } else if (method == NetworkManager::Security8021xSetting::EapMethodPwd) { |
113 |
-+ if (!m_ui->pwdUsername->text().isEmpty()) { |
114 |
-+ setting.setIdentity(m_ui->pwdUsername->text()); |
115 |
-+ } |
116 |
-+ |
117 |
-+ if (m_ui->pwdPassword->passwordOption() == PasswordField::StoreForAllUsers) { |
118 |
-+ setting.setPasswordFlags(NetworkManager::Setting::None); |
119 |
-+ } else if (m_ui->pwdPassword->passwordOption() == PasswordField::StoreForUser) { |
120 |
-+ setting.setPasswordFlags(NetworkManager::Setting::AgentOwned); |
121 |
-+ } else { |
122 |
-+ setting.setPasswordFlags(NetworkManager::Setting::NotSaved); |
123 |
-+ } |
124 |
-+ |
125 |
-+ if (!m_ui->pwdPassword->text().isEmpty()) { |
126 |
-+ setting.setPassword(m_ui->pwdPassword->text()); |
127 |
-+ } |
128 |
- } else if (method == NetworkManager::Security8021xSetting::EapMethodFast) { |
129 |
- if (!m_ui->fastAnonIdentity->text().isEmpty()) { |
130 |
- setting.setAnonymousIdentity(m_ui->fastAnonIdentity->text()); |
131 |
-@@ -580,6 +615,8 @@ bool Security8021x::isValid() const |
132 |
- // TODO Validate other certificates?? |
133 |
- } else if (method == NetworkManager::Security8021xSetting::EapMethodLeap) { |
134 |
- return !m_ui->leapUsername->text().isEmpty() && (!m_ui->leapPassword->text().isEmpty() || m_ui->leapPassword->passwordOption() == PasswordField::AlwaysAsk); |
135 |
-+ } else if (method == NetworkManager::Security8021xSetting::EapMethodPwd) { |
136 |
-+ return !m_ui->pwdUsername->text().isEmpty() && (!m_ui->pwdPassword->text().isEmpty() || m_ui->pwdPassword->passwordOption() == PasswordField::AlwaysAsk); |
137 |
- } else if (method == NetworkManager::Security8021xSetting::EapMethodFast) { |
138 |
- if (!m_ui->fastAllowPacProvisioning->isChecked() && !m_ui->pacFile->url().isValid()) { |
139 |
- return false; |
140 |
-diff --git a/libs/editor/settings/ui/802-1x.ui b/libs/editor/settings/ui/802-1x.ui |
141 |
-index aaa46fa..202cdf8 100644 |
142 |
---- a/libs/editor/settings/ui/802-1x.ui |
143 |
-+++ b/libs/editor/settings/ui/802-1x.ui |
144 |
-@@ -50,6 +50,11 @@ |
145 |
- </item> |
146 |
- <item> |
147 |
- <property name="text"> |
148 |
-+ <string>PWD</string> |
149 |
-+ </property> |
150 |
-+ </item> |
151 |
-+ <item> |
152 |
-+ <property name="text"> |
153 |
- <string>FAST</string> |
154 |
- </property> |
155 |
- </item> |
156 |
-@@ -298,6 +303,40 @@ |
157 |
- </item> |
158 |
- </layout> |
159 |
- </widget> |
160 |
-+ <widget class="QWidget" name="pwdPage"> |
161 |
-+ <layout class="QFormLayout" name="formLayout_8"> |
162 |
-+ <item row="0" column="0"> |
163 |
-+ <widget class="QLabel" name="label_33"> |
164 |
-+ <property name="text"> |
165 |
-+ <string>Username:</string> |
166 |
-+ </property> |
167 |
-+ <property name="buddy"> |
168 |
-+ <cstring>md5UserName</cstring> |
169 |
-+ </property> |
170 |
-+ </widget> |
171 |
-+ </item> |
172 |
-+ <item row="0" column="1"> |
173 |
-+ <widget class="KLineEdit" name="pwdUsername"/> |
174 |
-+ </item> |
175 |
-+ <item row="1" column="0"> |
176 |
-+ <widget class="QLabel" name="label_34"> |
177 |
-+ <property name="text"> |
178 |
-+ <string>Password:</string> |
179 |
-+ </property> |
180 |
-+ <property name="buddy"> |
181 |
-+ <cstring>md5Password</cstring> |
182 |
-+ </property> |
183 |
-+ </widget> |
184 |
-+ </item> |
185 |
-+ <item row="1" column="1"> |
186 |
-+ <widget class="PasswordField" name="pwdPassword"> |
187 |
-+ <property name="passwordModeEnabled" stdset="0"> |
188 |
-+ <bool>true</bool> |
189 |
-+ </property> |
190 |
-+ </widget> |
191 |
-+ </item> |
192 |
-+ </layout> |
193 |
-+ </widget> |
194 |
- <widget class="QWidget" name="fastPage"> |
195 |
- <layout class="QFormLayout" name="formLayout_4"> |
196 |
- <item row="0" column="0"> |
197 |
-@@ -696,16 +735,16 @@ |
198 |
- <header>kcombobox.h</header> |
199 |
- </customwidget> |
200 |
- <customwidget> |
201 |
-- <class>KUrlRequester</class> |
202 |
-- <extends>QWidget</extends> |
203 |
-- <header>kurlrequester.h</header> |
204 |
-- </customwidget> |
205 |
-- <customwidget> |
206 |
- <class>KLineEdit</class> |
207 |
- <extends>QLineEdit</extends> |
208 |
- <header>klineedit.h</header> |
209 |
- </customwidget> |
210 |
- <customwidget> |
211 |
-+ <class>KUrlRequester</class> |
212 |
-+ <extends>QWidget</extends> |
213 |
-+ <header>kurlrequester.h</header> |
214 |
-+ </customwidget> |
215 |
-+ <customwidget> |
216 |
- <class>PasswordField</class> |
217 |
- <extends>QLineEdit</extends> |
218 |
- <header>passwordfield.h</header> |
219 |
--- |
220 |
-cgit v0.11.2 |
221 |
- |