Skip to content

Instantly share code, notes, and snippets.

View remz1337's full-sized avatar

Rémi Bédard-Couture remz1337

View GitHub Profile
@remz1337
remz1337 / deb11vaultwardenInstall.md
Created June 6, 2022 16:35
Debian 11 Vaultwarden install (no docker)
@remz1337
remz1337 / ldap-auth.py
Created May 28, 2022 02:45 — forked from rechner/ldap-auth.py
LDAP Auth script for HomeAssistant
import os
from ldap3 import Server, Connection, ALL, core
# XXX: Update these with settings apropriate to your environment:
# (I use FreeIPA and an homeassistant group assignment)
SERVER = "ipa.example.com"
USERDN = "uid={},cn=users,cn=accounts,dc=example,dc=com"
TIMEOUT = 3
BASEDN = USERDN
SCOPE = "base"