Hello Brian,
Thank you for the prompt answer !
Actually, I've installed it on the virtualenv and created the local_requirements.txt file :
(venv) netbox@netbox:/opt/netbox$ sudo -H pip3 install django-auth-ldap
Collecting django-auth-ldap
Downloading
https://files.pythonhosted.org/packages/e3/49/2297161849f1133ddafd8f81e6e48323db100fda7b4cd211cf7a9a453d2f/django_auth_ldap-2.2.0-py3-none-any.whlRequirement already satisfied: python-ldap>=3.1 in /usr/local/lib/python3.6/dist-packages (from django-auth-ldap)
Requirement already satisfied: Django>=1.11 in /usr/local/lib/python3.6/dist-packages (from django-auth-ldap)
Requirement already satisfied: pyasn1-modules>=0.1.5 in /usr/lib/python3/dist-packages (from python-ldap>=3.1->django-auth-ldap)
Requirement already satisfied: pyasn1>=0.3.7 in /usr/lib/python3/dist-packages (from python-ldap>=3.1->django-auth-ldap)
Requirement already satisfied: asgiref~=3.2.10 in /usr/local/lib/python3.6/dist-packages (from Django>=1.11->django-auth-ldap)
Requirement already satisfied: pytz in /usr/local/lib/python3.6/dist-packages (from Django>=1.11->django-auth-ldap)
Requirement already satisfied: sqlparse>=0.2.2 in /usr/local/lib/python3.6/dist-packages (from Django>=1.11->django-auth-ldap)
Installing collected packages: django-auth-ldap
Successfully installed django-auth-ldap-2.2.0
netbox@netbox:/opt/netbox$ cat local_requirements.txt
django-auth-ldap
netbox@netbox:/opt/netbox$ cat /etc/systemd/system/netbox.service
[Unit]
Description=NetBox WSGI Service
Documentation=
https://netbox.readthedocs.io/en/stable/After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=netbox
Group=netbox
PIDFile=/var/tmp/netbox.pid
WorkingDirectory=/opt/netbox
ExecStart=
/opt/netbox/venv/bin/gunicorn --pid /var/tmp/netbox.pid --pythonpath /opt/netbox/netbox --config /opt/netbox/gunicorn.py netbox.wsgi
Restart=on-failure
RestartSec=30
PrivateTmp=true
[Install]
WantedBy=multi-user.target