ISPConfig Unable to add Shell Users via API

Discussion in 'Developers' Forum' started by snowfly, Sep 10, 2014.

  1. snowfly

    snowfly Member

    Since upgrading to ISPConfig I have been unable to create new shell users via the remote API.

    I get the error: directory_error_notinweb

    A quick look shows this error comes from this location:
    Script = /usr/local/ispconfig/interface/lib/classes/
    Function = shelluser_dir

    And a bit of trial an error (and dumping the $app data to inspect it), it seems the following line always returns 0, so will always fail:
    $primary_id = (isset($app->tform->primary_id))?$app->tform->primary_id:$app->remoting_lib->primary_id;
    $app->tform->primary_id = 0
    $app->remoting_lib->primary_id = 0

    Adding a shell user in the ISPConfig control panel works fine, but I need it working via the remote API as we have built a separate control panel system that leverages the API.

    Any tips on how to get this to work?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

Share This Page