Giter Site home page Giter Site logo

Comments (2)

Pectojin avatar Pectojin commented on July 30, 2024

Good idea!

I hadn't really thought about it, but I took at look at it and wasn't too complex.

I added support for a --basic-user and --basic-pass to the login method.

duc login https://duplicati.host.local --basic-user=rune --basic-pass=password

It's a layer on top of the regular authentication, so you can have both:

duc login https://duplicati.host.local --basic-user=rune --basic-pass=password --password=password

or interactively

duc login https://duplicati.host.local --basic-user=rune
Basic auth:
Password:
Login successful

It supports parameter files as usual and of course only prompts for the 2nd password if Duplicati asks.

There is one thing worth mentioning, though. When using basic auth it requires a base64 encoded string 'username:password'. This is stored in the config file, and of course sent over the network to the server.
It's a good deal less secure than the regular login method because it's easier to figure out the password. If your apache host provides SSL then it's more secure, but anyone with access to your config file can easily figure out the password.

from duplicati-client.

Pectojin avatar Pectojin commented on July 30, 2024

I added it to a the new release, 0.3.8, feel free to give it a try.
duplicati_client/releases/tag/0.3.8_beta

from duplicati-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.