diff options
author | Steve Holme <steve_holme@hotmail.com> | 2012-05-27 19:09:38 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2012-05-27 19:09:38 +0100 |
commit | c267c53017bc37d34be23f885f34776659a13c43 (patch) | |
tree | 3d6b17c3416814c80eeb6cffefe15fb3a0393d9f /tests/data/test809 | |
parent | dc454bd16b546871b9910ec4d4b0ade899c43e56 (diff) |
pop3: Added support for SASL based authentication mechanism detection
Added support for detecting the supported SASL authentication mechanisms
via the AUTH command. There are two ways of detecting them, either by
using the AUTH command, that will return -ERR if not supported or by
using the CAPA command which will return SASL and the list of mechanisms
if supported, not include SASL if SASL authentication is not supported
or -ERR if the CAPA command is not supported. As such it seems simpler
to use the AUTH command and fallback to normal clear text authentication
if the the command is not supported.
Additionally updated the test cases to return -ERR when the AUTH command
is encountered. Additional test cases will be added when support for the
individual authentication mechanisms is added.
Diffstat (limited to 'tests/data/test809')
-rw-r--r-- | tests/data/test809 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/data/test809 b/tests/data/test809 index e9f22dd83..7cd04c891 100644 --- a/tests/data/test809 +++ b/tests/data/test809 @@ -11,6 +11,7 @@ FAILURE # Server-side <reply> <servercmd> +REPLY AUTH -ERR unsupported command
REPLY LIST -ERR no such message </servercmd> </reply> @@ -36,6 +37,7 @@ pop3://%HOSTIP:%POP3PORT/809 -l -u user:secret 56 </errorcode> <protocol> +AUTH
USER user
PASS secret
LIST 809
|