GNOME Bugzilla – Bug 745012
"nmcli --ask" shows password in clear text
Last modified: 2016-03-18 08:28:46 UTC
The command line tool of network manager shows the password in clear text if I start it with: nmcli --ask c up eduroam Eduroam is secured with WPA2 Enterprise -- PEAP -- MSCHAPv2 It would be great to show stars (*) or hashes (#).
I found out that the secret object is generated as desired: secret = nm_secret_agent_simple_secret_new (_("Password"), NM_SETTING (s_8021x), NM_SETTING_802_1X_PASSWORD, TRUE); <-- the boolean to hide the password? [nm-secret-agent-simple.c l:214ff] My guess would be that the call back function doesn't check the password boolean correctly. ... And it is exactly as I thought: pwd = nmc_readline ("%s (%s): ", secret->name, secret->prop_name); [client/cli/common.c l:929] The callback function doas not check if the secret "password value" is true. I did some googleing and gnu readline is not suppost to hide characters on user input. So it would be nice to have it case sensitive in the nmc_readline() function.
*** This bug has been marked as a duplicate of bug 759116 ***