Re: FileCopy to a shared folder

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Willy Denoyette [MVP] (willy.denoyette_at_pandora.be)
Date: 01/25/05


Date: Tue, 25 Jan 2005 12:06:03 +0100


"BLiTZWiNG" <BLiTZWiNG@discussions.microsoft.com> wrote in message
news:4C1C3EAB-8EB3-4BB5-BA67-C60AF94522C9@microsoft.com...
> Thanks Willy. I decided to continue pursuing this course.
>
> However I'm still getting error 1326 (Logon failure: unknown user name or
> bad password) even though I can go straight to start->run and type
> \\ip.address or domain.name\share and be granted access after entering
> "Administrator" and the password, so I know the share is working and I
> have
> access to it.
>
> Why then would LogonUser not recognise the password? Would it have
> something
> to do with Active Directory? My workstation is not a part of the domain
> I'm
> trying to access, and for all intents and purposes, the final system wont
> necessarily be a domain controller or part of a domain, it's just a
> machine
> on a network that I know the user/pass of.
>

> So here is my LogonUser("Administrator", "192.168.0.5", "password", 8, 0,
> out token);
>
> I get a 1326 from that. Any ideas?

1326 - Means that "administrator" and/or "password" is not valid on
192.168.0.5. Or simply the credentials supplied are not valid.
Could you post your code (or at least the LogonUser declaration and the
calling code part).

Willy.
PS. LogonUser has nothing to do with AD.