Outils pour utilisateurs

Outils du site


admin:services:webldap

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
admin:services:webldap [2014/04/21 13:14] – nouvelles instructions d'installation (migration vers python 3) bertrand.bonnefoy-claudetadmin:services:webldap [2017/11/20 07:40] (Version actuelle) chirac
Ligne 1: Ligne 1:
 [[:admin|< retour à la page de l'administration technique]] [[:admin|< retour à la page de l'administration technique]]
  
-**webldap** est hébergé sur hexagon dans ''/srv/webldap''.+ 
 +====== CETTE PAGE EST OBSOLETE ======= 
 + 
 +**webldap** est hébergé sur hexagon et sur federez-test dans ''/srv/webldap''.
  
 ===== Installation ===== ===== Installation =====
Ligne 7: Ligne 10:
 ==== Dépendances Debian ==== ==== Dépendances Debian ====
  
-  aptitude install libldap2-dev libffi-dev python3 python3-pip+  apt-get install libldap2-dev libffi-dev python3 python3-pip
  
 ==== Code ==== ==== Code ====
Ligne 14: Ligne 17:
   git clone https://github.com/FedeRez/webldap.git   git clone https://github.com/FedeRez/webldap.git
  
-Ensuite, copier ''federez_ldap/settings_local.sample.py'' vers ''federez_ldap/settings_local.py'' et modifier ce dernier (voir configuration en bas de cette page).+Ensuite, copier ''app/webldap/local_settings.sample.py'' vers ''app/webldap/local_settings.py'' et modifier ce dernier (voir configuration en bas de cette page).
  
   cd /srv/webldap   cd /srv/webldap
-  pip-3.2 install -r requirements.txt +  pip3 install -r requirements.txt 
-  python manage.py syncdb +  python manage.py migrate
-  python manage.py migrate accounts+
   chown -R www-data: /srv/webldap   chown -R www-data: /srv/webldap
  
Ligne 38: Ligne 40:
 ===== Configuration ===== ===== Configuration =====
  
-<file python federez_ldap/settings_local.py> +<file python app/webldap/local_settings.py> 
-# Local settings +DEBUG = True
- +
-DEBUG = False+
 TEMPLATE_DEBUG = DEBUG TEMPLATE_DEBUG = DEBUG
 +
 +ALLOWED_HOSTS = [
 +    '.federez.net',
 +]
  
 DATABASES = { DATABASES = {
     'default': {     'default': {
-        'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. +        'ENGINE': 'django.db.backends.sqlite3', 
-        'NAME': '/srv/webldap/db',             # Or path to database file if using sqlite3. +        'NAME': '/srv/webldap/db',
-        'USER': '',             # Not used with sqlite3. +
-        'PASSWORD': '',         # Not used with sqlite3. +
-        'HOST': '',             # Set to empty string for localhost. Not used with sqlite3. +
-        'PORT': '',             # Set to empty string for default. Not used with sqlite3.+
     }     }
 } }
  
 # 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/django_templates" or "C:/www/django/templates". +        '/srv/webldap/templates',
-    # Always use forward slashes, even on Windows. +
-    # Don't forget to use absolute pathsnot relative paths.+
 ) )
- 
-# Settings specific to 'accounts' 
  
 # SMTP relay (host and port) to use for confirmation mails # SMTP relay (host and port) to use for confirmation mails
Ligne 70: Ligne 67:
 EMAIL_PORT = 25 EMAIL_PORT = 25
  
-Address to appear in From field+Email `Fromfield
 EMAIL_FROM = 'admin@federez.net' EMAIL_FROM = 'admin@federez.net'
  
-# Number of hours a token sent by email remains valid after having been +# Number of hours a token remains valid after having been created.  Numeric and string 
-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 URI (protocol and address)
 LDAP_URI = 'ldap://localhost' LDAP_URI = 'ldap://localhost'
  
-# Whether to use STARTTLS or not+# Whether to use STARTTLS
 LDAP_STARTTLS = False LDAP_STARTTLS = False
  
-# Certificate to be used with LDAPS or STARTTLS+# Certificate used with LDAPS or STARTTLS
 LDAP_CACERT = '' LDAP_CACERT = ''
  
-# LDAP base+# LDAP base DN
 LDAP_BASE = 'dc=federez,dc=net' LDAP_BASE = 'dc=federez,dc=net'
  
Ligne 123: Ligne 120:
     CustomLog ${APACHE_LOG_DIR}/webldap-access.log combined     CustomLog ${APACHE_LOG_DIR}/webldap-access.log combined
  
-    Alias /static /srv/webldap/accounts/static+    Alias /static /srv/webldap/app/main/static
  
-    WSGIScriptAlias / /srv/webldap/federez_ldap/wsgi.py+    WSGIScriptAlias / /srv/webldap/app/wsgi.py
     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 136: Ligne 133:
 </VirtualHost> </VirtualHost>
 </file> </file>
 +
admin/services/webldap.1398078855.txt.gz · Dernière modification : 2014/04/21 13:14 de bertrand.bonnefoy-claudet

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki