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 email.
If you haven't looked into it before, authenticate(3) is like Linux's PAM(8) -- a way to log in with multiple ways to prove your identity, from passwords to LDAP to YubiKeys.
Installation
This has only been tested against radicale>=3, which is not yet packaged for OpenBSD, so you must install that version manually:
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
cat <<EOF | doas tee /etc/rc.d/radicale && 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
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.0rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eed05e85ae41efec2e0acf17fe1873ea4a7e63b07596f9cd937d0f596f86980c |
|
MD5 | fb54b5553ee6538bbd15f5c2a01a91bd |
|
BLAKE2b-256 | c53d547b755a583d90832567c9b25e779ff06af33a72f4d5495ffb03e75cb873 |
Hashes for radicale_bsdauth-1.0.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14512639c89c52dc10e701b11be3348819badae7e1661073b641e93cbb605a04 |
|
MD5 | 68de06070ec2a6b07c882a8d960ba1a6 |
|
BLAKE2b-256 | ea4db6d34edc4404d6282017b324458ab33c190ab0386e34fae9a5ad24ac4c00 |