Commit d776c47c authored by Lamarque Souza's avatar Lamarque Souza
Browse files

Change importer to read the "UserName" setting. The VPN connection's

configuration must be set to use this setting or NM will refuse the
connection.

CCBUG: 269951
parent 623beb3f
......@@ -21,9 +21,7 @@ void VpnPersistence::load()
setting->setServiceType(m_config->readEntry("ServiceType", ""));
setting->setData(stringMapFromStringList(m_config->readEntry("Data", QStringList())));
setting->setSecretsStorageType(stringMapFromStringList(m_config->readEntry("SecretsStorageType", QStringList())));
// NM-0.8.9997's VPNC plugin refuses this property ("user-name"), so does OpenVPN plugin, so remove it.
// For now, if any other VPN plugin needs this property the user will have to added it manually.
// setting->setUserName(KUser().loginName());
setting->setUserName(m_config->readEntry("UserName", ""));
// SECRET
if (m_storageMode == SettingPersistence::PlainText) {
// the map is flattened to a list of key,value,key,value
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment