This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
django-ldap-basic-auth
======================

Simple middleware that injects the Authorization header in the request after authenticating against a ldap server

If you use BasicAuthentication in production you must ensure that your API is only available over https. You should also ensure that your API clients will always re-request the username and password at login, and will never store those details to persistent storage.

Installation
===============
You can install django-ldap-basic-auth in 2 ways: using pip or by setup.py install


$ pip install django-ldap-basic-auth


Then modify your settings.py


INSTALLED_APPS = INSTALLED_APPS + (
'django_ldap_basic_auth',
)

AUTHENTICATION_BACKENDS = ('django_ldap_basic_auth.backends.LdapBasicAuthBackend',) + AUTHENTICATION_BACKENDS

MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
'django_ldap_basic_auth.middleware.InjectBasicAuthMiddleware',
)

DJANGO_LDAP_BASIC_AUTH_ACTIVATED = True

If you want to store the information in a http cookie, called HTTP_AUTHORIZATION, then put in your settings.py:

DJANGO_LDAP_BASIC_AUTH_USE_COOKIES = True

You must define a django cache backend too.

Dependencies
============

* Django >= 1.4.x
* django-auth-ldap (https://pythonhosted.org/django-auth-ldap/)


TODO
====

* Improve tests
* Check if django-auth-ldap is installed

CHANGELOG
=========
* 0.0.1
* first version
* 0.0.2
* including request.session.modified = True to make sure that Django will persist the session
* 0.0.3
* use http cookie to store data
* 0.0.4
* check if request has atribute user
Release History

Release History

0.0.4

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.3

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-ldap-basic-auth-0.0.4.tar.gz (4.0 kB) Copy SHA256 Checksum SHA256 Source Oct 30, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting