Skip to contentSkip to conversation

No password prompt after wrong entry

DISCUSSION Ariel D'Alessandro 2 participants 3 messages Sep 8, 2022

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 10 lines · On Thu, 8 Sep 2022 10:52:11 -0300 Ariel D'Alessandro…

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.

#2 lore raw

Hi John,

Quoted 14 lines · John Keeping
Quoted 10 lines · On Thu, 8 Sep 2022 10:52:11 -0300 Ariel D'Alessandro…

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?

Quoted 5 lines

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
```