You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Tellier Benoit (JIRA)" <se...@james.apache.org> on 2017/06/22 09:51:00 UTC
[jira] [Created] (JAMES-2064) Can not authenticate with curl
Tellier Benoit created JAMES-2064:
-------------------------------------
Summary: Can not authenticate with curl
Key: JAMES-2064
URL: https://issues.apache.org/jira/browse/JAMES-2064
Project: James Server
Issue Type: Bug
Components: IMAPServer
Reporter: Tellier Benoit
Here is the recorded commands:
{code:java}
benwa@horizon ~/Documents/apache/onssd/james-project (git)-[JAMES-1789-2] % curl -u btellier@linagora.com -v imap://openpaas.linagora.com/INBOX/
Enter host password for user 'btellier@linagora.com':
* Trying 109.197.180.230...
* TCP_NODELAY set
* Connected to openpaas.linagora.com (109.197.180.230) port 143 (#0)
< * OK JAMES IMAP4rev1 Server Server james.openpaas.linagora.com is ready.
> A001 CAPABILITY
< * CAPABILITY NAMESPACE QUOTA IMAP4rev1 QRESYNC UNSELECT WITHIN SASL-IR ACL ENABLE SEARCHRES UIDPLUS CHILDREN AUTH=PLAIN LITERAL+ MOVE ANNOTATION ESEARCH IDLE I18NLEVEL=1 STARTTLS
< A001 OK CAPABILITY completed.
> A002 AUTHENTICATE PLAIN YnRlmQ=
< A002 NO AUTHENTICATE Not an admin
* Closing connection 0
{code}
The corresponding log is: https://openpaas.linagora.com/viewlogs/app/kibana#/doc/logs-*/logs-2017-06-15/tester/?id=AVyq9YEGzFPejjEzie5O
Apparently IMAP command parsing for authenticate leads to thinks it is delegation, when it is not...
Digging a bit more it turns out the login was on the form "\0user\0user\0password"
So self delegation...
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org