lfos / calcurse

A text-based calendar and scheduling application
https://calcurse.org
BSD 2-Clause "Simplified" License
990 stars 94 forks source link

PasswordCommand not working #457

Closed letscho123 closed 11 months ago

letscho123 commented 1 year ago

Version information. 4.8.0

Bug description. When I run calcurse-caldav --init=keep-remote I get the error: error: Unexpected config key in section Auth: PasswordCommand

Here is the relevant section of my config file:

# Credentials for HTTP Basic Authentication (if required).
# Set `Password` to your password in plaintext (unsafe),
# or `PasswordCommand` to a shell command that retrieves it (recommended).
[Auth]
Username = user
#Password = password
PasswordCommand = pass baikal

When I uncomment the [Auth] section I get the output:

warning: Dry run; nothing is imported/exported. Add "DryRun = No" to the
warning: [General] section in the configuration file to enable synchronization.
Connecting to localhost:37358...
Removing all local calcurse objects...
error: The server at localhost:37358 replied with HTTP status code 401
error: (Unauthorized) while trying to access http://localhost:37358/user/.

Am I doing something wrong?

lfos commented 1 year ago

Support for the PasswordCommand option has been merged ~1.5 weeks ago and is not part of any release yet.

Aresime commented 1 year ago

I tried this today and had no problems. Do you still have issues?

Gavilaan commented 1 year ago

Having the same problem. Running 4.8.1 against a davical server. It works fine if i put my password into the configfile, produces a 401 when i use the the PasswordCommand. The apacheserver in front of davical logs a "password mismatch"

[Auth]
Username = trupp
PasswordCommand = pass flik

pass flik

at the console shows the correct password.

Any idea? Thanks Gav

eggersn commented 1 year ago

@Gavilaan this seems to be caused by the issue described in #473

Maaxxs commented 11 months ago

fixed in d4eb9f85d07351e184ba16ff91c327425653d3e9