Replace ldap lib with ldap3

Replace ldap with ldap3 because ldap lib is not py3 compatible.
Functionality is the same.