Active Directory - setPassword method error

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

From: knea (knea00_at_yahoo.com)
Date: 06/18/04


Date: 18 Jun 2004 14:10:41 -0700

Hi,

I noticed a bunch of postings about getting error while invoking the
"setPassword" method. I am getting similar error and any help would
be appreciated. The error that I am getting is:

-------------------------------------------------
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. --->
System.Runtime.InteropServices.COMException (0x8007052E): Logon
failure: unknown user name or bad password.
   --- End of inner exception stack trace ---
-------------------------------------------------

Before I call my "setpassword" method, I have already enabled the
account and have called CommitChanges() method. I am using ASP.Net
with VB.Net.

I read somewhere that I need to use a secure connection to call the
"setpassword" method. Is this true? if yes then please give me some
more details as to how I can connect securely to my Active Directory
server. Passing AuthenticationType = Secure didnot work.

Thanks
Knea