RE: Changing password with code

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Eric Butts [MSFT] (ebutts_at_online.microsoft.com)
Date: 09/15/04


Date: Wed, 15 Sep 2004 00:50:38 GMT

Hi,

If you followed the article exactly:
ACC2000: How to Change User Passwords Programmatically Using DAO
http://support.microsoft.com/default.aspx?scid=KB;EN-US;200665

The key parts of calling the function ChangeUserPassword are the following:
====================================================================

TO ALLOW USER TO CHANGE THEIR OWN PASSWORD:
(looks like you are using this one)

For the button function
     Private Sub CmdChange_Click()

The key lines are
     Call ChangeUserPassword(CurrentUser(), "", Me!txtNewPassword)

     Call ChangeUserPassword(CurrentUser(), Me!txtOldPassword,
Me!txtNewPassword)

FOR THE ADMINSTRATOR TO CHANGE A USER'S PASSWORD:

For the button function
     Private Sub cmdChangeAdmin_Click()

The key lines are
       Call ChangeResetPassword("Change",Me!txtUserName, _
         me!txtAdminUsername, me!txtAdminPassword, Me!txtNewPassword)

So in your case it appears that you should be calling the function as
follows

   Call ChangeUserPassword(CurrentUser(), Old Password if any, New Password)

NOTE: if the use does not have an Old Password then the argument passed is
""

I hope this helps! If you have additional questions on this topic, please
respond back to this posting.

Regards,

Eric Butts
Microsoft Access Support
ebutts@online.microsoft.com
"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
<http://www.microsoft.com/security/security_bulletins/ms03-026.asp> and/or
to visit Windows Update at <http://windowsupdate.microsoft.com/> to install
the patch. Running the SCAN program from the Windows Update site will help
to insure you are current with all security patches, not just MS03-026."

This posting is provided "AS IS" with no warranties, and confers no rights

--------------------
| Thread-Topic: Changing password with code
| thread-index: AcSabrpiD8Xyy6QWT4Cg59/Rm8Uhtw==
| X-WBNR-Posting-Host: 64.112.130.107
| From: =?Utf-8?B?TmVpbCBDYXNo?= <NeilCash@discussions.microsoft.com>
| Subject: Changing password with code
| Date: Tue, 14 Sep 2004 08:23:03 -0700
| Lines: 15
| Message-ID: <4DB481AB-E538-445C-A915-A6F6BCC470A6@microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.access.security
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.access.security:13463
| X-Tomcat-NG: microsoft.public.access.security
|
| I give up, I need help. I looked at the security faq, and I have the
change
| password with DOA method code. And it doesn't work. I double checked to
| make sure that I had the right reference selected, and I do have
Microsoft
| DAO 3.6 Object Library selected. And it still doesn't work. I think
it's a
| REALLY simple fix, because I'm not sure what goes into the function. I
have
| a call to the function, and I'm not sure about proper format or what goes
| into it. Here is what I have tried so far:
| ChangePassword
| ChangePassword()
| ChangePassword([Enter User Name],[Enter New Password])
| ChangePassword("","")
| ChangePassword(strUser, strPwd)
| ChangePassword(,)
|
| I'm obviously missing something here, please help me...
|



Relevant Pages

  • [NT] Cumulative Security Update for Internet Explorer (MS04-025)
    ... Get your security news from a reliable source. ... * Microsoft Windows NT Workstation 4.0 Service Pack 6a ... Navigation Method Cross-Domain Vulnerability ...
    (Securiteam)
  • SecurityFocus Microsoft Newsletter #75
    ... Microsoft's Internet Security & Acceleration Server with fault-tolerance ... The Microsoft UPnP Vulnerability ... Relevant URL: ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #120
    ... Strengthening Network Security: FREE Guide Network security is a ... MICROSOFT VULNERABILITY SUMMARY ... Microsoft Windows File Protection Signed File Replacement... ... PlatinumFTPServer Information Disclosure Vulnerability ...
    (Focus-Microsoft)
  • Re: A 6% fix from Microsoft Security Bulletin MS03-040 - 828750
    ... Now if the geeks over at Microsoft could get "infected" with some of this ... The Internet is already mind blowing in the way it can bring people ... that creates an unacceptable risk of security compromise and we need to shut ... down all Internet browsing with IE. ...
    (microsoft.public.security.virus)
  • Re: A 6% fix from Microsoft Security Bulletin MS03-040 - 828750
    ... Now if the geeks over at Microsoft could get "infected" with some of this ... The Internet is already mind blowing in the way it can bring people ... that creates an unacceptable risk of security compromise and we need to shut ... down all Internet browsing with IE. ...
    (microsoft.public.win2000.security)