$ pip3 install -r requirements.txt
$ sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev -y
$ nano ~/.bashrc
Add following Environmental Variables to your .bashrc file
export AUTH_AD_HOST="IP of your AD Server/Host"
export AUTH_AD_PORT="AD Server/Host Port"
export AUTH_AD_DOMAIN="AD Domain"
export AUTH_AD_DN="Search Path in the Tree"
# Details of Bind User
export AUTH_AD_USERNAME="Username of Bind User"
export AUTH_AD_PASSWORD="Password of Bind User in Base64 encooding"
$ python3 app.py
Host: localhost(Default)
Port: 5000(Default)
API: /api/ldap/login
Method: GET
Params:
- username: Username of User (XX-xxxx)
- password: Password of User in base64 encoding
API: /api/ldap/details
Method: GET
Params:
- username: Username of User (XX-xxxx)