2024-05-15 15:20:32 -04:00
|
|
|
---
|
2023-12-11 20:30:44 -05:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
|
|
SPDX-License-Identifier: curl
|
|
|
|
Long: login-options
|
|
|
|
Arg: <options>
|
|
|
|
Protocols: IMAP LDAP POP3 SMTP
|
|
|
|
Help: Server login options
|
|
|
|
Added: 7.34.0
|
|
|
|
Category: imap pop3 smtp auth
|
|
|
|
Multi: single
|
2024-05-15 15:20:32 -04:00
|
|
|
See-also:
|
|
|
|
- user
|
|
|
|
Example:
|
|
|
|
- --login-options 'AUTH=*' imap://example.com
|
2023-12-11 20:30:44 -05:00
|
|
|
---
|
2024-05-15 15:20:32 -04:00
|
|
|
|
|
|
|
# `--login-options`
|
|
|
|
|
2023-12-11 20:30:44 -05:00
|
|
|
Specify the login options to use during server authentication.
|
|
|
|
|
|
|
|
You can use login options to specify protocol specific options that may be
|
|
|
|
used during authentication. At present only IMAP, POP3 and SMTP support login
|
|
|
|
options. For more information about login options please see RFC 2384,
|
|
|
|
RFC 5092 and the IETF draft
|
2024-05-15 15:20:32 -04:00
|
|
|
https://datatracker.ietf.org/doc/html/draft-earhart-url-smtp-00
|
2023-12-11 20:30:44 -05:00
|
|
|
|
2024-05-15 15:20:32 -04:00
|
|
|
Since 8.2.0, IMAP supports the login option `AUTH=+LOGIN`. With this option,
|
|
|
|
curl uses the plain (not SASL) `LOGIN IMAP` command even if the server
|
2023-12-11 20:30:44 -05:00
|
|
|
advertises SASL authentication. Care should be taken in using this option, as
|
|
|
|
it sends your password over the network in plain text. This does not work if
|
2024-05-15 15:20:32 -04:00
|
|
|
the IMAP server disables the plain `LOGIN` (e.g. to prevent password
|
|
|
|
snooping).
|