[Patch] SMTP, POP: fall back to auth w/ password if GSS failed

Albrecht Dreß <[email protected]>
Newsgroups gmane.comp.gnome.apps.balsa
Message-ID <[email protected]>
Hi all,

attached is a patch which addresses the following issue:
- the POP or SMTP server advertises Kerberos (GSSAPI) authentication, and Balsa is built w/ GSS support
- user does not have a Kerberos ticket (but a password)
- GSS auth fails, and Balsa stops authentication.

This /might/ be the issue detected by John Jack Doe recently.

With the patch, if GSS is supported and available, Balsa will first emit the signal to get the user name, but not the password, and try GSS authentication.

If the GSS authentication fails, the signal is emitted again, but now /with/ requesting the password, and the most secure of the other auth methods is tried.

This avoids the situation outlined above, whilst avoiding unnecessary password requests.

Opinions?

Best,
Albrecht.
---
Patch details:
- libnetclient/net-client-pop.c, libnetclient/net-client-smtp.c: retry auth with password if GSS auth failed; small performance improvement checking the various auth methods
- libnetclient/net-client-utils.c: print more (internal) debug info about failed GSS operations, fix nit-picks

_______________________________________________
balsa-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/balsa-list
gss-auth-fallback.diff.bz2 (application/x-bzip, 2.1 KB) - not displayed
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcCEPemLFTtyGf4zATKlvDmfn2fgFAlwXrR0ACgkQTKlvDmfn
2fiovggArgqVUkLmMvHIQ47pa/WR4moimmUZLgB04QVHon992bZLqdEv5EFC/3NJ
WpPVsYSALMS+CzpHz6jb1tx9SY3vbsRV9ut8M5Jyanoj36NzXKGoT8Wx4fOdBNfS
c2jtdeE6cZnLJpWZgU7Wg26yWrqqz0Uwha99sFxDt3S6C8vXX6X8JfQruv/bDS7y
RHzhh6aASQC20gSIhVHdZ1YTnPHQbxvOmrRJB0OBdnKgv+B2oqcjzbBI4TfhQLw3
YfwdFQL6wyuALLalW202lr83ugH9ZowLUNiOgnRkLI9ujGyYpKn78Ll+vvZZIuqH
N3AiTAE+Gj82idD1j5ggAUkw9/Uhhg==
=rDsE
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.