H
Huw
Hi,
I'm trying to create a user and a mailbox through AD interfaces.
I create the user fine, and then create the mailbox using CreateMailbox on
the IMailboxStore interface, this also works fine.
After that, I need to get the email address for the user back from the
object so I can store it.
When I try to get the value back by either getting the "mail" property or
calling get_EmailAddress on the IAdsUser object, then it always returns
E_ADS_PROPERTY_NOT_FOUND.
I found an article on the net suggesting setting the
msExchUserAccountControl property to 0 before calling CreateMailbox, but
that didn't work either. I've also tried GetInfo and tried getting hold of
the object again in the hope it refreshes itself.
It seems like there is a delay before the email address is populated. Does
anyone have any idea how to "flush" these values through so I can read the
email address immediately?
Thanks,
Huw
I'm trying to create a user and a mailbox through AD interfaces.
I create the user fine, and then create the mailbox using CreateMailbox on
the IMailboxStore interface, this also works fine.
After that, I need to get the email address for the user back from the
object so I can store it.
When I try to get the value back by either getting the "mail" property or
calling get_EmailAddress on the IAdsUser object, then it always returns
E_ADS_PROPERTY_NOT_FOUND.
I found an article on the net suggesting setting the
msExchUserAccountControl property to 0 before calling CreateMailbox, but
that didn't work either. I've also tried GetInfo and tried getting hold of
the object again in the hope it refreshes itself.
It seems like there is a delay before the email address is populated. Does
anyone have any idea how to "flush" these values through so I can read the
email address immediately?
Thanks,
Huw