- Timestamp:
- Dec 24, 2012, 3:28:00 AM (13 years ago)
- Branches:
- master, space-access, stable, stage
- Children:
- d0c7563
- Parents:
- 161ce5f
- git-author:
- Alex Dehnert <adehnert@…> (12/24/12 03:28:00)
- git-committer:
- MIT Association of Student Activities <asa@…> (12/24/12 03:28:00)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asadb/mit/__init__.py
rb42118c r0290330 5 5 import ldap.filter 6 6 7 from django.contrib.auth.backends import RemoteUserBackend 8 from django.contrib.auth.hashers import UNUSABLE_PASSWORD 7 9 from django.contrib.auth.middleware import RemoteUserMiddleware 8 from django.contrib.auth.backends import RemoteUserBackend9 10 from django.contrib.auth.views import login 10 11 from django.contrib.auth import REDIRECT_FIELD_NAME … … 83 84 def configure_user(self, user, ): 84 85 username = user.username 85 user.password = "ScriptsSSLAuth"86 user.password = UNUSABLE_PASSWORD 86 87 con = ldap.open('ldap-too.mit.edu') 87 88 con.simple_bind_s("", "")
Note: See TracChangeset
for help on using the changeset viewer.