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 pip install 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
Install Radicale 3 on OpenBSD
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 python3
doas pip install --upgrade pip
doas pip 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
cat <<EOF | doas tee /etc/rc.d/radicale && doas chmod +x /etc/rc.d/radicale
#!/bin/ksh
daemon="/usr/local/bin/radicale"
daemon_user="_radicale"
daemon_logger="daemon.info"
. /etc/rc.d/rc.subr
rc_start() {
\${rcexec} "\${daemon_logger:+set -o pipefail; }\${daemon} \${daemon_flags}\${daemon_logger:+ 2>&1 |
logger -ip \${daemon_logger} -t \${_name}} \&"
}
# Beware: you need to update this for to the python you actually have installed
pexp="/usr/local/bin/python3.8 /usr/local/bin/radicale"
rc_cmd \$1
EOF
doas rcctl enable radicale
doas rcctl start radicale
Related Work
-
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 toradicale
asradicale-bsdauth
, and if you're using Linux you should use it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file radicale-bsdauth-1.0.1.tar.gz
.
File metadata
- Download URL: radicale-bsdauth-1.0.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3782c789b65e94cb415d50493d540b95faf05bcdaed39f70300dd3822b927a5c |
|
MD5 | 46a74a493f5ea51563c16910c2347607 |
|
BLAKE2b-256 | 35d25ff20d1bbfe874947e68f6bd9085423867963e1a8ebcf3592223e34966ef |
File details
Details for the file radicale_bsdauth-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: radicale_bsdauth-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23e73c9db7969f9d52ff3b5f06443da7288e1ccd6d45a7e53c8bb190fe302edf |
|
MD5 | e788a992c17c677d934d8753d5d3d68f |
|
BLAKE2b-256 | f2980630f288cd79bbdc68bdf3d21eb8332e50d6f3404fdab113688deae8b894 |