PC Review


Reply
Thread Tools Rate Thread

Clear Password through VBA

 
 
Connie B via AccessMonster.com
Guest
Posts: n/a
 
      21st Jun 2006
Does anybody know if it is possible to use code to clear another user's
password without knowing the password, like you can do in Tools, Security,
User and Group Accounts, Clear Password?

I have been given a requirement for users to change their passwords
periodically so I have created a custom form for the users to change their
own passwords, which also stores the date when each user's password was last
changed. For users who have forgotten their passwords, I would like one of my
two database admins to be able to clear their passwords, but if they use the
standard User and Group Accounts form to clear the password, I am not able to
reset my table that tracks the last time the password was changed, so I lose
my history and also they are able to have an empty string for a password
(which my form prohibits).

I don't need/want to know what the password is, I just need to be able to
clear it. I am not able to use the NewPassword method, because it requires
that the admin user knows the old password before being able to change it.
Does anybody have any suggestions?

--
Message posted via http://www.accessmonster.com
 
Reply With Quote
 
 
 
 
Joan Wild
Guest
Posts: n/a
 
      22nd Jun 2006
You can use the NewPassword method.
If your 'database admins' are members of the Admins group, the string
supplied for the old password will be ignored.

You should be able to use the same form you have.


--
Joan Wild
Microsoft Access MVP

Connie B via AccessMonster.com wrote:
> Does anybody know if it is possible to use code to clear another
> user's password without knowing the password, like you can do in
> Tools, Security, User and Group Accounts, Clear Password?
>
> I have been given a requirement for users to change their passwords
> periodically so I have created a custom form for the users to change
> their own passwords, which also stores the date when each user's
> password was last changed. For users who have forgotten their
> passwords, I would like one of my two database admins to be able to
> clear their passwords, but if they use the standard User and Group
> Accounts form to clear the password, I am not able to reset my table
> that tracks the last time the password was changed, so I lose my
> history and also they are able to have an empty string for a password
> (which my form prohibits).
>
> I don't need/want to know what the password is, I just need to be
> able to clear it. I am not able to use the NewPassword method,
> because it requires that the admin user knows the old password before
> being able to change it. Does anybody have any suggestions?
>
> --
> Message posted via http://www.accessmonster.com



 
Reply With Quote
 
Connie B via AccessMonster.com
Guest
Posts: n/a
 
      22nd Jun 2006
Thank you Joan. It didn't occur to me that old password was not required for
database amdins since the help file does not state that it is optional. I
went back to the help file and now I do see that it mentions that it must be
supplied OR that you must be a member of the admins group, but I did not
initially catch the OR.

Thanks!

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...urity/200606/1
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't clear the password Margaret Bartley Microsoft Access Security 0 29th Apr 2008 02:05 AM
Clear just one password =?Utf-8?B?QW50b25pbw==?= Windows XP Internet Explorer 11 16th Jul 2006 05:08 PM
Password: How to clear password list saved by Window? =?Utf-8?B?S3lhdyBTb2UgTGlu?= Windows XP Security 0 8th Apr 2005 09:55 AM
clear IE password Bob Brannon Windows XP Internet Explorer 16 13th Mar 2005 01:52 PM
Need program to clear old password Rod Stubbs Microsoft Excel Misc 2 30th Oct 2003 06:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:36 PM.