GNOME Bugzilla – Bug 687908
NM should request PIN when trying to enable a locked modem
Last modified: 2020-11-12 14:29:22 UTC
If a given NMDeviceModem is requested to get enabled (e.g. when WWAN gets enabled), and the corresponding modem is waiting for SIM PIN, NetworkManager should ask for PIN secrets to the agent, unlock the modem and finally enable it. I cannot see an easy way of doing this right now, as asking for secrets is very tied to connection settings and in this case we don't have any connection (we're just enabling the modem, not connecting it). Not being able to unlock the modem when enabling it breaks the functionality of the Mobile Broadband switch in gnome-shell; see bug 687855. For distros using nm-applet the issue is smaller as nm-applet automatically detects locked modems and tries to unlock them (see bug 687897).
If the modem is PIN-locked, NM should ask for the PIN to the secrets agent. If the modem is PUK-locked, NM should ask for the PUK *and* new PIN to the secrets agent. Also need to consider that on successful unlocking of the modem, we need to tell the secrets provider to store the PIN for later accesses (based on SIM ID).
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).