proxy.cgi: Also allow to use a hostname for the LDAP server.

Fixes #10265.
This commit is contained in:
Stefan Schantl
2013-01-21 21:15:50 +01:00
parent 5292c03dde
commit e201b6d537
3 changed files with 7 additions and 4 deletions

View File

@@ -512,8 +512,11 @@ if (($proxysettings{'ACTION'} eq $Lang::tr{'save'}) || ($proxysettings{'ACTION'}
}
if (!&General::validip($proxysettings{'LDAP_SERVER'}))
{
$errormessage = $Lang::tr{'advproxy errmsg ldap server'};
goto ERROR;
if (!&General::validdomainname($proxysettings{'LDAP_SERVER'}))
{
$errormessage = $Lang::tr{'advproxy errmsg ldap server'};
goto ERROR;
}
}
if (!&General::validport($proxysettings{'LDAP_PORT'}))
{