GNOME Bugzilla – Bug 582435
PIN/PUK can be up to 8 digits
Last modified: 2020-11-12 14:27:07 UTC
Please describe the problem: PIN/PUK-codes can be up to 8 digits in length. The dialog presented however only allows entering 4 digits. Steps to reproduce: 1. Try to connect with SIM that requires e.g. PUK-code (most normal length is 8 digits) 2. Applet asks for PUK-code, but only allows entering 4 digits 3. fail Actual results: Expected results: The dialog should allow entering up to 8 digits. Does this happen every time? Yes. Other information:
(Originally reported at https://bugs.launchpad.net/ubuntu/+source/network-manager-applet/+bug/318265 )
Yup, should get fixed.
Actually the change required is a bit larger. According to GSM 07.07 section 8.3, if the SIM card asks for the PUK-code it is required that a new PIN-code be set. Me and a buddy will work on a revised patch, that asks for the PUK-code, and a new PIN-code, if required. Just wondering, since the applet actually stores the PUK-code in the keyring, if there is any instance where the PUK-code is required under regular usage?
We should actually kill PUK handling in NM. What are the cases where the PUK is required other than when you've fubared your PIN by doing it wrong 3 times? NM probably shouldn't be sending the PUK to the card more than once without explicit user interaction, since doing so can screw your SIM and then you have to call your carrier. Maybe it shouldn't be handling PUK at all, but when the PUK is required, add a new NM_DEVICE_STATE_REASON_* code for "PUK required" and allow user apps to handle that interaction in a more controlled manner.
Being able to enter 5-8 digits for PINs should have a higher priority than PUK management, it happens more often.
At least part of this fix is in applet commit 98965c4b7cb322a4e9248d63ab2b5746a43c55b3. I'm not yet sure if the other bits of the stack (NM and MM) will need any changes, but I doubt it since they don't really care about the length of the PIN. Leaving open until I know stuff works.
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).