Option B: deb or rpm package behind Caddy¶
Download limdm-server_<version>_linux_<arch>.deb or .rpm and limdm_<version>_SHA256SUMS
from the releases and verify:
sha256sum -c --ignore-missing limdm_0.16.0_SHA256SUMS
sudo apt install ./limdm-server_0.16.0_linux_amd64.deb # Debian, Ubuntu
sudo dnf install ./limdm-server_0.16.0_linux_amd64.rpm # Fedora, CentOS Stream, RHEL rebuilds
sudo zypper install --allow-unsigned-rpm ./limdm-server_0.16.0_linux_amd64.rpm # openSUSE, SLES (verified by the checksum)
The package installs the binary, a systemd unit (limdm-server.service, runs as user
limdm), the sysusers entry and /etc/limdm-server/server.env (files). An
upgrade restarts a running service.
PostgreSQL¶
Local database with peer authentication over the unix socket:
sudo apt install postgresql
sudo -u postgres createuser limdm
sudo -u postgres createdb -O limdm limdm
Remote database: postgres://limdm@db.example.com/limdm?sslmode=verify-full.
server.env¶
Edit /etc/limdm-server/server.env (owner root:limdm, mode 0640). The packaged file is
an example for a console with its own certificate; remove LIMDM_TLS_CERT and
LIMDM_TLS_KEY when Caddy runs on the same host. Minimal setup behind Caddy:
LIMDM_DATABASE_URL=postgres:///limdm?host=/var/run/postgresql
LIMDM_LISTEN=127.0.0.1:8080
LIMDM_PUBLIC_URL=https://mdm.example.com
LIMDM_AGENT_URL=https://mdm.example.com:8444
LIMDM_AGENT_LISTEN=:8444
LIMDM_SESSION_KEY=<openssl rand -hex 32>
LIMDM_LOCAL_LOGIN=true
Without LIMDM_TLS_CERT the console only listens on loopback; Caddy provides HTTPS. A proxy
on another host needs LIMDM_TRUSTED_PROXIES. All variables:
Server.
Caddy¶
/etc/caddy/Caddyfile (deploy/Caddyfile):
First account¶
sudo sh -c 'umask 077; sudo -u limdm limdm-server local-admin -env /etc/limdm-server/server.env add admin > /root/limdm-admin.txt'
The file contains the password and the TOTP secret (-out FILE writes a new 0600 file
instead). reset, disable, enable and list manage existing local accounts;
-role helpdesk|auditor sets another role (Local admins).