euscanwww: Added LDAP login
Needs testing and the settings must be changed to use the gentoo ldap server Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
parent
bd9af90ff6
commit
7367596e33
@ -202,14 +202,16 @@ LOGGING = {
|
||||
}
|
||||
}
|
||||
|
||||
# django-registration
|
||||
ACCOUNT_ACTIVATION_DAYS = 7
|
||||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
||||
|
||||
# djeuscan tasks
|
||||
PORTAGE_ROOT = "/usr/portage/"
|
||||
PORTAGE_CONFIGROOT = PORTAGE_ROOT
|
||||
LAYMAN_CONFIG = "/etc/layman/layman.cfg"
|
||||
EMERGE_REGEN_JOBS = 4
|
||||
|
||||
|
||||
# Celery config
|
||||
import djcelery
|
||||
djcelery.setup_loader()
|
||||
@ -218,6 +220,14 @@ CELERY_RESULT_BACKEND = "amqp"
|
||||
BROKER_CONNECTION_TIMEOUT = 3600
|
||||
CELERYD_CONCURRENCY = 4
|
||||
|
||||
# LDAP authentication
|
||||
# TODO: Test data - change me!
|
||||
AUTH_LDAP_SERVER_URI = "ldap://localhost"
|
||||
AUTH_LDAP_USER_DN_TEMPLATE = "uid=%(user)s,ou=users,dc=my-domain,dc=com"
|
||||
AUTHENTICATION_BACKENDS = (
|
||||
'django_auth_ldap.backend.LDAPBackend',
|
||||
'django.contrib.auth.backends.ModelBackend',
|
||||
)
|
||||
|
||||
try:
|
||||
from local_settings import *
|
||||
|
10
setup.py
10
setup.py
@ -87,10 +87,12 @@ setup(
|
||||
'https://github.com/iksaif/euscan/tarball/' +
|
||||
('master' if __version__ == '9999' else ('euscan-%s' % __version__))
|
||||
),
|
||||
install_requires=['Django==1.4', 'django-annoying==0..7.6', 'South==0.7.4',
|
||||
'django-piston==0.2.3', 'BeautifulSoup==3.2.1',
|
||||
'matplotlib==1.1.0', 'django-celery==2.5.5',
|
||||
'django-registration==0.8'],
|
||||
install_requires=[
|
||||
'Django==1.4', 'django-annoying==0.7.6', 'South==0.7.4',
|
||||
'django-piston==0.2.3', 'BeautifulSoup==3.2.1', 'matplotlib==1.1.0',
|
||||
'django-celery==2.5.5', 'django-registration==0.8',
|
||||
'python-ldap==2.4.10', 'django-auth-ldap==1.1',
|
||||
],
|
||||
package_dir={'': 'pym'},
|
||||
packages=packages,
|
||||
package_data={},
|
||||
|
Loading…
Reference in New Issue
Block a user