Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kousu/radicale-bsdauth
OpenBSD's authenticate(3) for https://radicale.org/
https://github.com/kousu/radicale-bsdauth
Last synced: 16 days ago
JSON representation
OpenBSD's authenticate(3) for https://radicale.org/
- Host: GitHub
- URL: https://github.com/kousu/radicale-bsdauth
- Owner: kousu
- Created: 2022-04-19T22:25:29.000Z (almost 3 years ago)
- Default Branch: trunk
- Last Pushed: 2022-04-29T19:50:52.000Z (over 2 years ago)
- Last Synced: 2024-12-24T13:48:52.922Z (29 days ago)
- Language: Python
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# OpenBSD Authentication plugin for Radicale
This connects a [radicale](https://radicale.org/) install to the local
OpenBSD's [authenticate(3)](https://man.openbsd.org/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](#install-radicale-3-on-openbsd) (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`](https://radicale.org/v3.html#configuration) 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 <&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
* [`radicale-auth-PAM`](https://pypi.org/project/radicale-auth-PAM/):
OpenBSD's [authenticate(3)](https://man.openbsd.org/authenticate.3) is like
Linux's [PAM(8)](https://man.archlinux.org/man/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.