Re: Automatically Creating AD account and Exchange Account

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



The permissions would be different as you would also have to have Exchange
administration permissions.
However, it's also hard to tell if you have the proper syntax as there is no
idea what the MBXStoreDN variable is set to.

There is more code right?

Al


"kmatuch" <kathryn.matuch@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2u6dnVCYvcjQ9p7eRVn_vQ@xxxxxxxxxxxxxxx
> Hi,
>
> I have and ASP 3.0 application that now creates an active directory
> entry and sets the password. After much difficulty with permissions
> it is working properly.
>
> The next step is, through the use of CDOEXM, to create an exchange
> 2003 mailbox. I have the code and if I run it from the command line
> on my application server it works great. However if I trigger the
> code via the ASP page I receive an error: '80070057' One or more
> arguments are invalid.
>
> Exchange Admin tools have been installed on the application server and
> The IIS 'user' has access to the folders and files. The path to the
> folders and files has been added to the environment variables.
>
> Based on the fact that the same code works one way and not the other,
> it has to be permissions. I may try to execute this code with a
> 'RUNAS' (though I don't know how to do that, so any help there would
> be appreciated) Is that the only way to get around this? Are the
> credentials that I use to create the Active Directory object
> instantiation not used when calling the Exchange Objects?
>
> Any insight would be greatly appreciated. Code is below.
>
> -Kathryn
>
>
> 'Get the high level domain controller string
> strRootDSE = "LDAP://"; & hostAddress & "/RootDSE"
> set rootDSE = GetObject(strRootDSE)
> domainDN = RootDSE.Get("DefaultNamingContext")
>
> 'Instantiate an Active Directory Object
> Set objADsOpenDSObject = GetObject("LDAP:")
>
> 'Build the path for the users object
> strADUserPath = "LDAP://"; & hostAddress & "/CN=" & user
> & ",CN=Users," & domainDN
>
> 'Open the Active Directory Object
> lngAuth = ADS_USE_SIGNING OR ADS_USE_SEALING OR
> ADS_SECURE_AUTHENTICATION
>
> set objUser = objADsOpenDSObject.OpenDSObject(strADUserPath,
> adminUser, adminPassword, lngAuth)
>
> 'Refresh the local property cache
> objUser.GetInfo
>
> Set objMailbox = objUser
>
> 'check if user is mailbox enabled
> If objMailbox.HomeMDB = "" Then
> objMailbox.CreateMailbox MBXStoreDN *ERROR occurs on this line*
> objMailbox.SetInfo
> Else
> response.write("Mailbox already exists")
> End If
>


.



Relevant Pages

  • How to Assign Access/Perms. to Public Folders??
    ... What is the proper way to assign access / permissions to public folders in ... Currently on Exchange 5.5 all the public folders have permissions assigned ...
    (microsoft.public.exchange.setup)
  • Re: Problems installing Exch 2003
    ... Normally when running forestprep you assign permissions for a user account ... to install Exchange 2003 servers. ... > Directory has not replicated all the necessary permissions for the deleted ... > modify Exchange components and that replication is complete before running ...
    (microsoft.public.exchange2000.setup.installation)
  • Re: Unable to add mailbox
    ... This is a regular exchange 2003 install, and no, I have not lately done a dr ... december, and another backup dc in Feb (which was the old mail server, but I ... Authenticated User has Read and Special Permissions, the under advanced, the ... make sure that box is checked on the user's account as well. ...
    (microsoft.public.exchange.admin)
  • RE: Access Denied on Exchange Message tracking center
    ... the error occurs when Exchange permissions are not ... Check the Anonymous Logon settings on Exchange. ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • Re: Exchange 2003 - Giving a user full rights to read/write all mailbo
    ... The "Allow Impersonation to Personal Exchange Information" ACL is at ... think I have narrowed it down to an Exchange permissions issue with the user ... Exchange mailboxes from a second server. ... permissions for the Mailbox Store in System Manager). ...
    (microsoft.public.exchange.admin)