Metadata-Version: 2.1
Name: mprov-ldap-manager
Version: 0.0.1
Summary: An add-on to the mPCC to enable it to manage an LDAP directory.
Home-page: https://github.com/mprov-ng/mprov_ldap_manager
Author: Jason Williams
Author-email: jasonw@jhu.edu
Project-URL: Bug Tracker, https://github.com/mprov-ng/mprov_ldap_manager/issues
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: POSIX :: Linux
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: sh
Requires-Dist: mprov-django-ldapdb

# mprov_ldap_manager
This is an mPCC python module add-on that will allow the mPCC to manage an LDAP directory.


# Installation
Follow these easy steps to enable this module in the mPCC

1. Go into `/var/www/mprov_control_center` and run `source bin/activate` from a bash prompt.
2. `pip install mprov_ldap_manager` This will install the python module into your mPCC environment
3. Edit the `/var/www/mprov_control_center/mprov_control_center/settings.py` file and add `mprov_ldap_manager` to the bottom of the `INSTALLED_APPS` array.
4. In the same `settings.py` file, add the following:
```
DATABASES = {
    'ldap': {
        'ENGINE': 'ldapdb.backends.ldap',
        'NAME': 'ldap://ldap.nodomain.org/',
        'USER': 'cn=admin,dc=nodomain,dc=org',
        'PASSWORD': 'some_secret_password',
     },
     'default': {
        # your default DB config
     }
}
DATABASE_ROUTERS = ['ldapdb.router.Router']
'''

`mprov_ldap_manager.middleware.LDAPManagerMiddleware` to the `MIDDLEWARE` array.
5. Run `touch /var/www/mprov_control_center/mprov_control_center/wsgi.py` to refresh the mPCC or restart your webserver.
