https://github.com/python-ldap/python-ldap/blob/adf9dc402380572b1d3b5bc6fa1d353bbed35074/Lib/ldapurl.py#L260 This only checks lower case instances of ldap, ldaps, and ldapi. What if they are upper case?