#!/usr/bin/perl # list all the email addresses for users, it will give the fqdn of the user # skip root level users use lib "/usr/sausalito/perl"; use strict; use CCE; my $cce = new CCE; $cce->connectuds(); my @oids = $cce->find('User'); my ($ok, $obj, $out); foreach my $oid (@oids) { ($ok, $obj) = $cce->get($oid); if(!$obj->{site}) { next; } $out .= $obj->{name}; ($oid) = $cce->find('Vsite', { 'name' => $obj->{site} }); ($ok, $obj) = $cce->get($oid); $out .= '@'.$obj->{fqdn}.','; } print $out, "\n"; $cce->bye("Ticking away the moments that make up a dull day"); exit 0;