Re: Remotely creating accounts using ADSI & CDOEXM fails
- From: Shane <askforit@xxxxxxxxxxx>
- Date: Fri, 20 Jan 2006 14:27:58 -0700
Hello, Glen.
Thanks for the suggestions. I've been trying to get the COM+ one to
work and I am completely stumped. I have a COM+ application setup that
has my DLL registered. I have that COM+ app setup to run as an admin
account. When I call the DLL from ASP I still get an Access Denied
error.
I think I'm missing something fairly simple but I don't know what it
could be. There is a definitely lack of information on calling COM+
from VB6 or ASP on the web. It seems like it should just work? but I'm
still trying to figure out if my component is even running under the
account it's configured to do in COM+
Any thoughts?
Thanks,
Shane
In article <upFrGc8FGHA.3100@xxxxxxxxxxxxxxxxxxxx>,
gscales@xxxxxxxxxxxxxxxxxxx says...
> Not true if your a developer you just need to implement a method of
> impersonating a security context. One method I use is if you have compiled
> your code as a dll is to create a Com+ wrapper for that dll and set the
> identity of the wrapper to the user you want this code to run under see
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cossdk/html/eec4e871-36c2-4e60-9808-1400efcfc60c.asp?frame=true.
> You could also look at implementing ImpersonateLoggedOnUser in your code see
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthz/security/impersonateloggedonuser.asp .
>
> Cheers
> Glen
>
> "Shane" <askforit@xxxxxxxxxxx> wrote in message
> news:MPG.1e2ef8c830e1a54989693@xxxxxxxxxxxxxxxxxxxxx
> > So there is no method of creating an Exchange Mailbox without being
> > physically logged in as the necessary account?
> >
> > Shane
> >
> > In article <uv7tQekFGHA.1736@xxxxxxxxxxxxxxxxxxxx>,
> > gscales@xxxxxxxxxxxxxxxxxxx says...
> >> CDOEXM doesn't support binding with alternate credentials and will always
> >> use the security context of the calling process (although the account
> >> creation part will work fine with alternate credentials). Also have a
> >> read
> >> of http://support.microsoft.com/kb/317234/en-us
> >>
> >> Cheers
> >> Glen
> >>
> >>
> >>
> >> "Shane" <askforit@xxxxxxxxxxx> wrote in message
> >> news:MPG.1e2df8d3be114675989692@xxxxxxxxxxxxxxxxxxxxx
> >> > I'm trying to remotely create an Active Directory account with an
> >> > Exchange account. I have the Exchange Management Tools installed and
> >> > am
> >> > following the standard information I have found online. I remotely
> >> > connect using IADs and an SSL enabled connection. I then create an
> >> > IADsUser. Once this is done I do:
> >> >
> >> > Dim objMailbox As CDOEXM.IMailboxStore
> >> >
> >> > Set objMailbox = objUser
> >> > objMailbox.CreateMailBox "LDAP://ITSP.local/CN=Mailbox Store
> >> > (EDM1),CN=First Storage
> >> > Group,CN=InformationStore,CN=EDM1,CN=Servers,CN=first administrative
> >> > group,CN=Administrative Groups,CN=ITSP,CN=Microsoft
> >> > Exchange,CN=Services,CN=Configuration,DC=ITSP,DC=local"
> >> >
> >> > objUser.SetInfo
.
- References:
- Re: Remotely creating accounts using ADSI & CDOEXM fails
- From: Glen Scales [MVP]
- Re: Remotely creating accounts using ADSI & CDOEXM fails
- From: Shane
- Re: Remotely creating accounts using ADSI & CDOEXM fails
- From: Glen Scales [MVP]
- Re: Remotely creating accounts using ADSI & CDOEXM fails
- Prev by Date: Create a button that is visible throughout the company
- Next by Date: Re: Remotely creating accounts using ADSI & CDOEXM fails
- Previous by thread: Re: Remotely creating accounts using ADSI & CDOEXM fails
- Next by thread: Re: Remotely creating accounts using ADSI & CDOEXM fails
- Index(es):
Relevant Pages
|