blob: 439def3484088de341c5a16d880678cfa2943ed7 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001Long: user
2Short: u
3Arg: <user:password>
4Help: Server user and password
5---
6Specify the user name and password to use for server authentication. Overrides
7--netrc and --netrc-optional.
8
9If you simply specify the user name, curl will prompt for a password.
10
11The user name and passwords are split up on the first colon, which makes it
12impossible to use a colon in the user name with this option. The password can,
13still.
14
15When using Kerberos V5 with a Windows based server you should include the
16Windows domain name in the user name, in order for the server to successfully
17obtain a Kerberos Ticket. If you don't then the initial authentication
18handshake may fail.
19
20When using NTLM, the user name can be specified simply as the user name,
21without the domain, if there is a single domain and forest in your setup
22for example.
23
24To specify the domain name use either Down-Level Logon Name or UPN (User
25Principal Name) formats. For example, EXAMPLE\\user and user@example.com
26respectively.
27
28If you use a Windows SSPI-enabled curl binary and perform Kerberos V5,
29Negotiate, NTLM or Digest authentication then you can tell curl to select
30the user name and password from your environment by specifying a single colon
31with this option: "-u :".
32
33If this option is used several times, the last one will be used.