Public Cotact Folder
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
Public Cotact Folder

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
Alex
Guest





Posted: Thu Nov 10, 2005 1:58 am    Post subject: Public Cotact Folder Reply with quote

Hello,

I have a question about the need for authentication,
I have a COM+ event sink component registerd on a public folder of my
Exchange server. When a Taks item is saved to the folder, it looks in
another public Contact folder to get information on associated contacts.
When this happens, there is a login prompt on the server (no one sees the
prompt, since they are using the client machines) Also a security box
appears, asking permission to access folders. The component is written in
C#. I am suing ADO and ExOLEDB for most of the code, however, to get Contact
properties, I use CDO. That is what's causing the security warning. I can
avoid logging in by explicitly calling a NameSpace.Logon().
How can I get information out of a public folder without authenticating? I
tried to use WebDAV, but that requires authentication as well. I would
rather not have to do that as it'd require me to leave passwords in the
source.

Thanks in advance.

Back to top
Alex
Guest





Posted: Thu Nov 10, 2005 1:58 am    Post subject: Re: Public Cotact Folder Reply with quote

Thanks Michael,
I've tried your approacn, and it still requires that I pass a password to
the NetworkCredential. Also, other than logging in, I am having an issue
with Outlook asking permission to access a folder. The messed up part, is I
am only interested in accessing the public folders, so I don't see why the
security warning comes up anyway.
So I am still at square one...

"Michael" <michael@discussions.microsoft.com> wrote in message
news:%23kbE3YX5FHA.1724@TK2MSFTNGP10.phx.gbl...
Quote:
You do not need to keep password in the code if you use NTLM
authentication.
WebDAV with NTLM (Windows Integrated Authentication) is solution for you.

Michael
-------------------------------
If you need WebDAV API for Exchange server,
use our component WebDAV .NET for Exchange.
Check out http://www.independentsoft.com


"Alex" <Alex.Avid@newsgroups.nospam> wrote in message
news:%23CrdfAX5FHA.1184@TK2MSFTNGP12.phx.gbl...
Hello,

I have a question about the need for authentication,
I have a COM+ event sink component registerd on a public folder of my
Exchange server. When a Taks item is saved to the folder, it looks in
another public Contact folder to get information on associated contacts.
When this happens, there is a login prompt on the server (no one sees the
prompt, since they are using the client machines) Also a security box
appears, asking permission to access folders. The component is written in
C#. I am suing ADO and ExOLEDB for most of the code, however, to get
Contact
properties, I use CDO. That is what's causing the security warning. I can
avoid logging in by explicitly calling a NameSpace.Logon().
How can I get information out of a public folder without authenticating?
I
tried to use WebDAV, but that requires authentication as well. I would
rather not have to do that as it'd require me to leave passwords in the
source.

Thanks in advance.

Back to top
Glen Scales [MVP]
Guest





Posted: Thu Nov 10, 2005 1:58 am    Post subject: Re: Public Cotact Folder Reply with quote

Can i ask why your using CDO to get the contact properties ( im guessing you
referring to CDO 1.2 and not CDOEX) you should be able to get all the
properties using exoledb. What properties are you trying to access in
particular.

Cheers
Glen

"Alex" <Alex.Avid@newsgroups.nospam> wrote in message
news:%23CrdfAX5FHA.1184@TK2MSFTNGP12.phx.gbl...
Quote:
Hello,

I have a question about the need for authentication,
I have a COM+ event sink component registerd on a public folder of my
Exchange server. When a Taks item is saved to the folder, it looks in
another public Contact folder to get information on associated contacts.
When this happens, there is a login prompt on the server (no one sees the
prompt, since they are using the client machines) Also a security box
appears, asking permission to access folders. The component is written in
C#. I am suing ADO and ExOLEDB for most of the code, however, to get
Contact properties, I use CDO. That is what's causing the security
warning. I can avoid logging in by explicitly calling a NameSpace.Logon().
How can I get information out of a public folder without authenticating? I
tried to use WebDAV, but that requires authentication as well. I would
rather not have to do that as it'd require me to leave passwords in the
source.

Thanks in advance.



Back to top
Alex
Guest





Posted: Fri Nov 11, 2005 1:42 am    Post subject: Re: Public Cotact Folder Reply with quote

I am sinking up to the onSave event, so for the item that causes the event
to fire, I can get any property I need.
However, if I want to get properties for other objects, I don't know how to
create the ExOLEDB object.

I have tasks, to which people can add contacts from a public contact folder.
When a taks is created, i use the ExOLEDB to get the list of contacts, and
then I need to get the info on these contacts.
What I do is find the contact item by name in the Contacts folder and get
that info. Yes I believe I am using CDO 1.2, and not CDOEX, but at this
point, the security blocks are causing me to rethink the code.

If you can suggest a way to use ExOLEDB for my issue, or CDOEX which will
let get around security blocks I would be more than greatful.

TIA,
Alex

"Glen Scales [MVP]" <gscales@outlookexchange.com> wrote in message
news:e%233dNhY5FHA.1864@TK2MSFTNGP12.phx.gbl...
Quote:
Can i ask why your using CDO to get the contact properties ( im guessing
you referring to CDO 1.2 and not CDOEX) you should be able to get all the
properties using exoledb. What properties are you trying to access in
particular.

Cheers
Glen

"Alex" <Alex.Avid@newsgroups.nospam> wrote in message
news:%23CrdfAX5FHA.1184@TK2MSFTNGP12.phx.gbl...
Hello,

I have a question about the need for authentication,
I have a COM+ event sink component registerd on a public folder of my
Exchange server. When a Taks item is saved to the folder, it looks in
another public Contact folder to get information on associated contacts.
When this happens, there is a login prompt on the server (no one sees the
prompt, since they are using the client machines) Also a security box
appears, asking permission to access folders. The component is written in
C#. I am suing ADO and ExOLEDB for most of the code, however, to get
Contact properties, I use CDO. That is what's causing the security
warning. I can avoid logging in by explicitly calling a
NameSpace.Logon().
How can I get information out of a public folder without authenticating?
I tried to use WebDAV, but that requires authentication as well. I would
rather not have to do that as it'd require me to leave passwords in the
source.

Thanks in advance.



Back to top
Glen Scales [MVP]
Guest





Posted: Fri Nov 11, 2005 1:58 am    Post subject: Re: Public Cotact Folder Reply with quote

Exoledb is an ADO provider so to access resources using Exoledb all you need
to do is use the ADO record object a simple example can be found
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_exch2k_getting_existing_items.asp

You should be able to do a search via Exoldb and build a recordset to do
what it sounds like your doing with CDO 1.2 do a search on "search" in the
Exchange SDK for more information. Security wise whatever API you code in
you will still need to have the correct security rights to the resources you
are trying to access.

Cheers
Glen

"Alex" <Alex.Avid@newsgroups.nospam> wrote in message
news:%23Wfyb7i5FHA.3588@TK2MSFTNGP15.phx.gbl...
Quote:
I am sinking up to the onSave event, so for the item that causes the event
to fire, I can get any property I need.
However, if I want to get properties for other objects, I don't know how
to create the ExOLEDB object.

I have tasks, to which people can add contacts from a public contact
folder.
When a taks is created, i use the ExOLEDB to get the list of contacts, and
then I need to get the info on these contacts.
What I do is find the contact item by name in the Contacts folder and get
that info. Yes I believe I am using CDO 1.2, and not CDOEX, but at this
point, the security blocks are causing me to rethink the code.

If you can suggest a way to use ExOLEDB for my issue, or CDOEX which will
let get around security blocks I would be more than greatful.

TIA,
Alex

"Glen Scales [MVP]" <gscales@outlookexchange.com> wrote in message
news:e%233dNhY5FHA.1864@TK2MSFTNGP12.phx.gbl...
Can i ask why your using CDO to get the contact properties ( im guessing
you referring to CDO 1.2 and not CDOEX) you should be able to get all the
properties using exoledb. What properties are you trying to access in
particular.

Cheers
Glen

"Alex" <Alex.Avid@newsgroups.nospam> wrote in message
news:%23CrdfAX5FHA.1184@TK2MSFTNGP12.phx.gbl...
Hello,

I have a question about the need for authentication,
I have a COM+ event sink component registerd on a public folder of my
Exchange server. When a Taks item is saved to the folder, it looks in
another public Contact folder to get information on associated contacts.
When this happens, there is a login prompt on the server (no one sees
the prompt, since they are using the client machines) Also a security
box appears, asking permission to access folders. The component is
written in C#. I am suing ADO and ExOLEDB for most of the code, however,
to get Contact properties, I use CDO. That is what's causing the
security warning. I can avoid logging in by explicitly calling a
NameSpace.Logon().
How can I get information out of a public folder without authenticating?
I tried to use WebDAV, but that requires authentication as well. I would
rather not have to do that as it'd require me to leave passwords in the
source.

Thanks in advance.





Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
New Topics Powered by phpBB