CMD_API_USER_PASSWD does not return result every now and then

hamed

Verified User
Joined
Jul 21, 2004
Messages
17
Location
Iran (Tehran)
Hi,
When calling CMD_API_USER_PASSWD, every now and then (like 1 out of 10 times) , DA returns empty result while the password is changed successfuly.

Do you have any idea why this may happen and how can I trace this issue?
 
Hello,

Anything in the logs?
/var/log/directadmin/error.log

Also, try doing the same thing many times with your browser using the normal DA interface to see if you can duplicate the issue there.

Code in DA for CMD_API_USER_PASSWD and CMD_USER_PASSWD is 99% identical.
The only different is the text which is output, which changes when the CMD_API version is used.

If it works fine all the time with your browser, then my guess would that the php script is giving up before DA has a chance to output any information...
Browsers tend to be slightly more forgiving with regards to waiting, as opposed to internal php functions which may have a different idea of how long to wait.

Also try DA in debug mode:
http://help.directadmin.com/item.php?id=293

Looking at the internal password changing code in DA, there isn't much debug output, but try it anyway, in case there are errors somewhere else which may be related.

John
 
Back
Top