473,836 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIS6 set password in AD from external webserver via asp

1 New Member
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 5393
kenobewan
4,871 Recognized Expert Specialist
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
cbuteau
1 New Member
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
twinders
1 New Member
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 Recognized Expert Specialist
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
6979
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 mysql_connect(host, user, password) where the password is hardcoded into my PHP source file in clear text. I see two security problems with this:
12
4923
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 be served up by the web server. So far, so good. The customer wants all of our passwords encrypted. So, how do I go about securely encrypting that password? If I use mcrypt, I have to store a key and an IV somewhere...and if those are in...
4
15851
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 the regional settings for the authenticated user, and if this user does not have a user profile then the default regional settings. Unfortunately, this does not seem to be working in IIS6, in that I have
2
6014
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 copied the DLL into my windows\system32 folder, but the error still appears. I tried adding my PHP folder to my PATH environment variable, but that didnt help either.
0
1372
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 Authenticationmode on this Web is integrated Microsoft. Up to now, everything worked fine, but we want to add a new function, which is getting me into problems.
0
992
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 upload files to a home directory, without sending login and password details in an unsecure manner. To cut to the chase, I want to setup a webserver, with an SSL certificate, and I would like to develope a client that can connect,
1
1443
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. This is a stage server and will have 2 IP's .56 and .32 I have the IP's bound to the NIC and they ping through the DNS like it use to.
1
2460
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 IIS ? Thanks
2
1083
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 here) http://technet2.microsoft.com/windowsserver/en/technologies/featured/iis/default.mspx
0
9810
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, 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...
0
10821
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10527
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 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...
0
10241
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7773
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 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...
0
5642
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...
0
5812
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4001
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3102
bsmnconsultancy
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...

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.