{
    use esmith::db;

    tie my %accounts, 'esmith::config', '/home/e-smith/accounts';

    while ( my $name = getpwent )
    {
	next if ($name eq "admin");

	next if ($name eq "public") and ($ACCOUNTS_DENY_ALLOW_PUBLIC);

	my $type = db_get_type(\%accounts, $name) || 'none';

	if ( $type =~ /(user|ibay)/ )
	{
	    my $passwordSet = db_get_prop(\%accounts, $name, "PasswordSet") || 
		'no';

	    next if ($passwordSet eq "yes");

	    my $ftpMode = db_get_prop(\%accounts, $name, "PublicAccess") ||
		'none';

	    next if ($ftpMode eq "local" or $ftpMode eq "global");

	}

	$OUT .= "$name\n";
    }
}
