summaryrefslogtreecommitdiff
path: root/index.py
diff options
context:
space:
mode:
Diffstat (limited to 'index.py')
-rwxr-xr-xindex.py3
1 files changed, 2 insertions, 1 deletions
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')