RE: Creating AD account and Exchange Account

[email protected] ("Sheahan, John")
Newsgroups perl.ldap
Message-ID <09F205C089889344BDDB6FB253D417215949FD2EA6@NW-E2K7-ECL1.corp.pcln.com>
Here is the code that I have been trying to use. It creates the AD account and fills in most of the fields for the exchange account but I must be missing something because it doesn't show up in the Exchange administrator:

###############################################################################
$result = $ldap->add( 'CN=Jim Jones,OU=Users,OU=Nor,DC=voice,DC=pc,DC=com',
                       attr => [ 'cn' => 'Jim Jones',
                                 'sn'   => 'Jones',
                                 #'userPrincipalName' => 'jcom',
                                 'physicalDeliveryOfficeName' => 'Nor',
                                 'telephoneNumber' => '8010',
                                 'givenName' => 'James',
                                 'company' => 'Pc',
                                 'homeMTA' => 'CN=Microsoft MTA,CN=NW-CM2DC-LAB1,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=Pc,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=voice,DC=pc,DC=com',
                                 'homeMDB' => 'CN=Mailbox Store (NW-CM2DC-LAB1),CN=First Storage Group,CN=InformationStore,CN=NW-CM2DC-LAB1,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=Pc,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=voicedqs,DC=pc,DC=com',
                                 'mDBUseDefaults' => 'TRUE',
                                 'mailNickname' => 'jimmmy_jones',
                                 'legacyExchangeDN' => '/o=Pc/ou=First Administrative Group/cn=Recipients/cn=jjones',
                                 'userPrincipalName' => '[email protected]',
                                 'msExchHomeServerName' => '/o=Pc/ou=Administrative Groups/ou=First Administrative Group/cn=Servers/cn=NW-CM2DC-LAB1',
                                 'mail' => '[email protected]',
                                 'objectclass' => ['top', 'person',
                                                   'organizationalPerson',
                                                   'user' ]
                               ]
                     );
$result->code && warn "failed to add entry: ", $result->error ;

$mesg = $ldap->unbind;   # take down session

###############################################################################

Is it just a matter of feeding AD with enough of the correct info needed in order to create the Exchange account?

Thanks

john
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.