shivanand
2nd July 2003, 09:10
Hi,
I have to use baan session to allow users to change their baan login password.However even in unix when we use passwd it prompts for old and new password.
The user should be allowed to enter all the three passwords on form itself and then the script should be able to take care of the changing the password in Unix without prompting.
How do i achieve it.
olabas
2nd July 2003, 10:28
Please look at http://www.baanboard.com/baanboard/showthread.php?s=&threadid=10253&highlight=passwd
There are a lot of informations about using passwd and also some related links.
I hope that helps.
Markus Schmitz
2nd July 2003, 11:24
The standard passwd command will not allow to pass the actual password in a parameter, a pipe or in a "here" script.
This is done on purpose to prevent hack attacks.
But on the internet you will find alternative password programs, which will allow to pass the new password as a parameter.
You can try to write a from, which collects the old and new password and then calls one of these programs. But there is a slight moment in time, when any user would be able to see the new password in the process list.
So it is not 100% save, but this might be ok for your environment.
Regards
Markus
patvdv
2nd July 2003, 11:40
Nico is right. The reason why you can't script 'passwd' is because it's hardcoded to require a TTY. You would need a script that can 'fake' a TTY. Expect is language with such capabilities. There's is also a PERL module that could do the same. But as Nico says, it remains insecure.
Han Brinkman
2nd July 2003, 13:44
Did you ever checked that solution and tried if that works for you?
Regards,
Han
Juergen
2nd July 2003, 15:05
Hi Han,
is solution 119781 really available for Baan IV. Maybe i am wrong, but i think thats a solution only for ERP.
Juergen
ssbaan
2nd July 2003, 16:14
We resolve the issue in a little different way. We wrote a BaaN session that does nothing but call a Unix srcipt the runs the Unix passwd command.
Just another suggestion