Changeset 213c1e0
- Timestamp:
- May 26, 2010, 8:23:38 PM (15 years ago)
- Branches:
- master, client
- Children:
- 6e43384
- Parents:
- 29e55de
- git-author:
- Alex Dehnert <adehnert@…> (05/26/10 20:15:03)
- git-committer:
- Alex Dehnert <adehnert@…> (05/26/10 20:23:38)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
remit/mit/__init__.py
re02a4b2 r213c1e0 21 21 def configure_user(self, user, ): 22 22 username = user.username 23 user.password = "ScriptsSSLAuth" 23 24 import ldap 24 25 con = ldap.open('ldap.mit.edu') … … 35 36 except ObjectDoesNotExist: 36 37 print "Failed to retrieve mit group" 37 user.save()38 38 try: 39 39 user.groups.add(auth.models.Group.objects.get(name='autocreated')) 40 40 except ObjectDoesNotExist: 41 41 print "Failed to retrieve autocreated group" 42 user.save() 42 43 return user
Note: See TracChangeset
for help on using the changeset viewer.