Scripts auth: Use ldap-too for LDAP server
authorAlex Dehnert <adehnert@mit.edu>
Tue, 25 Oct 2011 16:25:33 +0000 (12:25 -0400)
committerAlex Dehnert <adehnert@mit.edu>
Tue, 25 Oct 2011 16:25:33 +0000 (12:25 -0400)
Apparently it includes email addresses for people who have suppressed it,
unlike ldap.mit.edu.

__init__.py

index 7958bebec91626471e4a88d2295cbd61109010ac..6b727108c8093c40e2c099ad3838adaa2a3fff53 100644 (file)
@@ -32,7 +32,7 @@ class ScriptsRemoteUserBackend(RemoteUserBackend):
     def configure_user(self, user, ):
         username = user.username
         user.password = "ScriptsSSLAuth"
-        con = ldap.open('ldap.mit.edu')
+        con = ldap.open('ldap-too.mit.edu')
         con.simple_bind_s("", "")
         dn = "dc=mit,dc=edu"
         fields = ['cn', 'sn', 'givenName', 'mail', ]