• The ImunifyAV extension is now deprecated and no longer available for installation.
    Existing ImunifyAV installations will continue operating for three months, and after that will automatically be replaced with the new Imunify extension. We recommend that you manually replace any existing ImunifyAV installations with Imunify at your earliest convenience.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Change admin password with RPC API

M

m_t_80

Guest
Does anyone know if and how I can change the domain administrator's password using the XML interface (RPC API)? I am using PLESK 7.5 for Linux. Is there generally a documentation for all the commands of RPC API except from the one that is on the site. It would be usefull if we had all the xml commands and the results in xml language.
 
Well, documentation is not so clear, indeed, but at least their test script works, I've modified it a bit and then was able to run this php and change Plesk admin password from setup to setupp.

I've executed it right from shell and it provided me with an answer too:

<?xml version="1.0"?>
<packet version="1.3.1.0"><server><set><result><status>ok</status></result></set></server></packet>

Also some XML samples are provided by this RPM:

# rpm -ql psa-api-rpc-doc
 
Thank you for the reply but I don't want to change the admin password of PLESK. Each domainame has a domain administrator. The domain administrator can connect to PLESK using as username the domain name and he can configure his domain name. The password of this administrator I want to change. In the DB these passwords are kept in the table "accounts"
 
it's also possible to change password for domain level user of course, here's the XML packet I used for that:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<packet version="1.3.1.0">
<domain>
<set>
<values>
<user>
<password>
123qwe
</password>
</user>
</values>
</set>
</domain>
</packet>

Password changed to 123qwe and the server's answer was:

<?xml version="1.0"?>
<packet version="1.3.1.0"><domain><set><result><status>ok</status><id>17</id></result><result><status>ok</status><id>52</id></result><result><status>ok</status><id>54</id></result><result><status>ok</status><id>56</id></result><result><status>ok</status><id>57</id></result><result><status>ok</status><id>58</id></result><result><status>ok</status><id>59</id></result><result><status>ok</status><id>60</id></result><result><status>ok</status><id>62</id></result><result><status>ok</status><id>63</id></result><result><status>ok</status><id>65</id></result><result><status>ok</status><id>66</id></result><result><status>ok</status><id>67</id></result><result><status>ok</status><id>68</id></result><result><status>ok</status><id>69</id></result></set></domain></packet>

You just need to decompose a packet in a top-down manner - packet first, then domain, then set, then ...

according to the scheme described in the documentation:

http://download1.swsoft.com/Plesk/P...5.html#complexType_domainUserGet_Link037EDF90
 
just figured out - I've forgotten to specify the domain for which I wanted to change the domain admin password so it changed it for all of them :) it can be seen from server response with domain IDs, so be sure not to miss that
 
Back
Top