|
|
|
date: Wed, 1 Mar 2006 06:17:56 -0600,
group: microsoft.public.exchange2000.development
back
Re: Can't access IMailbox properties
wrote in message
news:1141736269.312768.249100@p10g2000cwp.googlegroups.com...
> Tried LDAP dn, same result.
>
In a private message I asked yoav:
Okay, what LDAP dn did you try? Does it match the reverse LDAP path in AD
User's Computers? Did you actually connect to the LDAP DC first? Did you
connect to the GC first?
His answer was:
I used this:
LDAP://NET/CN=myuserid,OU=Developers,OU=Clients,OU=North,DC=net,DC=iec,DC=co,DC=il
which is the full adsPath of the user object in AD. I'm not sure I
understand your question about connecting to the LDAP DC and GC.
First, does "NET" have a fully qualified domain name? If so, use it and let
me know what happens.
If not, then proceed to the following.
The GC is the Global Catalog server. You can initially bind to it and then
get a server from it to run your LDAP query against. Like:
Dim LDAPProvider As ActiveDs.IADs
Dim DSObject As ActiveDs.IADsOpenDSObject
Dim User As ActiveDs.IADsUser
If User Is Nothing Then
LDAPProvider = GetObject("GC://<the domain name>/RootDSE")
DomainName = LDAPProvider.Get("defaultnamingcontext")
DomainServer = LDAPProvider.Get("ServerName")
DomainServer = Mid(DomainServer, 4, InStr(DomainServer, ",") - 4)
DomainServer = DomainServer & ".<your domain name>"
DSObject = GetObject("LDAP:")
DomainServer = "LDAP://" & DomainServer & "/CN=" & UserName & ",OU=<your
OU>,OU=<your OU>,OU=<your OU>," & DomainName
User = DSObject.OpenDSObject(DomainServer, LoginName, LoginPasswd,
ADS_SECURE_AUTHENTICATION + ADS_SERVER_BIND)
.. . .
date: Wed, 29 Mar 2006 10:04:29 -0600
author: microsoft
Re: Can't access IMailbox properties
Hi Andrew,
Using the fully qualified domain name
(LDAP://NET.IEC.CO.IL/CN=myuserid,OU=Developers,OU=Clients,OU=North,DC=net,DC=iec,DC=co,DC=il)
didn't solve the problem.
I tried your code and got a dn which looks like this:
LDAP://ServerName.net.iec.co.il/CN=myuserid,OU=Developers,OU=Clients,OU=North,DC=net,DC=iec,DC=co,DC=il
but I still receive the same error from mailbox properties.
Thanks
date: 29 Mar 2006 23:23:10 -0800
author: unknown
Re: Can't access IMailbox properties
What was the error again?
wrote in message
news:1143703390.536663.208520@u72g2000cwu.googlegroups.com...
> Hi Andrew,
>
> Using the fully qualified domain name
> (LDAP://NET.IEC.CO.IL/CN=myuserid,OU=Developers,OU=Clients,OU=North,DC=net,DC=iec,DC=co,DC=il)
> didn't solve the problem.
>
> I tried your code and got a dn which looks like this:
>
> LDAP://ServerName.net.iec.co.il/CN=myuserid,OU=Developers,OU=Clients,OU=North,DC=net,DC=iec,DC=co,DC=il
>
> but I still receive the same error from mailbox properties.
>
> Thanks
>
date: Thu, 30 Mar 2006 10:01:28 -0600
author: microsoft
Re: Can't access IMailbox properties
Oh, never mind. It was something to do with a file not found.
I now doubt that the problem is related to the LDAP.
Have you looked to manually to see if the mailbox is there (through Exchange
System Manager)?
If the mailbox is there then your program is trying to access a file
(probably a reference dll or configuration file or something) and can't find
it.
wrote in message
news:1143703390.536663.208520@u72g2000cwu.googlegroups.com...
> Hi Andrew,
>
> Using the fully qualified domain name
> (LDAP://NET.IEC.CO.IL/CN=myuserid,OU=Developers,OU=Clients,OU=North,DC=net,DC=iec,DC=co,DC=il)
> didn't solve the problem.
>
> I tried your code and got a dn which looks like this:
>
> LDAP://ServerName.net.iec.co.il/CN=myuserid,OU=Developers,OU=Clients,OU=North,DC=net,DC=iec,DC=co,DC=il
>
> but I still receive the same error from mailbox properties.
>
> Thanks
>
date: Thu, 30 Mar 2006 10:13:46 -0600
author: microsoft
|
|