summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorequinox <equinox@diac24.net>2011-09-27 05:47:50 +0200
committerequinox <equinox@diac24.net>2011-09-27 05:47:50 +0200
commit51af1891d79fd39db43f3164dc21773f6ef6ca85 (patch)
treebb8156849cbc9d04344154b03bd724d04f999361
parent13a255516fb1f9c8b051218eb64b47d77db2df9e (diff)
ldap: use local mirror
-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')