IIS ASP - Re: .ChangePassword method using WinNT provider and error 424 | -2147024843

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > May 2004 > Re: .ChangePassword method using WinNT provider and error 424 | -2147024843





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: .ChangePassword method using WinNT provider and error 424 | -2147024843
Blake

2004-05-30, 11:54 am

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" <blake_duffey@NOSPAM.hotmail.com> wrote in message
news:u12D9qLREHA.3728@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?
>
>



Michael Harris \(MVP\)

2004-05-30, 11:54 am

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/e...es_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/e...des__0-499_.asp

53 The network path was not found. ERROR_BAD_NETPATH



--
Michael Harris
Microsoft.MVP.Scripting
Sammamish WA US

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com