always encode EAP usernames as ID_KEY_ID

This commit is contained in:
Martin Willi
2009-02-18 15:03:33 +00:00
parent 2d887e8e08
commit d2ac1443d3
+2 -1
View File
@@ -223,7 +223,8 @@ static gboolean connect_(NMVPNPlugin *plugin, NMConnection *connection,
str = g_hash_table_lookup(settings->data, "user");
if (str)
{
user = identification_create_from_string(str);
user = identification_create_from_encoding(ID_KEY_ID,
chunk_create(str, strlen(str)));
str = g_hash_table_lookup(settings->secrets, "password");
creds->set_username_password(creds, user, str);
}