I I try to add a new publisher I would like to have the same admin like another publisher. So I entered for the admin email the same address like an existing publisher.
After I pushed the “create” button no error message apears in the admin console an no publisher have been created.
Yes, that was changed recently. If you wish to create a new partner with an email address that already belongs to another, you still can but you’ll have to do so using the API while passing along the cmsPassword param with the passwd you set when you created the original partner.
You can use this script for that:
<?php
if (count($argv)<4){
echo __FILE__ . ' <partner email> <partner name> <partner passwd> <service_url> '."\n";
exit (1);
}
require_once('/opt/kaltura/web/content/clientlibs/php5/KalturaClient.php');
$config = new KalturaConfiguration();
$config->serviceUrl = $argv[4];
$client = new KalturaClient($config);
$expiry = null;
$privileges = null;
$email=$argv[1];
$name=$argv[2];
$cmsPassword=$argv[3];
$userId = null;
$partner = new KalturaPartner();
$partner->name=$name;
$partner->adminName=$name;
$partner->description=" "; //cannot be empty or null
$partner->adminEmail=$email;
try {
$results = $client->partner->register($partner, $cmsPassword);
}catch (KalturaException $ex){
$message=$ex->getMessage();
$error_code=$ex->getCode();
echo "Failed on partner->register() with $email. Message was: $message, Code was $error_code, partner object is below:\n";
exit(2);
}
var_dump($results);
?>
Simply save this somewhere where you have PHP CLI and access to the server [or just on the server itself] and then run:
/path/to/create_partner_script.php <service_url>
Alternatively, you can use the testMe console, go to $YOUR_KALTURA_SERVER/admin_console/index.php/index/testme
Select ‘partner’ as service, ‘register’ as action, click on “Edit” next to partner (KalturaPartner) and input the needed info and then set cmsPassword to the current passwd for that email. Note that all partners using the same email share the same login passwd.
It is not a nice solution because I need the user password for this and actually in a normal use case I dont have it. I think me as an admin should be able to create this without entering this password.