Try to prevent some invalid LDAP servers
This blocks the user from adding LDAP servers that will result in empty hostnames;
This includes anything containing a port number or scheme in the hostname.
It does not ultimately prevent the user from finding ways of adding other ways
of adding invalid servers, or valid hostnames that don't have an LDAP server behind them.
(cherry picked from commit 6940c0b9608fe66e9416b2af1296d4cbbbd886a4)
- GnuPG-Bug-ID: T6950