apt install python3-ldap # or pip install python-ldap