• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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