jhansirani
22nd October 2003, 14:09
hello,
in my organization - we have windows 2000 server as OS. and Oracle 9i Database. the clients has windows98 and XP. for changing the password every time the enduser is coming to server and changing. Is many method or program to change the password of user at client machine.
slawko
23rd October 2003, 12:03
hi
you can use programs like vncviewer, install it on the windows server, set password and the end user has an vncviewer.exe program, which allows to connect to the server
This is like a graphical telnet where you can use mouse and you see everything like you were siting directly in front of your server.
Set low screen resolution and 256 colors on the server for faster work on the end user computer because everything is of course sent via network.
S³awek
eibrahimovic
24th October 2003, 11:27
HI,
On win98 users can change domain pass on control panel if administrator on server allove this.
On NT2K or XP user can change domain pass when press ctl+alt+del and go to option change pass if administrator on server allove this.
suhas-mahajan
4th November 2003, 13:27
Hi,
I faced the same problem but lastly succeed. Hope you like this.
1. Download pspasswd.exe from http://www.sysinternals.com/ntw2k/freeware/pstools.shtml
2. Copy it to your bse\bin folder (Yes, there is no harm to copy this, I am using it, since last six months)
3. Run this session.
|****************************** declaration section ***************************
declaration:
table tttaad200
#pragma used dll ottdllbw
long fp
long ret, file.id, size
string fname(80)
string comd(256)
string buffer(80)
string l.user(8) fixed
string line.text(100)
extern domain tcnamb username, logname
extern domain tcname oldpass, newpass, conpass, comm fixed
|****************************** form section **********************************
form.1:
init.form:
get.screen.defaults()
l.user = strip$(logname$)
logname = strip$(logname$)
select ttaad200.*
from ttaad200
where ttaad200._index1 = {:l.user}
and ttaad200._compnr = 000
selectdo
username = ttaad200.name
selectempty
message("User not found, cannot proceed.")
endselect
|****************************** choice section ********************************
choice.cont.process:
on.choice:
read.main.table()
|****************************** field section *********************************
field.conpass:
check.input:
{
if conpass <> newpass then
message("Password not confirmed!")
endif
}
|****************************** function section ******************************
functions:
function read.main.table()
{
fname = "pwdstat.txt"
mess("tcgenstring",0, "Thinking...")
ret = run.prog("command.com","/c pspasswd.exe " & l.user & " " & oldpass & " " & newpass & " >" & fname ,RP_NOWAIT)
suspend(1000)
file.id = file.stat(fname,size)
if ret = 0 and newpass = conpass then
mess("tcgenstring",0, " ")
if size > 156 then
message("The password has been successfully changed!")
e = run.prog("command.com","/c del " & fname ,RP_NOWAIT)
else
message("Sorry, Not Changed!")
e = run.prog("command.com","/c del " & fname ,RP_NOWAIT)
endif
else
message("Sorry, Not Changed!")
endif
}
Of course, one encrypting text issue is there, which I couldn't solve. If you found some solution, please do posting.
-Suhas
suhas-mahajan
4th November 2003, 13:35
As suggested, Start > Settings > Control Panel > Passwords may help you. But depends upon endusers awareness, because it is some what lengthy procedure.
Here is form screen-shot of above code.
-Suhas
r_bharose
24th November 2003, 13:07
Hi Mahajan,
The scripts works fine ....But the only problem is the user has to be administrator on windows server to get the password changed...
I certainly do not want my users to be administrators on the server.
There are options available in "pspasswd.exe" utility
============================================
PsPasswd changes passwords on a local or remote system.
Usage: pspasswd [\\RemoteComputer [-u Username [-p Password]]] [-d Domain] Username OldPassword [NewPassword]
-u Specifies optional user name for login to remote computer.
-p Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password.
-d Specifies optional domain of account for password changed.
Username Specifies name of account for password change.
OldPassword Current password of account
NewPassword New password. If ommitted a NULL password is applied.
==============================================
I tried -p and -u to specify the administrator and administrator password but it does not work.
Finally thinking of trying "su.exe" to run the program under administrative privileges.
Regards,
Ram
suhas-mahajan
25th November 2003, 05:33
Ram,
It seems path and environment variables are not set to different users except administrator, ok..no problem, you can specify full path of pspasswd in following line - ex. -
ret = run.prog("command.com","/c c:\fullpath\pspasswd.exe " & l.user & " " & oldpass & " " & newpass & " >" & fname ,RP_NOWAIT)
Hope this helps.
-Suhas
r_bharose
25th November 2003, 11:44
Hi,
This is my code for testing
message(str$(run.prog("command.com","/c pspasswd test baan test > c:\temp\res.txt", RP_WAIT)))
"test" is a user defined on the Baan server, who is a part of group "users"
when user test exucutes the session with this line , rs.txt file contans
==============================================
Access is denied.
PsPasswd v1.0 - local and remote password changer
Copyright (C) 2003 Mark Russinovich
Sysinternals - www.sysinternals.com
Error changing password:
==============================================
when user "baan" who is a member of administration group executes the session with following line
message(str$(run.prog("command.com","/c pspasswd baan baan baan > c:\temp\res.txt", RP_WAIT)))
I get the folliwng output.
==============================================
PsPasswd v1.0 - local and remote password changer
Copyright (C) 2003 Mark Russinovich
Sysinternals - www.sysinternals.com
Password for baan successfully changed.
==============================================
I concluded that the psapsswd.exe can be used only by the administrator to change the password of users.
Is your session working for users without admin rigths on your system?
Ram
suhas-mahajan
28th November 2003, 06:35
Ram,
Yes, I am able to change password without admin rights. Just try running pspasswd.exe directly on DOS prompt, by providing valid username and passwords and accordingly conclude.
I certainly do not want my users to be administrators on the server.
I am curious, why you want to allow your normal users logged on "live server"?
Regards.
-Suhas
learner
27th January 2004, 19:57
Hi,
I am curious, why you want to allow your normal users logged on "live server"?
Assuming that I have only 1 Win NT server , where baan is installed and also users are logging into Windows network on this server. How to solve this issue ?
Can you suggest some other alternative or better way to handle this situation ???
Regards
Learner
suhas-mahajan
30th January 2004, 06:33
Learner,
In fact, we are following same practice. Doesn't matter users should connected to same server, they can connect to other server or even not necessory to connect to any other server (it will work through IP address). I was talking about logging on server side, because pspasswd.exe is running on server side.
In both cases, I am able to change my password. Have you encountered the same error like Ram?
Just curious, Has anybody successfully run this utility?
-Suhas
learner
30th January 2004, 06:54
Hi,
I haven't tried this till now, will try it in a day or two, and willl let u know accordingly.
Just curious if somebody logins on my NT Server as normal user, can he change his password, or only admin is able to change the password for other users ??
I will try it and let u know whether the above code works or not.
Regards
Learner
suhas-mahajan
30th January 2004, 08:13
Learner,
As I wrote in previous post,
Yes, I am able to change password without admin rights.
In both cases, I am able to change my password.
-Suhas
suhas-mahajan
12th February 2004, 08:22
Yeah! Today I saw http://www.baanboard.com/baanboard/showthread.php?s=&threadid=14459 thread where Mark has suggested inputfield.password() which solved a important and pending password encryption problem of above code. Just add
before.program:
inputfield.password("oldpass")
inputfield.password("newpass")
inputfield.password("conpass")
these lines to above code.
Surprised nobody suggested till today.
-Suhas