2008-11-24 Dan Williams <dcbw@redhat.com>
* src/nm-pptp-service.c - (construct_pppd_args): send username to server (bgo #561941) git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4332 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2008-11-24 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/nm-pptp-service.c
|
||||
- (construct_pppd_args): send username to server (bgo #561941)
|
||||
|
||||
2008-11-04 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
Fix bgo #559152
|
||||
|
@@ -678,6 +678,8 @@ construct_pppd_args (NMPptpPlugin *plugin,
|
||||
const char *pppd,
|
||||
GError **error)
|
||||
{
|
||||
NMPptpPluginPrivate *priv = NM_PPTP_PLUGIN_GET_PRIVATE (plugin);
|
||||
NMPptpPppServicePrivate *service_priv = NULL;
|
||||
GPtrArray *args = NULL;
|
||||
const char *value, *pptp_binary;
|
||||
char *ipparam, *tmp;
|
||||
@@ -725,6 +727,13 @@ construct_pppd_args (NMPptpPlugin *plugin,
|
||||
g_ptr_array_add (args, (gpointer) g_strdup ("noipdefault"));
|
||||
g_ptr_array_add (args, (gpointer) g_strdup ("nodefaultroute"));
|
||||
|
||||
if (priv->service)
|
||||
service_priv = NM_PPTP_PPP_SERVICE_GET_PRIVATE (priv->service);
|
||||
if (service_priv && strlen (service_priv->username)) {
|
||||
g_ptr_array_add (args, (gpointer) g_strdup ("user"));
|
||||
g_ptr_array_add (args, (gpointer) g_strdup (service_priv->username));
|
||||
}
|
||||
|
||||
value = nm_setting_vpn_get_data_item (s_vpn, NM_PPTP_KEY_REFUSE_EAP);
|
||||
if (value && !strcmp (value, "yes"))
|
||||
g_ptr_array_add (args, (gpointer) g_strdup ("refuse-eap"));
|
||||
|
Reference in New Issue
Block a user