473,401 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

IIS6 set password in AD from external webserver via asp

Hey there,

I have a little puzzle that I am trying to solve. I would like to set a user's password in AD (2003) from an external (i.e. non-domain member) webserver (2003/IIS6) via an .asp page. The page itself consists of nothing more than vbs code. If I run the code as a stand-alone vbscript from the command line, it completes successfully; however, when executed from the .asp page I get:


Microsoft VBScript runtime error '800a0046'

Permission denied

/setpass.asp, line 62

This error occurs at the line where I set the password:

Expand|Select|Wrap|Line Numbers
  1.     Set objprovider = GetObject("LDAP:") 
  2.     Set objuser = objprovider.OpenDSObject(userid, binddn, bindpw, ADS_SECURE_AUTHENTICATION)
  3.     objuser.Put "Description","something something" 
  4.     objuser.SetPassword "P@ssw0rd"
  5.     objuser.SetInfo
  6.  
If I use WinNT provider (with corresponding parameters) the thing works as expected, so, yes, I do have a solution. However, I prefer to use the LDAP provider and I just can't stand not knowing why or how it doesn't work.

Again, when I run this code as a vbscript from the W2003 webserver it runs just fine. When I request the same .asp page from Windows XP Pro w/IIS5 (also non-domain member) I also get the desired result.

Obviously, the problem lies somewhere in OS/IIS version (2003/IIS6 vs. XP/IIS5), but how to fix it? And why does the code run fine as vbs and not as asp? I must be missing something... I have run network monitor to see what kind of traffic is generated and I noticed that on XP there is traffic on port 389 and 445 (SetPassword); on 2003 I only see traffic on port 389. But why? Have been searching the web endlessly but still haven't found what I'm looking for.
Any ideas or suggestions?
Thanks,

Rudi
May 9 '07 #1
4 5371
kenobewan
4,871 Expert 4TB
I don't believe that you have an OS/IIS prob, you are not being granted permission from your asp page.
May 10 '07 #2
Hi,

You can create a new application pool in IIS and set the Identity setting with the local system or with an admin user. You would use the setpassword command.

Bye

Christian
Aug 16 '07 #3
Was there ever a solid solution to this problem? I'm having the same problem.

I tried to create a new AppPool, but that didn't work either. Would love to get this one finished.
Feb 26 '08 #4
kenobewan
4,871 Expert 4TB
Was there ever a solid solution to this problem? I'm having the same problem.

I tried to create a new AppPool, but that didn't work either. Would love to get this one finished.
Not sure if there was. The secure authentication may be leading to the permissions error. If this was asp.net, I might try impersonation.
Feb 27 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Bob | last post by:
Hi, I have a website in a Linux/Apache shared hosting environment and have been given access to the MySQL server running on the same machine. To access this database from PHP, I have to call...
12
by: Pat A | last post by:
We have a dilemma. We are storing our database password in an include file that resides outside of the web root. The password is in plain text. So, no one can get that password because it can't...
4
by: Jonathan | last post by:
Dear All, I am trying to set a webserver to use French regional settings for testing ASP pages. According to http://support.microsoft.com/kb/q306044, for IIS5, this is a matter of changing...
2
by: plank | last post by:
Hi, I am trying to install PHP using the ISAPI dll. It works fine using the EXE, but with the DLL I receive the following error message: The specified procedure could not be found. I have...
0
by: inoculator | last post by:
Hi all, somehow I'm going nuts with this authentications inside IIS6, but from the beginning: We have a W2k3 Server running IIS6 with an application running as NetworkService. The...
0
by: n. Smith | last post by:
Hello, I was wondering if there is any native support in vb.net for connecting to a web server such as IIS 6 using SSL (with a homemade certificate), soley for the purpose of allowing users to...
1
by: __Stephen | last post by:
Not finding assistnace on a networking site so I thought that I'd post this here as well. I have a rebuild of a server and we took the OS to 2003 for 2000. I am confused on setting up IIS6....
1
by: sharadg | last post by:
Why is it that IIS6 does not provide all the $_SERVER variables, otherwise available underApache ? Examples being, SERVER_ADDR, SERVER_PORT ... Is there any way to declare server variables under...
2
by: Edwin Knoppert | last post by:
So far i had some info that IIS6 is much better then 5 and before. For discussion over here i need to gather some information how to secure our IIS6 webserver and data. Suggestions? (Been...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
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...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.