An add-on to the mPCC to enable it to manage an LDAP directory.
Project description
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
- Go into
/var/www/mprov_control_center
and runsource bin/activate
from a bash prompt. pip install mprov_ldap_manager
This will install the python module into your mPCC environment- Edit the
/var/www/mprov_control_center/mprov_control_center/settings.py
file and addmprov_ldap_manager
to the bottom of theINSTALLED_APPS
array. - 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',
'BASEDN': 'dc=somedomain,dc=something',
'CONNECTION_OPTIONS': {
ldap.OPT_X_TLS_REQUIRE_CERT: ldap.OPT_X_TLS_NEVER
}
},
'default': {
# your default DB config
}
}
DATABASE_ROUTERS = ['ldapdb.router.Router']
'''
5. Run `touch /var/www/mprov_control_center/mprov_control_center/wsgi.py` to refresh the mPCC or restart your webserver.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for mprov_ldap_manager-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2eaeb03a84217852815cdf593e10441fa9a1aae61f5de922448e29b3bff7b404 |
|
MD5 | 7ec824164f9a96718c49984480d12748 |
|
BLAKE2b-256 | a0f33c5387b01ad4d214d95ee630132577c8092ff573657ee8005999f47875d9 |