Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Sun, 20 Apr 2008 00:03:00 -0700,    group: microsoft.public.exchange.development        back       


cant Read mail by ADO   
Dear Sir 
   i trying to open mail box by MS ActiveX data object, with Exchange 2007 
trail      
   version 32, on windows 2003 Server, 
   
   when i open the Record object its working only with administrator user or 
any 
  user which i logged on by it, for example i can open the record object for 
inbox  
  user "test" when i loge in to windows by user "test" but cant open 
administrator   
  Mail box in this case , even  if i pass username and password to open 
method for record object, 
  im also trying to use connection object in ADO and pass username and 
password its working for all user but when i trying to open recordset then 
the error permession denied appear, 

theankyou for your help



   but i cant open any mail box or calender when i loged on by administrator 
   for any
date: Sun, 20 Apr 2008 00:03:00 -0700   author:   Abdulfatah A. Reslan Abdulfatah A.

Re: cant Read mail by ADO   
No you can't pass username and password this is not supported in Exoledb. 
It will always use the security context of the calling process. The other 
thing you need to understand is by default any user with administrative 
privileges is denied access to all other mailboxes other then their own. 
Generally if you need an account with full access to all users mailboxes you 
should create a specific account for this purpose and give it these right as 
illustrated 
http://www.petri.co.il/grant_full_mailbox_rights_on_exchange_2000_2003.htm

If you are planning to use Exchange 2007 then I would suggest you look at 
using Exchange Web Services instead which supports a variety of 
Impersonation and delegation options and is a much better option then 
Exoledb which has been deemphasised in 2007  for more information download 
the exchange SDK from http://msdn.microsoft.com/exchange

Cheers
Glen




"Abdulfatah A. Reslan" <Abdulfatah A. Reslan@discussions.microsoft.com> 
wrote in message news:653636B7-C5A8-4F22-874C-293CA24BA7D1@microsoft.com...
> Dear Sir
>   i trying to open mail box by MS ActiveX data object, with Exchange 2007
> trail
>   version 32, on windows 2003 Server,
>
>   when i open the Record object its working only with administrator user 
> or
> any
>  user which i logged on by it, for example i can open the record object 
> for
> inbox
>  user "test" when i loge in to windows by user "test" but cant open
> administrator
>  Mail box in this case , even  if i pass username and password to open
> method for record object,
>  im also trying to use connection object in ADO and pass username and
> password its working for all user but when i trying to open recordset then
> the error permession denied appear,
>
> theankyou for your help
>
>
>
>   but i cant open any mail box or calender when i loged on by 
> administrator
>   for any
date: Mon, 21 Apr 2008 09:28:26 +1000   author:   Glen Scales [MVP]

Re: cant Read mail by ADO   
thank you very much for your help and fast response 

I did read the 
http://www.petri.co.il/grant_full_mailbox_rights_on_exchange_2000_2003.htm

this page contain tow step i did step one but still not working 
i cant do step 2 because the exchange 2007 different from exchange 2003 or 
2000 
the issue of step 2 to grant access to mail box via exchange not from active 
directory like in step 1 , may be i have to use "exchange management shell" 
command to to grant access to mail box via exchange like in step 2 but i dont 
know 
how did, 

however, 
 i already download exchange 2007 SDK i found the example for reading inbox 
message by using ADO , also i have good experience with ADO, 

thank you again


"Glen Scales [MVP]" wrote:

> No you can't pass username and password this is not supported in Exoledb. 
> It will always use the security context of the calling process. The other 
> thing you need to understand is by default any user with administrative 
> privileges is denied access to all other mailboxes other then their own. 
> Generally if you need an account with full access to all users mailboxes you 
> should create a specific account for this purpose and give it these right as 
> illustrated 
> http://www.petri.co.il/grant_full_mailbox_rights_on_exchange_2000_2003.htm
> 
> If you are planning to use Exchange 2007 then I would suggest you look at 
> using Exchange Web Services instead which supports a variety of 
> Impersonation and delegation options and is a much better option then 
> Exoledb which has been deemphasised in 2007  for more information download 
> the exchange SDK from http://msdn.microsoft.com/exchange
> 
> Cheers
> Glen
> 
> 
> 
> 
> "Abdulfatah A. Reslan" <Abdulfatah A. Reslan@discussions.microsoft.com> 
> wrote in message news:653636B7-C5A8-4F22-874C-293CA24BA7D1@microsoft.com...
> > Dear Sir
> >   i trying to open mail box by MS ActiveX data object, with Exchange 2007
> > trail
> >   version 32, on windows 2003 Server,
> >
> >   when i open the Record object its working only with administrator user 
> > or
> > any
> >  user which i logged on by it, for example i can open the record object 
> > for
> > inbox
> >  user "test" when i loge in to windows by user "test" but cant open
> > administrator
> >  Mail box in this case , even  if i pass username and password to open
> > method for record object,
> >  im also trying to use connection object in ADO and pass username and
> > password its working for all user but when i trying to open recordset then
> > the error permession denied appear,
> >
> > theankyou for your help
> >
> >
> >
> >   but i cant open any mail box or calender when i loged on by 
> > administrator
> >   for any 
> 
> 
>
date: Sun, 20 Apr 2008 22:21:00 -0700   author:   Abdulfatah A. Reslan

Re: cant Read mail by ADO   
ADO is not a good solution on 2007 (unless you need to support backwards 
compatibility with Exchange 2000/3 or you want to write an Event Sink) you 
need to remember you will only be able to run your code locally on the 
Mailbox server in question also remember in production you are then going to 
be running all your code on a 64 bit server. If you trying to program in VB6 
then your code isn't going to run on the production server. There are a lot 
of other really good reasons as well but I would recommend you save yourself 
the pain if your not using .NET already grab yourself a copy of one of the 
Express versions of Vb.NET or C# .net which you can get for free and take a 
look at using Exchange Web Services.

If you still want to go down the Exoledb path look at 
http://technet.microsoft.com/en-us/library/aa996343(EXCHG.80).aspx for 
assigning rights for a super user to the store (the second example)

Cheers
Glen

"Abdulfatah A. Reslan"  wrote 
in message news:B8C2449A-8960-41BF-86EF-C8E1C72B3D78@microsoft.com...
> thank you very much for your help and fast response
>
> I did read the
> http://www.petri.co.il/grant_full_mailbox_rights_on_exchange_2000_2003.htm
>
> this page contain tow step i did step one but still not working
> i cant do step 2 because the exchange 2007 different from exchange 2003 or
> 2000
> the issue of step 2 to grant access to mail box via exchange not from 
> active
> directory like in step 1 , may be i have to use "exchange management 
> shell"
> command to to grant access to mail box via exchange like in step 2 but i 
> dont
> know
> how did,
>
> however,
> i already download exchange 2007 SDK i found the example for reading inbox
> message by using ADO , also i have good experience with ADO,
>
> thank you again
>
>
> "Glen Scales [MVP]" wrote:
>
>> No you can't pass username and password this is not supported in Exoledb.
>> It will always use the security context of the calling process. The other
>> thing you need to understand is by default any user with administrative
>> privileges is denied access to all other mailboxes other then their own.
>> Generally if you need an account with full access to all users mailboxes 
>> you
>> should create a specific account for this purpose and give it these right 
>> as
>> illustrated
>> http://www.petri.co.il/grant_full_mailbox_rights_on_exchange_2000_2003.htm
>>
>> If you are planning to use Exchange 2007 then I would suggest you look at
>> using Exchange Web Services instead which supports a variety of
>> Impersonation and delegation options and is a much better option then
>> Exoledb which has been deemphasised in 2007  for more information 
>> download
>> the exchange SDK from http://msdn.microsoft.com/exchange
>>
>> Cheers
>> Glen
>>
>>
>>
>>
>> "Abdulfatah A. Reslan" <Abdulfatah A. Reslan@discussions.microsoft.com>
>> wrote in message 
>> news:653636B7-C5A8-4F22-874C-293CA24BA7D1@microsoft.com...
>> > Dear Sir
>> >   i trying to open mail box by MS ActiveX data object, with Exchange 
>> > 2007
>> > trail
>> >   version 32, on windows 2003 Server,
>> >
>> >   when i open the Record object its working only with administrator 
>> > user
>> > or
>> > any
>> >  user which i logged on by it, for example i can open the record object
>> > for
>> > inbox
>> >  user "test" when i loge in to windows by user "test" but cant open
>> > administrator
>> >  Mail box in this case , even  if i pass username and password to open
>> > method for record object,
>> >  im also trying to use connection object in ADO and pass username and
>> > password its working for all user but when i trying to open recordset 
>> > then
>> > the error permession denied appear,
>> >
>> > theankyou for your help
>> >
>> >
>> >
>> >   but i cant open any mail box or calender when i loged on by
>> > administrator
>> >   for any
>>
>>
>>
date: Mon, 21 Apr 2008 17:46:56 +1000   author:   Glen Scales [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us