Asp Create Mailbox Question

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.

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.CreateUser("user",<CN for user>)
' set a bunch of attributes
' now create mailbox
set oMailbox=oUser
oMailbox.CreateMailbox <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, after being prompted by
IIS' basic authentication for AD credentials, the user account is
successfully created in AD but upon reaching the "CreateMailbox" 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?

View Replies


ADVERTISEMENT

800a01b6 Create Mailbox Asp

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.CreateUser("user",<CN for user>)
' set a bunch of attributes
' now create mailbox
set oMailbox=oUser
oMailbox.CreateMailbox <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 "CreateMailbox" 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?

View Replies View Related

How To Create A Users Exchange Mailbox?

Anyone know how it is done? This is what I have:

dim exchUser 'line 500
set exchUser = oAddUser 'the user I have added defined as: set oAddUser=oOrgUnit.Create ("user", sAddUser)
dim strServerPath
strServerPath = GetEmailServer
exchUser.CreateMailbox strServerPath
exchUser.SetInfo

But it comes back with: error 800a01b6 line 504 exchUser.CreateMailbox

View Replies View Related

Create Exchange Mailbox Error (ASP)

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. The code that is missing creates an account in the AD, creates a folder on the file server and gives that folder the correct permissions...

This is the section that does not work, and I am testing seperately with no success... I have checked the permissions on the server (gave the account full permissions), still nothing... I added the account creating the mailboxes to the security in the exchange system manager. Code:

View Replies View Related

Getting Exchange Mailbox Size From ASP

Is it possible to get the size of a users exchange 2003 mailbox from ASP?

View Replies View Related

Create Database And Create Table On One Form

Here's what my code looks like...

View Replies View Related

Create A PDF From ASP

Is there anyway to generate a PDF using ASP Scripting(VB Script).

View Replies View Related

Create Pdf

Does anybody knows a way (free of cost, code or dll) to generate pdf?

View Replies View Related

Create Url

I use a website in asp for which I have to type a username and
password everytime I want to login.
On the form are two fields for typing the username and password and
one button LOGIN.
I want to create an standard url for the website which includes my
username and password so I don't have to type it in everytime.

I looked at the page source but I can't find the right string.
I thought maybe http://.........aspx?username=me&password=it

but that doesn't work.

View Replies View Related

Create PDF

Is there a (simple) way to create a PDF file from ASP?

View Replies View Related

Cannot Create A Asp

I have 2 developper machine running visual studio 2003 and Windows 2000. On the first machine (Machine A) I may create a new asp project without problem. On the second (Machine B) I cannot create a new project.Visual Studo create the project but not the initial files and freezes.

But I may create a new project from Machine A using the web server of machine B.I have checked the access rights of both servers, the access rights on directory wwwroot and inetpub.Everything seems the same.

View Replies View Related

Create A TGP In ASP

Has anyone seen or know if anyone has done this? I think that ASP would be a great tool to do this with but I am curious if anyone has tried it and found it to be too hard or too burdensome to follow through with?

View Replies View Related

Create New User Using IIS/ASP

I'm running IIS5 on a Win2K server, and I want to have an ASP page that
creates new users. I have some simple code to test this, but am getting
a "500" error when I run it. The ASP looks like:

<%

strDomain ="Foo.com"
strUser ="Foo1"

' Create new user with password
Set oDomain = GetObject("WinNT://" & strDomain)
Set oUser = oDomain.Create ("User", strUser)
oUser.SetPassword = "password"
oUser.SetInfo
%>

Just for this testing, I've added IUSR_machinename to the Administrators
group, but am still getting the 500 error.

View Replies View Related

Create Object & DAO

how to create dao.tabledef object in asp:

I need to convert the following code into asp:
Dim tdf As DAO.TableDef
Dim db As DAO.Database
Dim fld As DAO.Field

Set db = OpenDatabase("C:Mydb.mdb")
Set tdf = db.TableDefs("Table1")
Set fld = tdf.CreateField("Field2", dbText, 10)
tdf.Fields.Append fld

View Replies View Related

Create Hostheader With ASP

Is there a way to create a host header in IIS with an ASP?

View Replies View Related

How Can I Create A Guestbook?

I want to create a web page for my friends.(I have a subdomain and my server supports ASP scripts) It will contain a small basic guestbook.It must write the entries to a text file on the server.And i must be able to view the guestbook.

View Replies View Related

Create ASP File On The Fly

I'd like to create ASP file on ther server side. Can I use
fso.createtextfile("c:folder est.asp")
Do I need to create a folder too?

View Replies View Related

Trying To Create A Menu With ASP

I am trying to create a menu with multiple tiers. I want to use the one menu as an include file throughout the site. Depending on what page you are on, I want the 2nd and third tiers to show up.

The rest just show the tier 1 links. I'm pretty sure this can be done in CSS, but the problem is that with a very big menu, I'd rather not have to load up the entire menu when it all won't be showing.

There for I figured I could create it in ASP. I could set some sort of parameter in the page so the menu include file would know what page I'm on, and then would only show and load the 2nd and 3rd tiers of that section. Is this possible? Code:

View Replies View Related

Create Xml File With Asp

is it possible to create a xml file and save so that i can upload with asp?

View Replies View Related

Create Flowchart

i want to create flowchart/flowdiagram like msword.And the user type inside the rectangular what they want to do..

View Replies View Related

Create Txt File

How can I simply save some data into a flat file (.txt) ? I've some data available and if the user clicks on a button it will save that data into the flat file... The user also need to define the directory (as in VB the common dialog box)...

Is this possible ???

View Replies View Related

OWC Component Cannot Be Create Using ASP

I have created an asp page that pulls data from SQL server and displays
on webpage in the form of Table and Chart.

I use OWC to generate Chart. It work find on my computer with Ms office
2000 installed, but when I upload my the page to my webserver, it
doesn't work with the following error message:

006~ASP 0177~Server.CreateObject Failed~Invalid ProgID. For additional
information specific to this message please visit the Microsoft Online
Support site located at: http://www.microsoft.com/contentredirect.asp.

Does anyone know how to solve this problem?

P.S. On the production server, Office Web Component had already been
installed. WSCript.CreateObject("OWC.Chart") works fine in my colleage's
vbscript file.

View Replies View Related

Create An Use Threads

tell me with some examples to how to use our own threads in asp pages. I tried to do it in usual way how we are suppose to use it in console and windows application. but the same thing will fail in asp pages. it give "nullreference" exception from unknown module.

View Replies View Related

Create New Folder

how can i create a new folder by using ASP??

View Replies View Related

Cannot Create ASP File

I have Windows 2000 and recently included Internet Information Services. I
then created a simple ASP file and clicked on it. The Open With dialog
appears asking me to select a program. I copied an existing ASP file,
test.ASP from another computer where it runs successfully. When I copied it
to my computer it changed to test.ASP auto file. The other computer runs
Windows XP. I am not sure is this is the issue. I verified the IIS is up
and running on my computer. Is there anything that can be done to correct
this?

View Replies View Related

Using ASP To Create DOC File ...

I am using ASP code to create a Word document on the server and all is working except for one thing: I need to be able to insert page breaks. My existing style formatting for page breaks does not seem to insert a page break into the Word DOC. Suggestions? Code:

View Replies View Related

Create A Jobsite

How to create a jobsite.Please help me.Is any information regarding how to proceed to create a jobsite

View Replies View Related

Create A Dynamic URL

I've captured some data from a form and stored it in an SQL server table. The form is passed to an action script which builds the sql statement and writes the data to the db.

I want to write a URL (http://www.mysite.com/sites/home.asp)
and store the userID at the end of the URL (http://www.mysite.com/sites/home.asp?userID=22) so when I call the URL from a web page it goes to that users page.

I'm not sure how to approach this?

View Replies View Related

Create Table

I know I can Create Tables In a database with the CREATE TABLE sql statment, but I don't exactly know the syntax of the statment.

I want to add a table with a sertin feild that has a default value, is that possible?

The syntax I know is:

sql = "CREATE TABLE tablename(feildname FEILDTYPE,feildname FEILDTYPE...)"

Are there any other parameters that I can add to the statment?

View Replies View Related

How To Create Login?

I would like to create a login into my very simple web site. I was hoping if somebody could give me some links for good websites or if somebody has a good example that i can work on. I also want to be able to allow users to join.

View Replies View Related

Create A Combo Box In ASP 3.0

I want to take a text box that is in a grid and make it a combo box: Here is what the first part of the HTML looks like now:

<input type="text" name="txt_SERVICE_SN"
onkeypress="filterNonNumeric()" size="5" maxlength="3"
style="text-align:right"
onchange="fieldEdited(this.parentNode.parentNode)">

I tried switching the "text" to be "combobox" and that doesn't work.

I saw some other code for other combo boxes (not in the grid) and saw something like this:

<select id="test2"></select>

This will make a combo box. But I don't know why. I can't see anything in there that uniquely identifies this as a combo box.

View Replies View Related

Create New Variable

is it possible to create a new variable from an array element eg:

myArray=array("a","b","c")

var myArray(2) = "hello" 'create a variable called 'b'

response.write(b) displays 'hello'

View Replies View Related

Create A Link

How would you go about creating a link on a desktop through an asp page.
You know the old trick click here to bookmark this page?. I need to take that a step further, i need a link that when clicked it creates a link on the desktop to that page.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved