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.
If you are currently using version 2, you should backup your calendars before proceeding because this implies doing a migration; but luckily, CalDAV is a pretty stable format and hopefully won't be hurt much by this:
doas pkg_add python3
doas pip install --upgrade pip
doas pip install "radicale>=3"
# ( these rest of these steps would normally be handled by pkg_add )
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"
. /etc/rc.d/rc.subr
rc_start() {
\${rcexec} "\${daemon} \${daemon_flags} &"
}
pexp="/usr/local/bin/python3 /usr/local/bin/radicale"
rc_cmd $1
EOF
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
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
Hashes for radicale-bsdauth-1.0.0rc2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d76a9e02e49d90d1f90546c12c9aa5b4c4af2e9e6119766bb21aed96997f878 |
|
MD5 | f2bae46b5fa2090701f95b3b15827aa5 |
|
BLAKE2b-256 | 7361d27b5004cf1013cc10dc0771a82a9cfcce8d75a14551c2754ef74624d2ab |
Hashes for radicale_bsdauth-1.0.0rc2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f77eac34ad8fe8021c8aa51f6bb88f211d4d3c910d1b7c9ec9bf3f12e59991b |
|
MD5 | d84ecd460dbee4c6ef6125ac9a4e0ce0 |
|
BLAKE2b-256 | 281f24efba4e9cebda8551cfcb1be0575f08bf7b5b68943adb32671367fb1b36 |