how can i use Murmur icesecure

in Help Center
Hi,
i want wo use the icesecret parameter from murmur 1.2.2 and i use the ice-php 3.3.1 but i can't figure out, how i can make the right call...
The following code is my try, but i can't get the permission with it...
(without the icesecret entry in the murmur.ini and outcommented ->ice_context($secret) is it working perfect)
but i get only this exception:
Thats the part of the murmur.ini
Whats the Problem?
best regards from germany,
oVi
i want wo use the icesecret parameter from murmur 1.2.2 and i use the ice-php 3.3.1 but i can't figure out, how i can make the right call...
The following code is my try, but i can't get the permission with it...
(without the icesecret entry in the murmur.ini and outcommented ->ice_context($secret) is it working perfect)
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING); ini_set("display_errors", 1); Ice_loadProfile("Murmur12x"); $secret = array('sectret'=>'testpwd'); try{ $base = $ICE->stringToProxy("Meta:tcp -h xxx.xxx.xxx.xxx -p 6502"); $meta = $base->ice_checkedCast("::Murmur::Meta")->ice_context($secret); $default = $meta->getDefaultConf(); print_r($meta->getServer(1)->getTree()); } catch (Ice_Exception $ex) { print_r($ex); }
but i get only this exception:
Ice_UnknownUserException Object ( [unknown] => Murmur::InvalidSecretException [message:protected] => [string:private] => [code:protected] => 0 [file:protected] => /var/www/html/icetest.php [line:protected] => 21 [trace:private] => Array ( [0] => Array ( [file] => /var/www/html/icetest.php [line] => 21 [function] => getdefaultconf [class] => Ice_ObjectPrx [type] => -> [args] => Array ( ) ) ) )
Thats the part of the murmur.ini
# If you want to use ZeroC ICE to communicate with Murmur, you need # to specify the endpoint to use. Since there is no authentication # with ICE, you should only use it if you trust all the users who have # shell access to your machine. # Please see the ICE documentation on how to specify endpoints. ice="tcp -h xxx.xxx.xxx.xxx -p 6502" icesecret="testpwd"
Whats the Problem?
best regards from germany,
oVi
0
Comments
I need realy help
Regards,
Andrey.
By the way, might the problem be a typo?
Again, I don't know Murmur, but shouldn't this be:
here's the solution/usage: