Re: Remotely creating accounts using ADSI & CDOEXM fails

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
.



Relevant Pages

  • Re: Remotely creating accounts using ADSI & CDOEXM fails
    ... WNetGetUser returns Admin which is the proper account so as far as I can ... > your code as a dll is to create a Com+ wrapper for that dll and set the ... >>> creation part will work fine with alternate credentials). ...
    (microsoft.public.exchange.development)
  • Re: Setup of Information Store Service fails
    ... Exchange 2000 Setup Fails and Security Vulnerability ... When you set up Microsoft Exchange 2000 Server or Exchange 2000 Enterprise ... The account name is EUSER_EXSTOREEVENT, ... When You Install Exchange 2000 on a Member Server ...
    (microsoft.public.exchange2000.information.store)
  • Re: Adminstrator Password
    ... is a hidden administrator account called "Administrator." ... Most people do not set a password for this account and if you didn't install ... actual XP CD as opposed to a recovery CD, boot with the XP ... Once you have pressed a key, setup should begin. ...
    (microsoft.public.windowsxp.accessibility)
  • Re: ?? Net Security, User has to be prompted before connecting ??
    ... To make this work, you have to setup matching accounts on A, and B or C. ... archives on computer A from computer B. ... If you setup Kane's account on computer C with administrative privileges, ...
    (microsoft.public.windowsxp.network_web)
  • Re: Building customized Setup.dll for installations
    ... In the C++ code of your setup DLL write some code that for example sends ... that is also registered by your app when it starts. ... I created a Visual C++ MFC DLL project to design the custom Setup.dll. ... >>> Everything works fine except on uninstall. ...
    (microsoft.public.dotnet.framework.compactframework)