Essas saídas de log são todas do mesmo segundo, o que acontece a cada minuto ou mais desde a inicialização até 5min quando finalmente se conecta por conta própria? Parece que alguns agentes de autenticação não estão sendo executados, mas reiniciar o NetworkManager o faz ...
...secrets are required.
...device (wlp2s0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
...device (wlp2s0): No agents were available for this request.
...device (wlp2s0): state change: need-auth -> failed (reason 'no-secrets', sys-iface-state: 'managed')
Eu não tenho um sistema semelhante para verificar, mas de acordo com Gerenciador de rede da archwiki: Conecte-se à rede com segredo na inicialização :
By default, NetworkManager will not connect to networks requiring a secret automatically on boot. This is because it locks such connections to the user who makes it by default, only connecting after they have logged in. To change this, do the following:
Right click on the nm-applet icon in your panel and select Edit Connections and open the Wireless tab
Select the connection you want to work with and click the Edit button
Check the boxes “Connect Automatically” and “Available to all users”
Log out and log back in to complete.
6.6 O desbloqueio de chaveiro após o login também pode ser interessante se o acima não funcionar.
NetworkManager requires access to the login keyring to connect to networks requiring a secret. Under most circumstances, this keyring is unlocked automatically at login, but if it isn't, and NetworkManager isn't connecting on login, you can try the following.
GNOME
Note: The following method is dated and known not to work on at least one machine!
-
In /etc/pam.d/gdm
(or your corresponding daemon in /etc/pam.d
), add these lines at the end of the "auth" and "session" blocks if they do not exist already:
auth optional pam_gnome_keyring.so
session optional pam_gnome_keyring.so auto_start
-
In /etc/pam.d/passwd
, use this line for the 'password' block:
password optional pam_gnome_keyring.so
Next time you log in, you should be asked if you want the password to be unlocked automatically on login.
SLiM login manager
See SLiM#Gnome Keyring.
Troubleshooting
While you may type both values at connection time, kdeplasma-applets-plasma-nm[broken link: archived in aur-mirror] 0.9.3.2-1 and above are capable of retrieving OpenConnect username and password directly from KWallet.
Open "KDE Wallet Manager" and look up your OpenConnect VPN connection under "Network Management|Maps". Click "Show values" and enter your credentials in key "VpnSecrets" in this form (replace username and password accordingly):
form:main:username%SEP%username%SEP%form:main:password%SEP%password
Next time you connect, username and password should appear in the "VPN secrets" dialog box.
[FYI, descobriu que pesquisando agente de segredos do NetworkManager ]