Commit 0ae9e01a authored by Andrew Gozzard's avatar Andrew Gozzard

1-character change to secure ldap, just to be sure

parent 66dd6972
......@@ -29,7 +29,7 @@ def requires_auth(f):
return {'status': 'error', 'errmsg': 'Authentication failed: Invalid username'}
dn = 'uid=%s,ou=People,dc=ucc,dc=gu,dc=uwa,dc=edu,dc=au' % username
try:
l = ldap.initialize('ldap://mussel.ucc.gu.uwa.edu.au')
l = ldap.initialize('ldaps://mussel.ucc.gu.uwa.edu.au')
l.simple_bind_s(dn, password)
l.unbind_s()
except:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment