From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thought Less
Sent: Wednesday, December 29, 2004 2:28 PM
To: [email protected]
Subject: CDO Creating Mailbox in Exchange 2003
What I have done is created an user account using ADSI and all of that has went perfect. The problem that I am having now is when I go to create the mailbox associated with that user account I keep getting errors saying that object is not found when trying to open the $objURL. Below is what I am using to create the mailbox for the account
my $domain_dcs = "dc=microsoft,dc=com";
my $objPerson =
Win32::OLE->new("CDO.Person");
my $objURL = "LDAP://cn=$last_name\\,
$first_name,cn=users,$domain_dcs;";
$objPerson->DataSource->Open(
$objURL, undef, 3); <-Dies right here when trying to open
the object
my $objMailbox = $objPerson->GetInterface( 'IMailboxStore'
);
my $strMDB =
"CN=$mail_folder,CN=$storage_group,CN=InformationStore,CN=$exchange_server,"
.
"CN=Servers,CN=$site_name,CN=Administrative Groups,"
.
"CN=Microsoft,CN=Microsoft Exchange,CN=Services,"
.
"CN=Configuration,$domain_dcs”;
$objMailbox->CreateMailbox( $strMDB
);
$objPerson->DataSource->Save();
Can anyone tell me what I maybe doing wrong?
Thanks.
Do you Yahoo!?
Meet the all-new My Yahoo! – Try it today!
_______________________________________________ Perl-Win32-Admin mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
