admin:services:webldap
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
admin:services:webldap [2013/12/13 15:01] – admin:webldap renamed to admin:services:webldap (Réorganisation) zertrin | admin:services:webldap [2017/11/20 07:40] (Version actuelle) – chirac | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | **webldap** est hébergé sur hexagon dans ''/ | + | [[: |
+ | |||
+ | |||
+ | ====== CETTE PAGE EST OBSOLETE ======= | ||
+ | |||
+ | **webldap** est hébergé sur hexagon | ||
===== Installation ===== | ===== Installation ===== | ||
- | ==== Dépendances ==== | + | ==== Dépendances |
- | | + | |
- | pip install ldapom | + | |
==== Code ==== | ==== Code ==== | ||
Ligne 13: | Ligne 17: | ||
git clone https:// | git clone https:// | ||
- | Ensuite, copier '' | + | Ensuite, copier '' |
cd / | cd / | ||
- | | + | |
- | python manage.py migrate | + | python manage.py migrate |
chown -R www-data: / | chown -R www-data: / | ||
==== Apache ==== | ==== Apache ==== | ||
- | aptitude install libapache2-mod-wsgi | + | aptitude install libapache2-mod-wsgi-py3 |
Vérifier que le module est chargé : | Vérifier que le module est chargé : | ||
Ligne 36: | Ligne 40: | ||
===== Configuration ===== | ===== Configuration ===== | ||
- | <file python | + | <file python |
- | # Local settings | + | DEBUG = True |
- | + | ||
- | DEBUG = False | + | |
TEMPLATE_DEBUG = DEBUG | TEMPLATE_DEBUG = DEBUG | ||
+ | |||
+ | ALLOWED_HOSTS = [ | ||
+ | ' | ||
+ | ] | ||
DATABASES = { | DATABASES = { | ||
' | ' | ||
- | ' | + | ' |
- | ' | + | ' |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
} | } | ||
} | } | ||
# Make this unique, and don't share it with anybody. | # Make this unique, and don't share it with anybody. | ||
- | SECRET_KEY = 'secret' | + | SECRET_KEY = '' |
+ | # Absolute paths to template directories | ||
TEMPLATE_DIRS = ( | TEMPLATE_DIRS = ( | ||
- | # Put strings here, like "/home/html/ | + | '/srv/webldap/ |
- | # Always use forward slashes, even on Windows. | + | |
- | # Don't forget to use absolute paths, not relative paths. | + | |
) | ) | ||
- | |||
- | # Settings specific to ' | ||
# SMTP relay (host and port) to use for confirmation mails | # SMTP relay (host and port) to use for confirmation mails | ||
Ligne 68: | Ligne 67: | ||
EMAIL_PORT = 25 | EMAIL_PORT = 25 | ||
- | # Address to appear in From field | + | # Email `From` field |
EMAIL_FROM = ' | EMAIL_FROM = ' | ||
- | # Number of hours a token sent by email remains valid after having been | + | # Number of hours a token remains valid after having been created. |
- | # created. Numeric and string versions should have the same meaning. | + | # versions should have the same meaning. |
REQ_EXPIRE_HRS = 48 | REQ_EXPIRE_HRS = 48 | ||
REQ_EXPIRE_STR = '48 heures' | REQ_EXPIRE_STR = '48 heures' | ||
- | # LDAP URI (protocol and address) | + | # LDAP server |
LDAP_URI = ' | LDAP_URI = ' | ||
- | # Whether to use STARTTLS | + | # Whether to use STARTTLS |
LDAP_STARTTLS = False | LDAP_STARTTLS = False | ||
- | # Certificate | + | # Certificate used with LDAPS or STARTTLS |
LDAP_CACERT = '' | LDAP_CACERT = '' | ||
- | # LDAP base | + | # LDAP base DN |
LDAP_BASE = ' | LDAP_BASE = ' | ||
Ligne 121: | Ligne 120: | ||
CustomLog ${APACHE_LOG_DIR}/ | CustomLog ${APACHE_LOG_DIR}/ | ||
- | Alias /static / | + | Alias /static / |
- | WSGIScriptAlias / / | + | WSGIScriptAlias / / |
WSGIProcessGroup webldap | WSGIProcessGroup webldap | ||
WSGIDaemonProcess webldap processes=2 threads=16 maximum-requests=1000 display-name=webldap | WSGIDaemonProcess webldap processes=2 threads=16 maximum-requests=1000 display-name=webldap | ||
Ligne 134: | Ligne 133: | ||
</ | </ | ||
</ | </ | ||
+ |
admin/services/webldap.1386943297.txt.gz · Dernière modification : 2013/12/13 15:01 de zertrin