diff options
Diffstat (limited to 'index.py')
-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') |