diff options
author | equinox <equinox@diac24.net> | 2011-09-27 05:47:50 +0200 |
---|---|---|
committer | equinox <equinox@diac24.net> | 2011-09-27 05:47:50 +0200 |
commit | 51af1891d79fd39db43f3164dc21773f6ef6ca85 (patch) | |
tree | bb8156849cbc9d04344154b03bd724d04f999361 | |
parent | 13a255516fb1f9c8b051218eb64b47d77db2df9e (diff) |
ldap: use local mirror
-rwxr-xr-x | index.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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') |