Hello,
I've created an ASP web page where users in our organization can create
Active Directory computer accounts.
The web page is running on a Server 2003 SP1 IIS 6 installation. The
Exchange System Manager is running on the web server and Exchange SP2 has
been installed.
The web page uses ADSI code to create a user, and then CDO code to create
the mailbox e.g.
set oOU=GetObject(< LDAP string for OU>)
set oUser=oOU.Creat eUser("user",<C N for user>)
' set a bunch of attributes
' now create mailbox
set oMailbox=oUser
oMailbox.Create Mailbox <string representing MTA>
Now, when I connect to this site using my domain admin credentials, it
works. However, if a user connects to this site, the user account is
successfully created in AD but upon reaching the "CreateMail box" line, I get
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method
Thinking that this was most likely a permissions issue, I took the .asp page
containing the code and converted it to a .vbs file. Then, I logged in as the
user account and used cscript to execute the .vbs file. Both the user account
and the mailbox were created succesfully.
I don't understand why the code runs under the context of a user account as
a vbs script, but doesn't run as an ASP page unless the user is a domain
admin. It's not permissions on AD or Exchange or the code wouldn't have run
as a vbs script. What is different about running it as an ASP page?
Thanks for any help you can provide me!
Michael Gibbons
Bellevue, WA 2 5357
Michael wrote:
Hello,
I've created an ASP web page where users in our organization can
create Active Directory computer accounts.
The web page is running on a Server 2003 SP1 IIS 6 installation. The
Exchange System Manager is running on the web server and Exchange SP2
has been installed.
The web page uses ADSI code to create a user, and then CDO code to
create the mailbox e.g.
set oOU=GetObject(< LDAP string for OU>)
set oUser=oOU.Creat eUser("user",<C N for user>)
' set a bunch of attributes
' now create mailbox
set oMailbox=oUser
oMailbox.Create Mailbox <string representing MTA>
Now, when I connect to this site using my domain admin credentials, it
works. However, if a user connects to this site, the user account is
successfully created in AD but upon reaching the "CreateMail box"
line, I get
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method
Thinking that this was most likely a permissions issue, I took the
.asp page containing the code and converted it to a .vbs file. Then,
I logged in as the user account and used cscript to execute the .vbs
file. Both the user account and the mailbox were created succesfully.
I don't understand why the code runs under the context of a user
account as a vbs script, but doesn't run as an ASP page unless the
user is a domain admin. It's not permissions on AD or Exchange or the
code wouldn't have run as a vbs script. What is different about
running it as an ASP page?
Thanks for any help you can provide me!
If the website allows Anonymous access, the the asp code is not running
under the user's context.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
It doesn't. It uses Basic Authentication. (I plan to install an SSL
certificate if I get this working.) Users are prompted for their Active
Directory credentials when they access the site. I use NTFS permissions on
the site contents to permit access to the site. This is working ok as users
not in the AD security group that has Read/Execute permission can't get at
the site.
"Bob Barrows [MVP]" wrote:
Michael wrote:
Hello,
I've created an ASP web page where users in our organization can
create Active Directory computer accounts.
The web page is running on a Server 2003 SP1 IIS 6 installation. The
Exchange System Manager is running on the web server and Exchange SP2
has been installed.
The web page uses ADSI code to create a user, and then CDO code to
create the mailbox e.g.
set oOU=GetObject(< LDAP string for OU>)
set oUser=oOU.Creat eUser("user",<C N for user>)
' set a bunch of attributes
' now create mailbox
set oMailbox=oUser
oMailbox.Create Mailbox <string representing MTA>
Now, when I connect to this site using my domain admin credentials, it
works. However, if a user connects to this site, the user account is
successfully created in AD but upon reaching the "CreateMail box"
line, I get
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method
Thinking that this was most likely a permissions issue, I took the
.asp page containing the code and converted it to a .vbs file. Then,
I logged in as the user account and used cscript to execute the .vbs
file. Both the user account and the mailbox were created succesfully.
I don't understand why the code runs under the context of a user
account as a vbs script, but doesn't run as an ASP page unless the
user is a domain admin. It's not permissions on AD or Exchange or the
code wouldn't have run as a vbs script. What is different about
running it as an ASP page?
Thanks for any help you can provide me!
If the website allows Anonymous access, the the asp code is not running
under the user's context.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM" This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Sam |
last post by:
Hi,
I integrated the following programs in freebsd 5.4.
phpldapadmin
openldap 2.2_26
courier-imap
courier-authlib
courier-authdaemon
cyrus-sasl2-saslauthd
postfix
|
by: Manuel Krummenacher |
last post by:
Hello!
I'm trying to develop an application to manage email-forwardings on an
Exchange 2000 Server.
Forwardings to external Addresses are requiring a contact with an
Exchange account. I can create the contact in the Active Directory, but
when I try to create an Exchange Account, I get this error (translated
from German):
|
by: Ron Vecchi |
last post by:
I a runnning w2k3 pop3 mail server that came with iis6.
I would like to write an application that progammtically creates the new
mailboxes in an already established mail domain.
Does anyone know how I would access this funcationality?
Thanks,
Ron Vecchi
|
by: Vincent Nguyen |
last post by:
Hi,
I have problem create exchange 2000 mailbox using CDOEXM in my Web Service
application. The error I got was "Catastrophic failure". Here is the code
that I have:
DirectoryEntry user = new
DirectoryEntry("LDAP://fmsamrmc001.amrmc.minicorp.intel.com/"+strDN);
user.Properties.Value = "aaamailbox1";
user.CommitChanges();
|
by: Michael |
last post by:
Hello,
I've created an ASP web page where users in our organization can create
Active Directory computer accounts.
The web page is running on a Server 2003 SP1 IIS 6 installation. The
Exchange System Manager is running on the web server and Exchange SP2 has
been installed. The IIS site is configured with Basic Authentication and
users are prompted to enter their Active Directory credentials when
connecting to the site.
| |
by: Abhi |
last post by:
i need to create a user in web mail using dotnet coad by using
webmailserver api
ex: xxx is my webmail
then
i want to create to a user in that webmail xxx
ex: yyy@xxx.com
how i should do in dotnet code
plz.... help me
|
by: arjen1984 |
last post by:
I want to create a mailbox-enabled mailbox. First i have used the toturial from microsoft:
http://support.microsoft.com/kb/313114
Then my homeMDB string was incorrect. I saw an article , link:
http://forums.asp.net/thread/952974.aspx
This guy has the same problem as me. I still have that problem. Mine server is a local server, so i have nog second domain name, i think.
This i my code of my homeMDB:
try
{
CDOEXM.IMailboxStore...
|
by: rage2001 |
last post by:
I have a script (ASP) written which creates an account in AD, creates a
folder on our file server and sets its permissions, and then creates a
mailbox on the exchange server and sets its permissions... This script use to
work fine, and it hasnt been used in 2 months (since we have had no new
students since the end of the term).
I have part of the script below. There is alot of code above this script
which gets executed perfectly....
|
by: pjblecha |
last post by:
Hello all:
I'm working on a non-web-based (darn it...) application that will be set up as a scheduled task on an Exchange server to run against a mailbox 2-3 times per day. What the app needs to do is read messages in the mailbox, then create appointment items based on filtering the subject line and parsing text from the message body (which will be in HTML format). I have old VBScript that will create the appointment items, set them to a...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |