Use ldap.initialize instead of ldap.open for compatibility with python-ldap 3.2.0.