Compare commits

..

No commits in common. "master" and "master" have entirely different histories.

2 changed files with 1 additions and 3 deletions

3
app.py
View File

@ -58,8 +58,7 @@ def ldap_change_password(username, old, new):
l = ldap.initialize(CONF['ldap']['host'])
l.set_option(ldap.OPT_X_TLS_CACERTFILE, CONF['ldap']['tls_cacert'])
l.set_option(ldap.OPT_X_TLS, ldap.OPT_X_TLS_DEMAND)
if CONF['ldap']['tls'] == "True":
l.start_tls_s()
l.start_tls_s()
l.simple_bind_s(dn_name, old)
l.passwd_s(dn_name, old, new)
l.unbind_s()

View File

@ -4,7 +4,6 @@ page_title = Change your password on unit.macaomilano.org
[ldap]
host = ldap://unit.macaomilano.org:389
base = ou=Hackers,dc=unit,dc=macaomilano,dc=org
tls = True
tls_cacert = /etc/ssl/cert.pem
[server]