Page 1 of 2 12>
Topic Options
#5941 - 2000-12-27 08:00 PM Password
Anonymous
Unregistered


Does anyone have an idea how to use Kix to force a user to change their NT password?

------------------
Jason W. Jones

Top
#5942 - 2000-12-28 08:01 AM Re: Password
Anonymous
Unregistered


If using NT is there a reason you would not use poledit, for policy?

Much easier and no extra work, one policy works on all!!

Top
#5943 - 2000-12-28 03:46 PM Re: Password
Anonymous
Unregistered


Thanks for the response SpriteMike. I guess I should ask the question diiferently.

I would like to notify our users when their password is going to expire (using Kix)...got that. I need to do it this way because we have several people on the road and they are using a secureID system. They don't get notified by NT when their password expires. So...all that being said. I need to find a way to let the user change their password, from the login script. In fact, force them to.

any ideas?

------------------
DrJones

Top
#5944 - 2000-12-28 05:14 PM Re: Password
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Jason,

I thought that I have found a way to do this but, i can't seem to find a way to change the password from a command line on a NT computer

win9x users have the "net password" option, but i can't find anything for NT users.

Bryce


Top
#5945 - 2000-12-28 05:23 PM Re: Password
Anonymous
Unregistered


Thanks Bryce.

I've been trying to find the same thing. I even toyed with idea of passing "CTL-ALT, DEL" keys, but that will not work. You can't get Kix to hold down two keys at the same time and send and additional key.

Thanks again.

------------------
DrJones

Top
#5946 - 2000-12-28 06:37 PM Re: Password
Anonymous
Unregistered


Have you looked into Autoit?
it is scripting and you can call it at certain times, it free and works great, here the link. http://www.hiddensoft.com/AutoIt/

Top
#5947 - 2000-12-28 06:57 PM Re: Password
Anonymous
Unregistered


I withdraw my last statement about Autoit could do this, just checked, will try, then confirm.

They say
Certain special keys can be sent and should be enclosed in braces:

N.B. Windows does not allow the simulation of the "CTRL-ALT-DEL" combination!
I can see some difficulty in this it would begin a shut down of the script, checking.

Top
#5948 - 2000-12-28 08:01 PM Re: Password
Anonymous
Unregistered


Thanks again SpriteMike.

It's a tough one. I've been using KixTart for 3 years and I'm stumped.

------------------
DrJones

Top
#5949 - 2000-12-28 08:25 PM Re: Password
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
I have been working on this too..... and so far i have only find this command line util
http://wwwthep.physik.uni-mainz.de/~frink/passwd.zip

that i couldn't get to work

Still looking.....

Bryce

Top
#5950 - 2000-12-28 09:31 PM Re: Password
Anonymous
Unregistered


I have VB C+ and other toys, will play with, the error levels are as follows, policy will have great effect on this.

switch (status) {
case NERR_Success:
// nothing to do
break;
case ERROR_ACCESS_DENIED:
printf("Error: The user does not have access to the requested information.\n");
break;
case NERR_InvalidComputer:
printf("Error: The computer name is invalid.\n");
break;
case NERR_NotPrimary:
printf("Error: The operation is allowed only on the primary domain controller of the domain.\n");
break;
case NERR_UserNotFound:
printf("Error: The user name could not be found.\n");
break;
case NERR_PasswordTooShort:
printf("Error: The password is shorter than required.\n");
break;
case ERROR_INVALID_PASSWORD:
printf("Error: The specified network password is not correct.\n");
break;
case ERROR_INVALID_PASSWORDNAME:
printf("Error: The format of the specified password is invalid.\n");
break;
case ERROR_NULL_LM_PASSWORD:
printf("Error: The NT password is too complex to be converted to a LAN Manager password.\n");
break;
case ERROR_WRONG_PASSWORD:
printf("Error: Unable to update the password. The value provided as the current password is incorrect.\n");
break;
case ERROR_ILL_FORMED_PASSWORD:
printf("Error: Unable to update the password. The value provided for the new password contains values that are not allowed in passwords.\n");
break;
case ERROR_PASSWORD_RESTRICTION:
printf("Error: Unable to update the password because a password update rule has been violated.\n");
break;
case ERROR_LOGON_FAILURE:
printf("Error: Logon failure: unknown user name or bad password.\n");
break;
case ERROR_PASSWORD_EXPIRED:
printf("Error: Logon failure: the specified account password has expired.\n");
break;
case ERROR_NT_CROSS_ENCRYPTION_REQUIRED:
printf("Error: A cross-encrypted password is necessary to change a user password.\n");
break;
case ERROR_LM_CROSS_ENCRYPTION_REQUIRED:
printf("Error: A cross-encrypted password is necessary to change this user password.\n");
break;
case ERROR_NO_SUCH_DOMAIN:
printf("Error: The specified domain did not exist.\n");


Nice find though, time to play!!

Top
#5951 - 2000-12-28 09:37 PM Re: Password
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
Getting User-info from NT

You can use:

Net User %username% /DOMAIN > %TEMP%\UserInfo.txt

on NT workstations to get info about nearly all net-info for the current user. Among other things all settings for password.

Let your script read UserInfo.txt and make what actions you want.

Erik

[This message has been edited by kholm (edited 28 December 2000).]

Top
#5952 - 2000-12-28 09:47 PM Re: Password
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Jason,

the error that passwd.exe give me is

Error: Undocumented error code 1327.


but that helps
Bryce


PS, also trying to have a user change the password using an admin type program like "net user" you get no access error messages, i am guessing admins only can use those programs.

Top
#5953 - 2000-12-28 10:17 PM Re: Password
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
If users are allowed to change password, are they allowed to use this command?

Net User "@USERID" "$NewPW" /DOMAIN

Erik

Top
#5954 - 2000-12-28 10:24 PM Re: Password
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Erik,

I tried that also, it was the first thing that i tried. In order to use that command the user would need admin rights.

I find it hard to belive that there is no command line util that a user could use to change their domain password....

Bryce

Top
#5955 - 2000-12-28 10:37 PM Re: Password
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
aggh i was right only admins can use the "net user" command
http://support.microsoft.com/support/kb/articles/Q149/4/27.asp


anyone who knows c++ care to take a look at this?
http://support.microsoft.com/support/kb/articles/Q165/3/84.ASP


Bryce

[This message has been edited by Bryce (edited 28 December 2000).]

Top
#5956 - 2000-12-28 11:27 PM Re: Password
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
Sorry Bryce!

The C++ script dosn't seam to overcome the limitations. Maybe if the C++ include libraries contains the rights to change password for the current user, this can be used, if this is true we must ask one of our fellow scripters to compile it and distribute it!

Otherwise the only difference is that you can compile CPW.C to CPW.EXE and execute it like this

Run 'CPW domainname username oldpassword newpassword'

Erik

Top
#5957 - 2000-12-28 11:40 PM Re: Password
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Thanks Erik!

I am still looking but every where i go, i keep finding "Press CTRL-ALT-DEL...."

Bryce

Top
#5958 - 2000-12-29 12:07 AM Re: Password
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
ok, i offer up one more idea before I leave for the night but this stuff is way over my head(dll stuff)..... and i am not sure if kix can do this or not.
http://msdn.microsoft.com/library/psdk/network/ntlmapi2_219g.htm

Bryce


Top
#5959 - 2000-12-29 01:16 AM Re: Password
Anonymous
Unregistered


Using AutoIt
script is,

run, %comspec%
send, net use l: /del
send, {enter}
send, net use l: \\\\SERVERNAME\\d$ /USER:MINDFX\\FAKEACCOUNT *
send, {enter}

send, Thopshopper{!}
send, {enter}
send, NET USER doggiedue * /DOMAIN
send, {enter}


sleep, 10000
send, net use l: /del
send, {enter}

This works, via VPN, have tried with user who is not admin, the script is a EXE.
this is not done, but just started and playing with it.

Figure use Kix to generate the window and with hidden consoles run the autoit, can use variables to input password for sending the completed.
NET USER doggiedue password /domain

make sense or am I wasting my time?

Top
#5960 - 2000-12-29 07:51 PM Re: Password
Anonymous
Unregistered


SpriteMike....Bryce...Kholm. Thanks for the help and time you put into your suggestions. I have to put this to bed until the middle of next week.

Happy New Year!!!!

Thanks again.

------------------
DrJones

Top
Page 1 of 2 12>


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

Who's Online
0 registered and 657 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.071 seconds in which 0.029 seconds were spent on a total of 13 queries. Zlib compression enabled.

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