Change zone, site web or mail domain owner

Discussion in 'Developers' Forum' started by desire.levi, Oct 11, 2014.

  1. desire.levi

    desire.levi New Member

    Hi,

    I'm developping a module using the soap remote api of ispconfig3.

    actually i try to find a way to change the owner of zone and site web. I used the update function provided by us, but i can't find the otion to modify which will make me happy, i tried change sys_groupid and sys_userid for the zone but nothing.
    for the site web domain, i try change the sys_groupid but still nothing

    So, did i miss/wrong at something or the api actually not offer a way to do it ?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    set the clienr_id of the new owner when you run the update command.
     
  3. desire.levi

    desire.levi New Member

    Let's take the sites_web_domain_update($sessionid, $oldclientid, $params) as an example

    In the github example they said to first use sites_web_domain_get to retrieve website information. i get this on var_dump output. So where should i put the new client id.

    array(
    'domain_id' => string '14' (length=2)
    'sys_userid' => string '34' (length=2)
    'sys_groupid' => string '34' (length=2)
    'sys_perm_user' => string 'riud' (length=4)
    'sys_perm_group' => string 'riud' (length=4)
    'sys_perm_other' => string '' (length=0)
    'server_id' => string '1' (length=1)
    'ip_address' => string '*' (length=1)
    'ipv6_address' => string '' (length=0)
    'domain' => string 'dnslistezone.com' (length=16)
    'type' => string 'vhost' (length=5)
    'parent_domain_id' => string '0' (length=1)
    'vhost_type' => string 'name' (length=4)
    'document_root' => string '/var/www/clients/client33/web14' (length=31)
    'web_folder' => null
    'system_user' => string 'web14' (length=5)
    'system_group' => string 'client33' (length=8)
    'hd_quota' => string '-1' (length=2)
    'traffic_quota' => string '-1' (length=2)
    'cgi' => string 'n' (length=1)
    'ssi' => string 'n' (length=1)
    'suexec' => string 'y' (length=1)
    'errordocs' => string '0' (length=1)
    'is_subdomainwww' => string '1' (length=1)
    'subdomain' => string 'www' (length=3)
    'php' => string 'fast-cgi' (length=8)
    'ruby' => string 'n' (length=1)
    'python' => string 'n' (length=1)
    'perl' => string 'n' (length=1)
    'redirect_type' => null
    'redirect_path' => null
    'seo_redirect' => null
    'ssl' => string 'n' (length=1)
    'ssl_state' => null
    'ssl_locality' => null
    'ssl_organisation' => null
    'ssl_organisation_unit' => null
    'ssl_country' => null
    'ssl_domain' => null
    'ssl_request' => null
    'ssl_cert' => null
    'ssl_bundle' => null
    'ssl_key' => null
    'ssl_action' => null
    'stats_password' => null
    'stats_type' => string 'webalizer' (length=9)
    'allow_override' => string 'All' (length=3)
    'apache_directives' => null
    'nginx_directives' => null
    'php_fpm_use_socket' => string 'y' (length=1)
    'pm' => string 'dynamic' (length=7)
    'pm_max_children' => string '10' (length=2)
    'pm_start_servers' => string '2' (length=1)
    'pm_min_spare_servers' => string '1' (length=1)
    'pm_max_spare_servers' => string '5' (length=1)
    'pm_process_idle_timeout' => string '10' (length=2)
    'pm_max_requests' => string '0' (length=1)
    'php_open_basedir' => string '/var/www/clients/client33/web14/web:/var/www/clients/client33/web14/private:/var/www/clients/client33/web14/tmp:/var/www/dnslistezone.com/web:/srv/www/dnslistezone.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin' (length=265)
    'custom_php_ini' => null
    'backup_interval' => string 'none' (length=4)
    'backup_copies' => string '1' (length=1)
    'backup_excludes' => null
    'active' => string 'y' (length=1)
    'traffic_quota_lock' => string 'n' (length=1)
    'fastcgi_php_version' => string '' (length=0)
    'proxy_directives' => null
    'last_quota_notification' => null
    'rewrite_rules' => null
    'added_date' => string '0000-00-00' (length=10)
    'added_by' => string 'mar3ck' (length=6)
    )
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    sites_web_domain_update($sessionid, $newclientid, $params)
     
  5. desire.levi

    desire.levi New Member

    Big thanks Till !

    it wasn't in my investigation field !
     
  6. desire.levi

    desire.levi New Member

    Excuse me, i need a precision :

    would change the client id and post the element (webdomain, zone, maildomain etc.) work with all the elements *update function ??
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    This should work with all elements as this field sets the owner of a record.
     
  8. desire.levi

    desire.levi New Member

    Alright !

    now everything should be ok !

    Thanks again !
     

Share This Page