473,793 Members | 2,922 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.ChangePassword method using WinNT provider and error 424

Windows 2000 Active Directory, IIS 5

ASP code looks like this:

Set oUser = GetObject("WinN T://DOMAIN/" & strNTName)
oUser.ChangePas sword strPassword, strNewPassword

If (err.number <> 0) Then
response.write( err.number)
End If

This code works on our test system, but gives an error on our production
system. err.number is 424.

I see nothing in my logs...

Any ideas?
Jul 19 '05 #1
2 7192
Actually, I think the problem is related tot he 'GetObject' line, and not
the password change line. I get the following error:

-2147024843

from the Set oUser line.

Ideas??

Blake
"Blake" <bl**********@N OSPAM.hotmail.c om> wrote in message
news:u1******** ******@TK2MSFTN GP10.phx.gbl...
Windows 2000 Active Directory, IIS 5

ASP code looks like this:

Set oUser = GetObject("WinN T://DOMAIN/" & strNTName)
oUser.ChangePas sword strPassword, strNewPassword

If (err.number <> 0) Then
response.write( err.number)
End If

This code works on our test system, but gives an error on our production
system. err.number is 424.

I see nothing in my logs...

Any ideas?

Jul 19 '05 #2
Blake wrote:
Actually, I think the problem is related tot he 'GetObject' line, and
not the password change line. I get the following error:

-2147024843

from the Set oUser line.


-2147024843 = 0x80070035

The 8007 indicates a Win32 error, but this one is *not* listed at:

Win32 Error Codes for ADSI
http://msdn.microsoft.com/library/en...s_for_adsi.asp

which instructs you to convert the last 4 hex digits to decimal

x0035 = 53 decimal

and look it up as a native Win32 error...

System Error Codes (0-499)
http://msdn.microsoft.com/library/en...es__0-499_.asp

53 The network path was not found. ERROR_BAD_NETPA TH

--
Michael Harris
Microsoft.MVP.S cripting
Sammamish WA US

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
10210
by: Blake | last post by:
ASP code looks like this (win2k, IIS 5, Win2k AD): <% Set oUser = GetObject("WinNT://ourdomain/testuser") response.write("user = " & oUser.Name) %> output is this: error '80070035'
1
5219
by: elziko | last post by:
Hi, I'm using the following code to create a user: Dim strNodeName As String = "test user" Dim NewUser As DirectoryEntry Dim AD As New DirectoryEntry("WinNT://MYCOMPUTER") 'delete user when existing Try
4
14043
by: Thomaz | last post by:
In VB, I can write the following code to get the list of users and groups in the domain ASIA. How do I do the same in C# Set objContainer = GetObject("WinNT://ASIA") objContainer.Filter = Array("user", "group") For Each user In objContainer List1.AddItem user.Name Next
6
13327
by: Rich Crusco via DotNetMonster.com | last post by:
I am looking for a way to convert the following vbs script to c# Const ADS_SECURE_AUTHENTICATION = 1 strADMIN = "adminaccount" strPASSWORD = "password" strUSER = "useraccount" Set dso = GetObject("WinNT:") Set srv = DSO.OpenDSObject("WinNT://servername/LanmanServer", strADMIN, strPASSWORD, ADS_SECURE_AUTHENTICATION) Set colResources = srv.Resources
2
3066
by: Evgeny | last post by:
Hello, I use in ChangePassword web control. The control is connected with a Membership provider that I also has defined. Particularly, there is such property in the provider: MinRequiredPasswordLength As far as I understood this property should control automatically length of of new password that was inputed by user in the control. But it didn't do it. For example, I defined MinRequiredPasswordLength=3, but I succeed to input and...
1
1522
by: javatopia | last post by:
Hello! I have a web page named "ChangePassword.aspx", which works just wonderful on my developer machine. When I deploy it to the server, though, I get: Compiler Error Message: CS0030: Cannot convert type 'ASP.changepassword_aspx' to 'System.Web.UI.WebControls.ChangePassword' public changepassword_aspx() { Line 121: string dependencies;
3
3277
by: Robert Iver | last post by:
Hello, I am developing an application in C# using VS .NET 2005 that will be accessing and updating Active Directory via LDAP. So, far I have written the main portions, but now I am stuck on the code to CHANGE and ADD/DELETE entries. I'm pretty sure my problem is security related, but I can't quite narrow it down. I bind to the root of the AD domain using an account that is a Domain Admin on the AD server itself, HOWEVER....
0
1266
by: AcidBurn | last post by:
Hi Im currently doing an application in .net using vb and I find the change password control very interesting so I decided to use it. The problem is...I always get an error of "Password incorrect or New Password invalid. New Password length minimum: 1. Non-alphanumeric characters required: 0." even if I supplied the correct parameters of the password and set the (minRequiredPasswordLength="1" minRequiredNonalphanumericCharacters="0") in...
2
7668
by: Ken Fine | last post by:
I want to add the security question and answer security feature to the ChangePassword control. I am aware that this functionality is built into the PasswordRecovery tool. I have implemented the PasswordRecovery with a Password reset required; a temporary password is sent to the account on file. I want an extra layer of security to accommodate the very unlikely contingency that someone's e-mail account is compromised. Challenging with the...
0
9671
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
9518
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10433
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
10000
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...
0
9035
agi2029
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...
1
7538
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...
1
4112
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3720
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2919
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.