06-14-2013, 06:06 PM | #1 |
Junior Member
Join Date: Dec 2011
Posts: 7
|
ISPmanager user.edit change a password
Hi!
Can you give me a function who will change a password trough api for ISPmanager user? curl -k -s "http://<ip>/manager/ispmgr?out=text&func=user.edit&elid='.$hosting_id. '&passwd='.$hosting_pass.'&confirm='.$hosting_pass .'&sok=yes" that is not correct. it's showing me an error... Of course i can use also a passwd for username, but there will be less security if i will do that... Best regards! |
06-16-2013, 03:49 PM | #3 |
Junior Member
Join Date: Dec 2011
Posts: 7
|
I found a solution, i am using ssh2 connection and executing a command
ssh2_exec($connection, 'echo -e "'.$hosting_pass.'\n'.$hosting_pass.'" | passwd "'.$hosting_id.'"'); and that's works So you can close this ticket Last edited by archux; 06-16-2013 at 04:03 PM. |
|
|