Use fsockopen to determine connection status of LDAP config on dashboard
Formats the host parameter before passing it to fsockopen on the dashboard
Backported new regex check for domains to only allow Joomla username characters (Issue #13)