Skip to main content

Login to Radicale with your native OpenBSD accounts.

Project description

OpenBSD Authentication plugin for Radicale

This connects a radicale install to the local OpenBSD's authenticate(3) system that it is installed on. It means you can access your calendars with the same password you use for ssh and, perhaps, email, chat, etc.

Installation

This has only been tested against radicale>=3, which is not yet packaged for OpenBSD, so you must install that version manually (below) if it's not already.

Then install the plugin:

doas uv tool install 'radicale>=3' --with radicale-bsdauth

In order to function, you also need to grant radicale access to authenticate(3):

usermod -G auth _radicale

And then tell radicale to use it by editing /etc/radicale/config or /var/lib/radicale/.config/radicale/config to add

[auth]
type = radicale_bsdauth

And restart:

doas rcctl restart radicale

Install Radicale 3 on OpenBSD

(these have been tested for OpenBSD 7.7, but may need adjusting for a different version)

If you are currently using version 2, you should backup your calendars before proceeding because upgrading risks breaking something. It's unlikely, but possible.

doas -u _radicale tar -jcvf - /var/lib/radicale/collections | (umask 027; cat > radicale-collections.tgz) # for example

Then install radicale 3:

doas pkg_add uv
doas UV_TOOL_DIR=/usr/local/lib UV_TOOL_BIN_DIR=/usr/local/bin uv tool install "radicale>=3"

# Set up radicale's environment
# ( these rest of these steps would normally be handled by pkg_add(1) )
doas useradd -d /var/lib/radicale -m -L daemon -r 1..999 _radicale # if you don't already have this user

You need to put this in /etc/rc.d/radicale:

daemon="/usr/local/bin/radicale"
daemon_user="_radicale"

. /etc/rc.d/rc.subr

pexp=".*/python(3)? ${daemon}${daemon_flags:+ ${daemon_flags}}"
rc_reload=NO
rc_bg=YES

rc_cmd $1

and

doas chmod +x /etc/rc.d/radicale

Finally turn it on:

doas rcctl enable radicale
doas rcctl start radicale

You can monitor it with:

tail -f /var/log/daemon | grep radicale

Related Work

  • radicale-auth-PAM:

    OpenBSD's authenticate(3) is like Linux's PAM(8): a way to enable multiple ways to prove your identity, from passwords to LDAP to YubiKeys.

    So radicale-auth-PAM provides the same basic feature to radicale as radicale-bsdauth, and if you're using Linux you should use it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

radicale_bsdauth-1.0.2.dev4.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

radicale_bsdauth-1.0.2.dev4-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file radicale_bsdauth-1.0.2.dev4.tar.gz.

File metadata

  • Download URL: radicale_bsdauth-1.0.2.dev4.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for radicale_bsdauth-1.0.2.dev4.tar.gz
Algorithm Hash digest
SHA256 590b6135e0ae5acf61c17a59f89e9349454f60fe67f222c4991a5308af9a90e4
MD5 c7534d95347227592a24abf2999ca6ec
BLAKE2b-256 a05cdcabf59ffb3c77556605a87ee20bd19b7e5edc7966fd5bbd85a78b5b34cf

See more details on using hashes here.

File details

Details for the file radicale_bsdauth-1.0.2.dev4-py3-none-any.whl.

File metadata

File hashes

Hashes for radicale_bsdauth-1.0.2.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 0ad4be31854ed751d77b4710f04417a38db3a0d9e1c81cb54b2a3451fc2b30ba
MD5 747a7d4d1980f3d78164c659a3d4b46f
BLAKE2b-256 45be42d97e378b0c4b209be1535db47d20fce5509d0c927ffeb5936ec8b525a8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page