Merge pull request #221 from nosinovacao/fix-ldap-init

fix LDAP initialization
pull/227/head
Pavel Loginov 5 years ago committed by GitHub
commit 59d5ea9913
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -76,7 +76,7 @@ def check_in_ldap(user, password):
ldap_search_field = sql.get_setting('ldap_search_field')
ldap_user_attribute = sql.get_setting('ldap_user_attribute')
l = ldap.initialize(server+':'+port)
l = ldap.initialize('ldap://{}:{}/'.format(server, port))
try:
l.protocol_version = ldap.VERSION3
l.set_option(ldap.OPT_REFERRALS, 0)

Loading…
Cancel
Save