From: Alex Dehnert Date: Tue, 25 Oct 2011 16:25:33 +0000 (-0400) Subject: Scripts auth: Use ldap-too for LDAP server X-Git-Url: https://sipb.mit.edu/gitweb.cgi/snippets/.git/commitdiff_plain/abab96a3e55d8663f996684add635ff7eaf472f6 Scripts auth: Use ldap-too for LDAP server Apparently it includes email addresses for people who have suppressed it, unlike ldap.mit.edu. --- diff --git a/__init__.py b/__init__.py index 7958beb..6b72710 100644 --- a/__init__.py +++ b/__init__.py @@ -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', ]