forked from TrueCloudLab/rclone
Add domain option for openstack (v3 auth)
This commit is contained in:
parent
8af68e779f
commit
640d7bd365
2 changed files with 6 additions and 0 deletions
|
@ -72,6 +72,8 @@ Choose a number from below, or type in your own value
|
||||||
6 / OVH
|
6 / OVH
|
||||||
\ "https://auth.cloud.ovh.net/v2.0"
|
\ "https://auth.cloud.ovh.net/v2.0"
|
||||||
auth> 1
|
auth> 1
|
||||||
|
User domain - optional (v3 auth)
|
||||||
|
domain> Default
|
||||||
Tenant name - optional
|
Tenant name - optional
|
||||||
tenant>
|
tenant>
|
||||||
Region name - optional
|
Region name - optional
|
||||||
|
|
|
@ -61,6 +61,9 @@ func init() {
|
||||||
Help: "OVH",
|
Help: "OVH",
|
||||||
Value: "https://auth.cloud.ovh.net/v2.0",
|
Value: "https://auth.cloud.ovh.net/v2.0",
|
||||||
}},
|
}},
|
||||||
|
}, {
|
||||||
|
Name: "domain",
|
||||||
|
Help: "User domain - optional (v3 auth)",
|
||||||
}, {
|
}, {
|
||||||
Name: "tenant",
|
Name: "tenant",
|
||||||
Help: "Tenant name - optional",
|
Help: "Tenant name - optional",
|
||||||
|
@ -155,6 +158,7 @@ func swiftConnection(name string) (*swift.Connection, error) {
|
||||||
UserAgent: fs.UserAgent,
|
UserAgent: fs.UserAgent,
|
||||||
Tenant: fs.ConfigFile.MustValue(name, "tenant"),
|
Tenant: fs.ConfigFile.MustValue(name, "tenant"),
|
||||||
Region: fs.ConfigFile.MustValue(name, "region"),
|
Region: fs.ConfigFile.MustValue(name, "region"),
|
||||||
|
Domain: fs.ConfigFile.MustValue(name, "domain"),
|
||||||
ConnectTimeout: 10 * fs.Config.ConnectTimeout, // Use the timeouts in the transport
|
ConnectTimeout: 10 * fs.Config.ConnectTimeout, // Use the timeouts in the transport
|
||||||
Timeout: 10 * fs.Config.Timeout, // Use the timeouts in the transport
|
Timeout: 10 * fs.Config.Timeout, // Use the timeouts in the transport
|
||||||
Transport: fs.Config.Transport(),
|
Transport: fs.Config.Transport(),
|
||||||
|
|
Loading…
Reference in a new issue