forked from extern/egroupware
added a check agains ldap-insertion in the login-name
This commit is contained in:
parent
01dcc7cae1
commit
c218e158b1
@ -37,6 +37,11 @@
|
||||
*/
|
||||
error_reporting(0);
|
||||
|
||||
if (ereg('[()|&=*,<>!~]',$username))
|
||||
{
|
||||
return False;
|
||||
}
|
||||
|
||||
if(!$ldap = @ldap_connect($GLOBALS['phpgw_info']['server']['ldap_host']))
|
||||
{
|
||||
$GLOBALS['phpgw']->log->message('F-Abort, Failed connecting to LDAP server for authenication, execution stopped');
|
||||
|
Loading…
Reference in New Issue
Block a user