$password variable is unavailable in the latest cPanel release
Hi,
It looks like in cPanel 11.40 $password variable is unavailable through API anymore. It's just returned as is.
My logs:
As you can see $user was replaced with my username, but $password not. Anyone have information about this issue?
[07-Nov-2013 14:16:11] (exec) SEND:
{"module":"print","reqtype":"exec","func":"","apiversion":"1","args":"$user - $password"}
[07-Nov-2013 14:16:11] (exec) RECV:
{"apiversion":"1","type":"internal","command":"print","source":"internal","data":{"result":"egor1 - $password"},"event":{"result":1}}
[07-Nov-2013 14:16:11] JSON_decode: array(6) {
["apiversion">=>
string(1) "1"
["type">=>
string(8) "internal"
["command">=>
string(5) "print"
["source">=>
string(8) "internal"
["data">=>
array(1) {
["result">=>
string(17) "egor1 - $password"
}
["event">=>
array(1) {
["result">=>
int(1)
}
}
As you can see $user was replaced with my username, but $password not. Anyone have information about this issue?
-
That is correct. As of 11.40, that variable is no longer available; it was removed as a security feature. There are other ways to get where you're going on this, including creating a session on behalf of a cPanel user by a WHM user. Please feel free to contact integration@cpanel.net with questions about changes to your process. 0
Please sign in to leave a comment.
Comments
1 comment