• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Cannot create Database with RPC

VanFanel

New Pleskian
Hello everyone,

i try to create a new database over the RPC-API on a Plesk 11.0.9 Update #41 with an reseller account.

If i log into the reseller account with plesk and create a database over the Plesk-Interface everythink works fine and i can create the database, but if i send these package:

<packet version="1.6.0.0">
<database>
<add-db>
<domain-id>DOMAIN_ID</domain-id>
<name>DATABASENAME</name>
<type>mysql</type>
</add-db>
</database>
</packet>

with the reseller account i get this feedback:

<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.0.0">
<database>
<add-db>
<result>
<status>error</status>
<errcode>1006</errcode>
<errtext>Permission denied.</errtext>
</result>
</add-db>
</database>
</packet>


With the Plesk interface it works perfect, but over RPC nothing happens.

If i use the Administrator Login and NOT the resellers login it also works over the RPC Protokoll and i get:

<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.0.0">
<database>
<add-db>
<result>
<status>ok</status>
<id>7</id>
</result>
</add-db>
</database>
</packet>

I also checked the permission of the reseller, and the Flag "Use of Remote-API" is set to true and has a green Check.
And if i try to create a new domain over the RPC Protrokoll it also works, so the RPC Function seems to be activated.

EDIT:

I tried these one, too :
<packet version="1.6.3.0">
<database>
<add-db>
<webspace-id>WEBSPACE_ID</webspace-id>
<name>DATABASENAME</name>
<type>mysql</type>
</add-db>
</database>
</packet>

With admin account: works fine, with the reseller account: permission denied

/EDIT

EDIT 2:
I tried it with an costumer account and surprising: it works. A costumer can create databases over RPC, so why is it not possible for the resellers?
/Edit 2

So i searching for a solution to give the reseller the permission to create databases over RPC,

someone has an idea or a solution?

Greetings,
Van
 
Last edited:
Back
Top