1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-10 04:06:47 +00:00

build: LDAP login's packages are optional

django-auth-ldap, python-ldap and pyasn1 move to
conf/requirements-ldap.txt. Installs without LDAP no longer need the
openldap and sasl headers that pip builds python-ldap with; the
installer and the README's system packages drop them, and the README's
LDAP section installs them with that file. The settings already work
without the module.

The Docker image and dev/requirements.txt keep LDAP, so CI still builds
and audits python-ldap.
This commit is contained in:
catborise 2026-10-18 22:32:54 +03:00
parent 41468c700d
commit 5c68050ce0
6 changed files with 30 additions and 17 deletions

View file

@ -0,0 +1,6 @@
# LDAP login (README: LDAP); pip builds python-ldap against the system's
# openldap and sasl headers
django-auth-ldap==5.3.0
# the venv can otherwise keep older distro copies (openSUSE 15.6)
python-ldap>=3.4.5
pyasn1>=0.6.4

View file

@ -2,10 +2,6 @@ Django==5.2.18
django_bootstrap5==26.3
django-bootstrap-icons==0.9.0
django-otp==1.7.4
django-auth-ldap==5.3.0
# the installer's venv can otherwise keep older distro copies (openSUSE 15.6)
python-ldap>=3.4.5
pyasn1>=0.6.4
# for django-bootstrap-icons and websockify; a host's python3-requests would
# otherwise bring idna, requests and urllib3 with advisories
idna>=3.15