Page 1 of 1 1
Topic Options
#36774 - 2003-02-20 04:40 PM NT Password
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
I am looking to develop a script to change a users password.. but here is the catch. I have several exes that I have found around the Internet that I can shell out and use but the trouble seems to be that after a user changes his/her password the cached password on the client is no longer valid and access to those resources are no loger good. Any way to "refresh" that cached password so to speak?

Thanks
_________________________
Austin Henderson

Top
#36775 - 2003-02-24 04:03 PM Re: NT Password
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4401
Loc: New Jersey
If they are W9x clients, you can remove the .PWL files from the windows directory, where the cached values are stored.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#36776 - 2003-02-24 04:05 PM Re: NT Password
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
If they are Win9x clients disable password caching.

[ 24. February 2003, 16:06: Message edited by: Jack Lothian ]
_________________________
Jack

Top
#36777 - 2003-02-25 04:23 AM Re: NT Password
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
They are all Win2K/NT/XP Clients.

Thanks
_________________________
Austin Henderson

Top
#36778 - 2003-02-25 06:01 AM Re: NT Password
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
so, are you looking to something like changing the password while the user is logged on?
_________________________
!

download KiXnet

Top
#36779 - 2003-02-25 07:19 AM Re: NT Password
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
After the password is successfully changed, log the user off. Prompt them that they must use the new password, then log them off. They have to get a new Token from the Server.

Logoff( )

Action: Logs the current user off and ends the Windows session.

Syntax: LOGOFF (force)

Parameters: Force
During a logoff operation, applications that are shut down are allowed a specific amount of time to respond to the logoff request. If the time expires, Windows displays a dialog box that allows the user to forcibly shut down the application, to retry the logoff, or to cancel the logoff request. If the Force value is true (ie : non-zero), Windows always forces applications to close and does not display the dialog box.

0
Windows does not force applications to close.
1
Windows always forces applications to close and does not display the dialog box.


Returns: 0 User logged off
Error code Function failed

Top
#36780 - 2003-02-25 05:20 PM Re: NT Password
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
Yeah. this is how I was doing it but I would sure like to be able to do it just like the built in password change... I just dont like the user having to log out.

Any thoughts?

Thanks
_________________________
Austin Henderson

Top
#36781 - 2003-02-26 01:19 AM Re: NT Password
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
Yeah... the thought is:

The built-in method also changes the password and when the user attempts to hit a resource which he/she has not already opened with his/her current Token would be denied access.

Does not matter if it happens via GUI or SCRIPT or COMMAND-LINE

Top
#36782 - 2003-02-26 01:22 AM Re: NT Password
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
So why don't you just use the built-in applet?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#36783 - 2003-02-26 10:15 PM Re: NT Password
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
Trying to sync passwords across multiple platforms... not essential to include the windows password but would be very nice.. NTDOC are you stating that this is the same thing that happens using the WINNT built in method to change PW?
_________________________
Austin Henderson

Top
#36784 - 2003-02-26 10:44 PM Re: NT Password
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
Yes.

Question, or statement.

Windows 9x password has nothing to do with the Network Password.

Personally I'd remove the Windows password and have it be blank. No real need for it anyways.

The issue though of changing the NT Domain User Network password is that it does not matter how it is done. The user will still be able to access anything they have already opened, but anything new, would give them an Access Denied message.

This is by Design for Security reasons. Without some black magic hacking... I don't know of any legitamate way accept to log the user off and log back on to get a new Security Token based on the new password.

Top
#36785 - 2003-02-26 10:46 PM Re: NT Password
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
Ok.. I understand you now.. we are on the same page.. this is interesting.. I will think on it some more.
_________________________
Austin Henderson

Top
#36786 - 2003-03-13 02:28 PM Re: NT Password
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
well my app works like a champ... one problem.

I have users who are mobile.. they log into my network via vpn. Currently they change their password using the built in "feature" this must refresh the local security credentials because once the user logs out of their laptop they are able to get back in with the new password. Now my problem is can I replicate this using kix. I change the passwords just fine.. but laptop users cant log in with their new password only their old. Then they will come back into the VPN which will ask them for their password because the cached one is old... and then open resources that will again either deny them or ask for password. Can I get around this?

Thanks
_________________________
Austin Henderson

Top
#36787 - 2003-03-13 02:34 PM Re: NT Password
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
What VPN are you using?

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#36788 - 2003-03-13 02:37 PM Re: NT Password
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
PPTP based Win2K RAS
_________________________
Austin Henderson

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1179 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.068 seconds in which 0.027 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org