[Issue 10291] OpenLDAP matches localhost against local hostname incorrectly