RE: Problems with Mailboxrights property of the IExchangeMailbox inter

Tech-Archive recommends: Fix windows errors by optimizing your registry



I've also discovered that the "Active Directory Users and Computers" fails
for the Exchange Extension, when I'm logged on to the server where the code
runs using the domain administrator account. Sometimes I recieve the
c00706ba: "The RPC server is unavailable" error. I always recieve the
80004005: "The operation failed" error. What could cause this?

"Bjørn Terje Svennes" wrote:

> I'm using the DirectoryEntry object to retrieve users from AD. This works
> very well. Then I type cast the object to IExchangeMailbox interface, which
> also succeeds. But when trying to retrieve the MailboxRights property, the
> call fails with "The server is not operational". I've tried various
> approaches. Most has to do with how I build the LDAP path to the
> DirectoryEntry constructor:
>
> 1) DirectoryEntry de = new
> DirectoryEntry("LDAP://serverDNS/ou=users,dc=domain,dc=com";, userName,
> passWord, AuthenticationTypes.Secure | AuthenticationTypes.Delegation);
>
> This fails with "The server is not operational".
>
> 2) DirectoryEntry de = new
> DirectoryEntry("LDAP://serverDNS/ou=users,dc=domain,dc=com";, userName,
> passWord, AuthenticationTypes.Secure);
>
> This fails with "Access denied" from Interop.CDOEXM.
>
> 3) DirectoryEntry de = new
> DirectoryEntry("LDAP://ou=users,dc=domain,dc=com";, userName, passWord,
> AuthenticationTypes.Secure | AuthenticationTypes.Delegation);
>
> This fails with "A referral was returned from the server".
>
> 4) DirectoryEntry de = new DirectoryEntry("GC://ou=users,dc=domain,dc=com",
> userName, passWord, AuthenticationTypes.Secure |
> AuthenticationTypes.Delegation);
>
> This fails with "Unknown username or password". Combinations similar to 1)
> and 2) (with GC instead of LDAP) gives the same results as 1) and 2).
>
>
>
> The user is a domain admin so access should not be a problem. When I'm not
> using AuthenticationTypes.Delegation, I guess the security context is lost
> for successiv calls on the DirectoryEntry object (not really sure what this
> flag means).
>
> The problem might have something to do with the network infrastructure. The
> code is running on a server in Domain1 (Server1). The server DNS I'm
> connecting to in AD points to a server in Domain2 (Server2). The Exchange
> 2000 server however is on a different server in Domain2 (Server3). But since
> Server2 to is a Global Catalog and a Domain Controller this shouldn't be a
> problem. Or? We cannot access the Exchange 2000 server directly. Is this
> required for the CDOEXM to work?
.



Relevant Pages

  • RE: SMTP Connectivity Problem
    ... What are the exact errors you are getting when it fails? ... Also you should try telnetting to the IP address of the exchange server to ... possible have an incorrectly cached 'A' record for the server until all DNS ...
    (microsoft.public.win2000.networking)
  • Re: Stuck between a Queue and a hard place.....
    ... Run tracert their mail.server or IP and see where it fails. ... should start with your ISP to see if they will contact the ISP where it ... > I have used dnsreport.com's 'mailtest' to make sure that their mail server ... >>>Yes I am telnetting from our exchange server to their server and not getting ...
    (microsoft.public.exchange.admin)
  • Re: Do you have a kb on adding a DC to replicate AD for a geographically
    ... cluster with Exchange 2007 Server at each site. ... if the lines get damaged or one of the exchange server fails. ...
    (microsoft.public.windows.server.clustering)
  • Re: EXMERGE DISASTER RECOVERY
    ... an exchange server. ... if you don't have a backup, and your server fails, then ... Databases Disks Fails, you can restore from previous day, and reply the logs ...
    (microsoft.public.exchange.admin)
  • Re: Switching Domain Controllers
    ... clients to a GC - if that GC fails then it will take a minute or so to ... discover that and refer clients to a different GC. ... You should also see event 8026 from MSExchangeAL in the Exchange server ...
    (microsoft.public.exchange.admin)