connman.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* No password prompt after wrong entry
@ 2022-09-08 13:52 Ariel D'Alessandro
  2022-09-08 14:12 ` John Keeping
  0 siblings, 1 reply; 3+ messages in thread
From: Ariel D'Alessandro @ 2022-09-08 13:52 UTC (permalink / raw)
  To: connman

Hi all,

I have a question regarding the expected behavior on connmanctl.

After trying to connect to a network using a wrong password, connman
returns `connect-failed`. Further attempts to connect won't prompt for a
new password, so it will use the same old wrong one and keep returning
`connect-failed`.

After manually removing the network, re-connecting will prompt for a new
password and the connection will succeed. Is this the expected behavior
or it should automatically prompt after a wrong password entry?

See logs:

```
connmanctl> connect wifi_42ed868596d0_415045525449535f4150_managed_psk
Agent RequestInput wifi_42ed868596d0_415045525449535f4150_managed_psk
  Passphrase = [ Type=psk, Requirement=mandatory ]
Passphrase? 123456789
Agent ReportError wifi_42ed868596d0_415045525449535f4150_managed_psk
  connect-failed
Agent request cancelled by ConnMan
Error
/net/connman/service/wifi_42ed868596d0_415045525449535f4150_managed_psk:
Input/output error

connmanctl> connect wifi_42ed868596d0_415045525449535f4150_managed_psk
Agent ReportError wifi_42ed868596d0_415045525449535f4150_managed_psk
  connect-failed
Agent request cancelled by ConnMan
Error
/net/connman/service/wifi_42ed868596d0_415045525449535f4150_managed_psk:
Input/output error

connmanctl> config wifi_42ed868596d0_415045525449535f4150_managed_psk
--remove

connmanctl> connect wifi_42ed868596d0_415045525449535f4150_managed_psk
Agent RequestInput wifi_42ed868596d0_415045525449535f4150_managed_psk
  Passphrase = [ Type=psk, Requirement=mandatory ]
Passphrase? 12345678
Connected wifi_42ed868596d0_415045525449535f4150_managed_psk
Agent unregistered by ConnMan

connmanctl>
```

Thanks in advance,
Ariel D'Alessandro
--
Collabora Ltd.
www.collabora.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: No password prompt after wrong entry
  2022-09-08 13:52 No password prompt after wrong entry Ariel D'Alessandro
@ 2022-09-08 14:12 ` John Keeping
  2022-09-08 14:22   ` Ariel D'Alessandro
  0 siblings, 1 reply; 3+ messages in thread
From: John Keeping @ 2022-09-08 14:12 UTC (permalink / raw)
  To: Ariel D'Alessandro; +Cc: connman

On Thu, 8 Sep 2022 10:52:11 -0300
Ariel D'Alessandro <ariel.dalessandro@collabora.com> wrote:

> I have a question regarding the expected behavior on connmanctl.
> 
> After trying to connect to a network using a wrong password, connman
> returns `connect-failed`. Further attempts to connect won't prompt for a
> new password, so it will use the same old wrong one and keep returning
> `connect-failed`.
> 
> After manually removing the network, re-connecting will prompt for a new
> password and the connection will succeed. Is this the expected behavior
> or it should automatically prompt after a wrong password entry?

What version of connman are you using?

There is a bug in 1.40 which was fixed by commit fe5c1436 ("agent:
Always inform upper layer via callback") that has precisely the symptoms
you're describing.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: No password prompt after wrong entry
  2022-09-08 14:12 ` John Keeping
@ 2022-09-08 14:22   ` Ariel D'Alessandro
  0 siblings, 0 replies; 3+ messages in thread
From: Ariel D'Alessandro @ 2022-09-08 14:22 UTC (permalink / raw)
  To: John Keeping; +Cc: connman

Hi John,

On 9/8/22 11:12, John Keeping wrote:
> On Thu, 8 Sep 2022 10:52:11 -0300
> Ariel D'Alessandro <ariel.dalessandro@collabora.com> wrote:
> 
>> I have a question regarding the expected behavior on connmanctl.
>>
>> After trying to connect to a network using a wrong password, connman
>> returns `connect-failed`. Further attempts to connect won't prompt for a
>> new password, so it will use the same old wrong one and keep returning
>> `connect-failed`.
>>
>> After manually removing the network, re-connecting will prompt for a new
>> password and the connection will succeed. Is this the expected behavior
>> or it should automatically prompt after a wrong password entry?
> 
> What version of connman are you using?
> 
> There is a bug in 1.40 which was fixed by commit fe5c1436 ("agent:
> Always inform upper layer via callback") that has precisely the symptoms
> you're describing.

That's what I also thought. However, I'm using v1.41 which includes that
fix:

```
$ /usr/sbin/connmand -v
1.41
```

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-08 14:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-08 13:52 No password prompt after wrong entry Ariel D'Alessandro
2022-09-08 14:12 ` John Keeping
2022-09-08 14:22   ` Ariel D'Alessandro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).