user.d 1.3 KB

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