473,387 Members | 1,501 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,387 software developers and data experts.

.ChangePassword method using WinNT provider and error 424

Windows 2000 Active Directory, IIS 5

ASP code looks like this:

Set oUser = GetObject("WinNT://DOMAIN/" & strNTName)
oUser.ChangePassword 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 7163
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**********@NOSPAM.hotmail.com> wrote in message
news:u1**************@TK2MSFTNGP10.phx.gbl...
Windows 2000 Active Directory, IIS 5

ASP code looks like this:

Set oUser = GetObject("WinNT://DOMAIN/" & strNTName)
oUser.ChangePassword 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_NETPATH

--
Michael Harris
Microsoft.MVP.Scripting
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
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
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...
4
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 =...
6
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 =...
2
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:...
1
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...
3
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...
0
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...
2
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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...

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.