Move global_denied_users list into accounts class, sql is an empty array

This commit is contained in:
Miles Lott 2001-03-01 16:20:48 +00:00
parent 542bb68597
commit 6b154b447e
3 changed files with 36 additions and 28 deletions

View File

@ -31,6 +31,34 @@
var $data;
var $memberships = Array();
var $members;
// Dont know where to put this (seek3r)
// This is where it belongs (jengo)
// This is where it ended up (milosch)
/* Since LDAP will return system accounts, there are a few we don't want to login. */
$phpgw_info["server"]["global_denied_users"] = array(
'root' => True,
'bin' => True,
'daemon' => True,
'adm' => True,
'lp' => True,
'sync' => True,
'shutdown' => True,
'halt' => True,
'mail' => True,
'news' => True,
'uucp' => True,
'operator' => True,
'games' => True,
'gopher' => True,
'nobody' => True,
'xfs' => True,
'pgsql' => True,
'mysql' => True,
'postgres' => True,
'ftp' => True,
'gdm' => True,
'named' => True
);
function accounts_()
{

View File

@ -32,6 +32,13 @@
var $memberships;
var $members;
// Dont know where to put this (seek3r)
// This is where it belongs (jengo)
// This is where it ended up (milosch)
/* Since LDAP will return system accounts, there are a few we don't want to login. */
// it is here as an empty array to avoid some errors, hopefully
$phpgw_info["server"]["global_denied_users"] = array();
function accounts()
{
global $phpgw;

View File

@ -163,33 +163,6 @@
print_debug('domain: '.$phpgw_info["user"]["domain"]);
// Dont know where to put this (seek3r)
// This is where it belongs (jengo)
/* Since LDAP will return system accounts, there are a few we don't want to login. */
$phpgw_info["server"]["global_denied_users"] = array('root' => True,
'bin' => True,
'daemon' => True,
'adm' => True,
'lp' => True,
'sync' => True,
'shutdown' => True,
'halt' => True,
'mail' => True,
'news' => True,
'uucp' => True,
'operator' => True,
'games' => True,
'gopher' => True,
'nobody' => True,
'xfs' => True,
'pgsql' => True,
'mysql' => True,
'postgres' => True,
'ftp' => True,
'gdm' => True,
'named' => True
);
/****************************************************************************\
* These lines load up the API, fill up the $phpgw_info array, etc *
\****************************************************************************/