After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 721776 - NetworkManager always check secret agent for modify access
NetworkManager always check secret agent for modify access
Status: RESOLVED OBSOLETE
Product: NetworkManager
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-01-08 08:31 UTC by RoMan
Modified: 2020-11-12 14:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description RoMan 2014-01-08 08:31:17 UTC
NetworkManager always check secret agent for modify access even if secret flag is always-ask in get_next_cb (src/settings/nm-agent-manager.c), has_system_secrets always return TRUE because nm_connection_for_each_setting_value iterate by all possible settings which never used in this connection, as result we always have secret with flag NM_SETTING_SECRET_FLAG_NONE

Can someone help to resolve this problem?

I found this http://gnome-networkmanager.2324886.n4.nabble.com/NM-0-9-asks-for-PK-auth-without-need-td11076.html
I compile NM with patch 0001-don-t-consider-not-needed-secrets-for-has_system_secr.diff as discribed on https://wiki.ubuntu.com/DebuggingNetworkManager

As I see in DEBUG log this patch skip all not needed secrets, but my problem still not completely resolved, we are using WPA2 Enterprise network (EAP-TTLS) and as I found EAP authentication has two variants of secrets: 'password' and 'password-raw' (https://developer.gnome.org/NetworkManager/0.9/ref-settings.html)

password-raw not used in graphical configurator but it is possible to set it and it flag only by editing config file or via API

I checked all possible combination and found that 'password-raw' used only if it's set in config file or if password-flag=NM_SETTING_SECRET_FLAG_NOT_REQUIRED

I think 'password-raw' flag should be considered with 'password' flag
Comment 1 André Klapper 2020-11-12 14:35:13 UTC
bugzilla.gnome.org is being shut down in favor of a GitLab instance. 
We are closing all old bug reports and feature requests in GNOME Bugzilla which have not seen updates for a long time.

If you still use NetworkManager and if you still see this bug / want this feature in a recent and supported version of NetworkManager, then please feel free to report it at https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/

Thank you for creating this report and we are sorry it could not be implemented (workforce and time is unfortunately limited).