troubleshooting Question

error 800a01b6 - When creating mailbox from ASP web page

Avatar of AQNSYS
AQNSYSFlag for United States of America asked on
Visual Basic ClassicASPExchange
3 Comments1 Solution387 ViewsLast Modified:
Hello,

I've created an ASP web page to create Active Directory user accounts.

The web page is running on a Server 2003 SP2 IIS 6 installation.
The Exchange Server is 2003 w/SP2 is running in a different server.

The Exchange System Manager is running on the web server.

The web page uses ADSI code to create a user, and then CDO code to create
the mailbox e.g.

Set objRootLDAP = GetObject("LDAP://rootDSE")
strDefaultNamingContext = objRootLDAP.Get("defaultNamingContext")
Set objContainer = GetObject("LDAP://" & strContainer & objRootLDAP.Get("defaultNamingContext"))
Set objUser = objContainer.Create("User", "cn=" & strUser)

objUser.Put <set all the user info>
objUser.SetInfo

objuser.CreateMailbox <string representing MTA>

Now, when I connect to this site using my domain admin credentials, it
works fine. However, if a user I have created for this purpose connects to this site, the user account is successfully created in AD but upon reaching the "CreateMailbox" line, he gets

Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method

The person who is going to be using this page can't have full Administrative rights over the domain, only User and Mailbox creation rights.

Thanks for any help you can provide me!
ASKER CERTIFIED SOLUTION
Satya Pathak
Domain Architect

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros