{
    use esmith::ConfigDB;

    my $adb = esmith::ConfigDB->open_ro('vhosts') or die "Couldn't open VhostsDB\n";
    my $usertype = $vsftpd{'UserType'} || 'virtual';
 
    if ($usertype ne 'virtual') {
        return '';
    }
    
    for my $vhost ( $adb->get_all_by_prop( type => 'vhost' ) )
    {
        my $status = $vhost->prop('FtpStatus') || 'disabled';
        next if ($status eq 'disabled');
        my $pass = $vhost->prop('FtpPassword') || '';
        next if ($pass eq '');

        $OUT .= $vhost->key . "\n";
        $OUT .= $pass . "\n";
    }
}
