On Thu, 2016-10-20 at 21:13 +0000, Stéphane Boucher wrote: > Thanks for the info. > > The strange thing is that if I call ActivateConnection a second time, > it works without a pop up. > > My scenario is: > 1. ActivateConnection adhoc > 2. ActivateConnection of an existing wireless setting -> FAILS > 3. ActivateConnection as in (2) -> succeeds without popup > > All the settings have the correct secrets already. Maybe it has > something to do with switching from adhoc to infrastructure. > > I'll see what I can find with gdb.
The interesting pieces would be NM logs and wpa_supplicant debug logging. What kernel wifi driver too? Dan > (BTW, Ubuntu 16.04.1 as it NM 1.2.2) > > > STÉPHANE BOUCHER > Consultant software > > > D-BOX Technologies Inc. | A. 2172 de la Province, Longueuil, QC J4G > 1R7 CANADA | T. 450-442-3003 | D. | W. d-box.com > > -----Message d'origine----- > De : Dan Williams [mailto:[email protected]] > Envoyé : October 20, 2016 4:34 PM > À : Stéphane Boucher <[email protected]>; networkmanager-list@gnome. > org > Objet : Re: Previnting "Authentication required by wireless" popup > > On Thu, 2016-10-20 at 19:48 +0000, Stéphane Boucher wrote: > > > > Where in the NM code is the nm-applet contacted ? > > It ends up in src/settings/nm-settings-connection.c which calls the > NMAgentManager in src/settings/nm-agent-manager.c > at nm_agent_manager_get_secrets(), which loops through registered > agents (like applets in the user session). > > Typically your application would include the secrets it already has > when creating the connection, and make sure to set no flags on the > secrets. That causes NM to store them in system settings (in > /etc/NetworkManager/system-connections) and to use that secret > instead > of asking the user. > > However, it looks like NM might ask the user for an updated password > if > the existing one is known to be incorrect. > > Dan > > > > > > > STÉPHANE BOUCHER > > Consultant software > > > > D-BOX Technologies Inc. | A. 2172 de la Province, Longueuil, QC J4G > > 1R7 CANADA | T. 450-442-3003 | W. d-box.com<http://www.d-box.com> > > > > De : networkmanager-list [mailto:networkmanager-list-bounces@gnome. > > or > > g] De la part de Stéphane Boucher > > Envoyé : October 20, 2016 11:35 AM > > À : [email protected] > > Objet : Previnting "Authentication required by wireless" popup > > > > Is there anyway to avoid this popup? > > > > I have an application that has to activate a given wireless setup > > via > > the NetworkManager without human intervention, so I’d need to > > prevent > > this popup from showing up. > > > > (I’m on Ubuntu 16.04.1) > > > > Thanks, > > > > STÉPHANE BOUCHER > > Consultant software > > > > D-BOX Technologies Inc. | A. 2172 de la Province, Longueuil, QC J4G > > 1R7 CANADA | T. 450-442-3003 | W. d-box.com<http://www.d-box.com> > > > > AVIS : Ce courriel contient des renseignements confidentiels. Si > > vous > > n'êtes pas le véritable destinataire, la diffusion ou l'usage de ce > > courriel, des renseignements qu'il contient ou des documents qui > > lui > > sont joints pourrait être illégal. Il est donc strictement interdit > > de les diffuser ou de les utiliser. Si vous avez reçu ce courriel > > par > > erreur, nous vous saurions gré d’en aviser l'expéditeur > > immédiatement > > et de le supprimer sans le lire, l'imprimer, le sauvegarder ou le > > diffuser. Nous vous remercions de votre aimable collaboration. > > > > NOTICE: This e-mail contains confidential information. If you are > > not > > the intended recipient, any disclosure or other use of this e-mail > > or > > the information contained herein or attached hereto may be unlawful > > and is strictly prohibited. If you have received this e-mail in > > error, please notify the sender immediately and delete this e-mail > > without reading, printing, copying or forwarding it to anyone. > > Thank > > you for your kind cooperation. > > _______________________________________________ > > networkmanager-list mailing list > > [email protected] > > https://mail.gnome.org/mailman/listinfo/networkmanager-list _______________________________________________ networkmanager-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/networkmanager-list
