From 51af1891d79fd39db43f3164dc21773f6ef6ca85 Mon Sep 17 00:00:00 2001 From: equinox Date: Tue, 27 Sep 2011 05:47:50 +0200 Subject: ldap: use local mirror --- index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.py b/index.py index c68ec64..f7fb396 100755 --- a/index.py +++ b/index.py @@ -53,7 +53,8 @@ class SubdapSite(object): def login_perform(s, username, password): dn = "cn=%s,ou=people,dc=sublab,dc=org" % (username) try: - l = ldap.initialize('ldaps://taifun.local.sublab.org/') + l = ldap.initialize('ldap://oberon.local.sublab.org/') + l.start_tls_s() l.simple_bind_s(dn, password) except ldap.INVALID_CREDENTIALS: raise LoginError('Login incorrect') -- cgit v1.2.1