Add LDAP uri option and fix deficiencies
Fixed pylint C0326 issue
Merge pull request #12035 from jeroennijhof/develop

Add LDAP uri option and fix deficiencies