Linux Clients
The Active Directory can also be managed with Python
from a Linux client.
For this the LDAP interface module python-ldap is used, because Active Directory is also based on the Lightweight Directory Access Protocol (LDAP).
The user logged on to the Linux client does not yet require any administrative authorizations on the AD. Authentication takes place in the Python program using python-ldap.
Install Python IDLE
Python3 is preinstalled on most Linux distributions.
But there is need for an Integrated Development Environment IDE (editor etc.). There are some IDEs for Python. We choose the very lean IDLE (Integrated Development and Learning Environment).
On Debian based distributions open console and type
$ sudo apt-get install idle3
Start it with
$ idle
Required libraries
python3-ldap
python3-ldap provides an object-oriented API to access LDAP
directory servers from Python3 programs.
Documentation is here: https://pypi.org/project/python3-ldap/
On Debian based distributions open console and type
$ sudo apt-get install python3-ldap
$ sudo apt-get install python3-ldap