Home
last modified time | relevance | path

Searched full:netrc (Results 1 – 25 of 126) sorted by relevance

123456

/external/python/cpython3/Doc/library/
Dnetrc.rst1 :mod:`!netrc` --- netrc file processing
4 .. module:: netrc
5 :synopsis: Loading of .netrc files.
10 **Source code:** :source:`Lib/netrc.py`
14 The :class:`~netrc.netrc` class parses and encapsulates the netrc file format used by
18 .. class:: netrc([file])
20 A :class:`~netrc.netrc` instance or subclass instance encapsulates data from a netrc
22 no argument is given, the file :file:`.netrc` in the user's home directory --
28 the :file:`.netrc` file will raise a :exc:`NetrcParseError` if the file
32 programs that use :file:`.netrc`.
[all …]
/external/bazelbuild-rules_python/python/private/
Dauth.bzl35 in the netrc file for the same host name. After formatting, the result is set
38 Example attribute and netrc for a http download to an oauth2 enabled API using a bearer token:
46 netrc:
65 "netrc": attr.string(
66 doc = "Location of the .netrc file to use for authentication",
71 …"""Utility for retrieving netrc-based authentication parameters for repository download rules used…
77 ctx_attr(struct): The attributes to get the netrc from. When ctx is
91 netrc = getattr(ctx_attr, "netrc", None),
95 if ctx_attr.netrc:
96 netrc = read_netrc(ctx, ctx_attr.netrc)
[all …]
/external/curl/docs/cmdline-opts/
Dnetrc-file.md4 Long: netrc-file
5 Help: Specify FILE for netrc
8 Mutexed: netrc
12 - netrc
16 - --netrc-file netrc $URL
19 # `--netrc-file`
21 Set the netrc file to use. Similar to --netrc, except that you also provide
24 It abides by --netrc-optional if specified.
Dnetrc.md4 Long: netrc
6 Help: Must read .netrc for username and password
9 Mutexed: netrc-file netrc-optional
12 - netrc-file
16 - --netrc $URL
19 # `--netrc`
21 Make curl scan the *.netrc* file in the user's home directory for login name
23 enables user authentication. See *netrc(5)* and *ftp(1)* for details on the
28 On Windows two filenames in the home directory are checked: *.netrc* and
32 A quick and simple example of how to setup a *.netrc* to allow curl to FTP to
Dnetrc-optional.md4 Long: netrc-optional
5 Help: Use either .netrc or URL
6 Mutexed: netrc
11 - netrc-file
13 - --netrc-optional $URL
16 # `--netrc-optional`
18 Similar to --netrc, but this option makes the .netrc usage **optional**
19 and not mandatory as the --netrc option does.
/external/curl/tests/data/
Dtest3817 netrc
36 # using the netrc is mandatory.
39 netrc-optional lets URL creds override netrc
43 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER ftp://mary:drfrank@%HOSTIP:%FTPPORT/
45 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest4804 netrc
21 Reject .netrc with credentials using CRLF for POP3
24 --netrc --netrc-file %LOGDIR/netrc%TESTNUMBER pop3://%HOSTIP:%POP3PORT/%TESTNUMBER
26 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest6805 netrc
23 netrc with quoted password but missing end quote
26 --netrc --netrc-file %LOGDIR/netrc%TESTNUMBER http://user1@http.example/
28 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest1347 netrc
35 FTP (optional .netrc; programmatic user/passwd) dir list PASV
38 # -u overrides netrc which overrides the URL
40 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER -u romulus:rhemus ftp://mary:mark@%HOSTIP:%F…
42 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest4946 netrc
25 skip 'macdef' when parsing netrc
28 --netrc --netrc-file %LOGDIR/netrc%TESTNUMBER ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
30 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest6845 netrc
30 netrc with no login
33 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER http://%HOSTIP:%HTTPPORT/
35 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest20055 netrc
30 netrc match with password only in file, no username. machine follows
33 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER http://%HOSTIP:%HTTPPORT/
35 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest6855 netrc
30 netrc with no login - provided user
33 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER http://user@%HOSTIP:%HTTPPORT/
35 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest6835 netrc
30 netrc with multiple logins - pick second
33 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER http://user2@%HOSTIP:%HTTPPORT/
35 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest6825 netrc
30 netrc with multiple logins - pick first
33 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER http://user1@%HOSTIP:%HTTPPORT/
35 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest6795 netrc
34 netrc with quoted password
37 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER http://%HOSTIP:%HTTPPORT/
39 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest4784 netrc
37 .netrc with multiple accounts for same host
40 --netrc --netrc-file %LOGDIR/netrc%TESTNUMBER -x http://%HOSTIP:%HTTPPORT/ http://debbie@github.com/
42 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest13045 netrc
17 netrc
20 netrc parsing unit tests
23 %LOGDIR/netrc%TESTNUMBER
25 <file name="%LOGDIR/netrc%TESTNUMBER">
Dtest20397 netrc
35 FTP (optional .netrc with 'default' override; no user/pass) dir list PASV
38 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER ftp://%HOSTIP:%FTPPORT/
40 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest1317 netrc
35 FTP (optional .netrc; user/no pass) dir list PASV
38 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER ftp://user2@%HOSTIP:%FTPPORT/
40 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest1307 netrc
36 FTP (optional .netrc; no user/pass) dir list PASV
39 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER ftp://%HOSTIP:%FTPPORT/
41 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest1327 netrc
35 FTP (optional .netrc; user/passwd supplied) dir list PASV
38 --netrc-optional --netrc-file %LOGDIR/netrc%TESTNUMBER ftp://mary:mark@%HOSTIP:%FTPPORT/
40 <file name="%LOGDIR/netrc%TESTNUMBER" >
Dtest3807 netrc
35 pick netrc password based on user name in URL
39 --netrc --netrc-file %LOGDIR/netrc%TESTNUMBER ftp://mary@%HOSTIP:%FTPPORT/
41 <file name="%LOGDIR/netrc%TESTNUMBER" >
/external/curl/docs/libcurl/opts/
DCURLOPT_NETRC.md18 CURLOPT_NETRC - enable use of .netrc
31 usernames and passwords from your *~/.netrc* file, relative to usernames and
34 On Windows, libcurl primarily checks for *.netrc* in *%HOME%*. If *%HOME%* is
56 libcurl ignores the *.netrc* file. This is the default.
60 The use of the *.netrc* file is optional, and information in the URL is to
67 The use of the *.netrc* file is required, and any credential information
75 The **.netrc** file format is simple: you specify lines with a machine name
86 Provides credentials for a host called **name**. libcurl searches the .netrc
108 Note that if this token is present in the .netrc file you really should make
114 rest of the .netrc to still work fine, libcurl properly skips every definition
/external/python/cpython3/Lib/test/
Dtest_netrc.py1 import netrc, os, unittest, sys, textwrap
21 nrc = netrc.netrc(temp_filename)
57 self.assertRaises(netrc.NetrcParseError, self.make_nrc,
95 self.assertRaises(netrc.NetrcParseError, self.make_nrc, item)
282 fn = os.path.join(d, '.netrc')
291 nrc = netrc.netrc()
295 self.assertRaises(netrc.NetrcParseError, netrc.netrc)
304 nrc = netrc.netrc()

123456