Re: Problem creating an mailbox through code
- From: suneetshah2000@xxxxxxxxx
- Date: 11 Dec 2006 08:48:23 -0800
Hi Joe,
I am setting the following attributes in AD:
homeMDB
homeMTA
msExchHomeServerName
mDBUseDefaults
msExchUserAccountControl
mailNickname
proxyAddresses
textEncodedORAddress
mAPIRecipient
targetAddress
Any suggestions would be greatly appreciated.
Regards
Suneet
Joe Richards [MVP] wrote:
What exactly are you setting?
As Henning indicated though, the officially supported mechanism is
CDOEXM, but obviously you cannot use that through JNDI. It is definitely
possible to do it through setting raw attributes though, I have run into
more Fortune 50 companies that do it through setting attributes than
through using CDOEXM.
joe
--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net
---O'Reilly Active Directory Third Edition now available---
http://www.joeware.net/win/ad3e.htm
suneetshah2000@xxxxxxxxx wrote:
Hello,
I am trying to create a mailbox in exchange 2003 by creating entries in
Active Directory for a user. My code seems to be only partially
successful. If I use Outlook Express to test, I am able to connect to
the exchange server, and send messages. However, I am not able to
receive messages that appear to have been sent succesfuly. Using LDP, I
see the following entries. Any thoughts on what the problem may be?
Thanks.
Dn: CN=Reggie Jackson,OU=Sales,DC=Diamelle,DC=local
4> objectClass: top; person; organizationalPerson; user;
1> cn: Reggie Jackson;
1> sn: Jackson;
1> l: Croton;
1> st: NY;
1> description: User;
1> postalCode: 10520;
1> telephoneNumber: (null)7394386;
1> givenName: Reggie;
1> distinguishedName: CN=Reggie Jackson,OU=Sales,DC=Diamelle,DC=local;
1> instanceType: 0x4 = ( IT_WRITE );
1> whenCreated: 12/10/2006 09:30:47 Pacific Standard Time Pacific
Daylight Time;
1> whenChanged: 12/10/2006 09:30:48 Pacific Standard Time Pacific
Daylight Time;
1> displayName: Reggie Jackson;
1> uSNCreated: 176245;
1> memberOf: CN=SalesGroup,OU=Sales,DC=Diamelle,DC=local;
1> uSNChanged: 176251;
1> co: USA;
1> department: Marketing;
1> homeMTA: CN=Microsoft MTA,CN=WIN2003SRV,CN=Servers,CN=First
Administrative Group,CN=Administrative Groups,CN=Diamelle,CN=Microsoft
Exchange,CN=Services,CN=Configuration,DC=Diamelle,DC=local;
2> proxyAddresses: X400:c=US;a=
;p=Diamelle;o=Exchange;s=Jackson;g=Reggie;;
SMTP:Reggie.Jackson@xxxxxxxxxxxxxx;
1> homeMDB: CN=Mailbox Store (WIN2003SRV),CN=First Storage
Group,CN=InformationStore,CN=WIN2003SRV,CN=Servers,CN=First
Administrative Group,CN=Administrative Groups,CN=Diamelle,CN=Microsoft
Exchange,CN=Services,CN=Configuration,DC=Diamelle,DC=local;
1> streetAddress: 22 Scenic Dr;
1> mDBUseDefaults: TRUE;
1> targetAddress: SMTP:Reggie.Jackson@xxxxxxxxxxxxxx;
1> mAPIRecipient: TRUE;
1> mailNickname: Reggie.Jackson;
1> name: Reggie Jackson;
1> objectGUID: 73500291-4585-43cd-9bd5-130a41edcdf1;
1> userAccountControl: 0x200 = ( UF_NORMAL_ACCOUNT );
1> badPwdCount: 0;
1> codePage: 0;
1> countryCode: 0;
1> badPasswordTime: 01/01/1601 00:00:00 UNC ;
1> lastLogoff: 01/01/1601 00:00:00 UNC ;
1> lastLogon: 01/01/1601 00:00:00 UNC ;
1> pwdLastSet: 12/10/2006 09:30:47 Pacific Standard Time Pacific
Daylight Time;
1> primaryGroupID: 513;
1> objectSid: S-1-5-21-1748978430-807948981-794853667-1188;
1> accountExpires: 09/14/30828 02:48:05 UNC ;
1> logonCount: 0;
1> sAMAccountName: Reggie.Jackson;
1> sAMAccountType: 805306368;
2> showInAddressBook: CN=Default Global Address List,CN=All Global
Address Lists,CN=Address Lists Container,CN=Diamelle,CN=Microsoft
Exchange,CN=Services,CN=Configuration,DC=Diamelle,DC=local; CN=All
Users,CN=All Address Lists,CN=Address Lists
Container,CN=Diamelle,CN=Microsoft
Exchange,CN=Services,CN=Configuration,DC=Diamelle,DC=local;
1> legacyExchangeDN: /o=Diamelle/ou=First Administrative
Group/cn=Recipients/cn=Reggie.Jackson;
1> userPrincipalName: Reggie.Jackson@xxxxxxxxxxxxxx;
1> objectCategory:
CN=Person,CN=Schema,CN=Configuration,DC=Diamelle,DC=local;
1> textEncodedORAddress: c=US;a=
;p=Diamelle;o=Exchange;s=Jackson;g=Reggie;;
1> mail: Reggie.Jackson@xxxxxxxxxxxxxx;
1> msExchHomeServerName: /o=Diamelle/ou=First Administrative
Group/cn=Configuration/cn=Servers/cn=WIN2003SRV;
1> msExchALObjectVersion: 59;
1> msExchMailboxSecurityDescriptor: <ldp: Binary blob>;
1> msExchUserAccountControl: 0;
1> msExchMailboxGuid: cc74a1b7-c465-4a03-a807-7909e1de8f4a;
1> msExchPoliciesIncluded:
{EC850188-2E4C-43BB-A20D-CFCEB5D13960},{26491CFC-9E50-4857-861B-0CB8DF22B5D7};
.
- Follow-Ups:
- Re: Problem creating an mailbox through code
- From: Joe Richards [MVP]
- Re: Problem creating an mailbox through code
- References:
- Problem creating an mailbox through code
- From: suneetshah2000
- Re: Problem creating an mailbox through code
- From: Joe Richards [MVP]
- Problem creating an mailbox through code
- Prev by Date: Re: Where does the Exchange 2000 Event Service get its session?
- Next by Date: Re: Conflict updating Event occurrence using WebDAV
- Previous by thread: Re: Problem creating an mailbox through code
- Next by thread: Re: Problem creating an mailbox through code
- Index(es):