Results 1 to 7 of 7

Thread: how can i use Murmur icesecure

  1. #1
    oVi
    oVi is offline Registered User
    Name: Florian Mustermann
    Organization: Serverline.de
    Project: websolutions
    Join Date
    Jun 2009
    Posts
    10

    how can i use Murmur icesecure

    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)
    Code:
    	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:
    Code:
    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
    Code:
    # 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

  2. #2
    oVi
    oVi is offline Registered User
    Name: Florian Mustermann
    Organization: Serverline.de
    Project: websolutions
    Join Date
    Jun 2009
    Posts
    10
    *push**push**push*
    I need realy help

  3. #3
    andreynech is offline Registered User
    Name: Andrey Nechypurenko
    Organization: GE Healthcare
    Project: hobby remotely controled vehicle
    Join Date
    Feb 2003
    Location
    Munich, Germany
    Posts
    59
    *push**push**push*
    I need realy help
    It sounds to me like very Murmur specific question. That is why I think that the chances to get answer are much higher if you post this question on the corresponding Murmur forum.

    Regards,
    Andrey.
    Andrey Nechypurenko
    GE Healthcare

  4. #4
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    As Andrey wrote, it is probably better to post this question in Murmur support forums, since it is not a general Ice question. I'm afraid none of the ZeroC staff knows Murmur in enough detail to be able to assist you.

  5. #5
    oVi
    oVi is offline Registered User
    Name: Florian Mustermann
    Organization: Serverline.de
    Project: websolutions
    Join Date
    Jun 2009
    Posts
    10
    okey, but is the command in the right syntax to submit/authenticate something?
    Code:
    $base = $ICE->stringToProxy("Meta:tcp -h xxx.xxx.xxx.xxx -p 6502");
    		$meta = $base->ice_checkedCast("::Murmur::Meta")->ice_context($secret);

  6. #6
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    All I can tell from the above line is that you set $secret as a per-proxy context for $meta. How this context is used depends on the application, in this case, on Murmur.

    By the way, might the problem be a typo?

    Code:
    	$secret = array('sectret'=>'testpwd');
    Again, I don't know Murmur, but shouldn't this be:

    Code:
    	$secret = array('secret'=>'testpwd');

  7. #7
    oVi
    oVi is offline Registered User
    Name: Florian Mustermann
    Organization: Serverline.de
    Project: websolutions
    Join Date
    Jun 2009
    Posts
    10
    i got it... thx

    here's the solution/usage:
    Code:
    	error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
    	ini_set("display_errors", 1); 
    	
    	Ice_loadProfile("Murmur12x");
    	$secret = array('secret'=>'myPWD');
    	
    	try{
    		$base = $ICE->stringToProxy("Meta:tcp -h myIP -p myPort");
    		$meta = $base->ice_checkedCast("::Murmur::Meta")->ice_context($secret);
    		$default = $meta->getDefaultConf();
    		
    		print_r($default);	
    		print_r($meta->getServer(1)->ice_context($secret)->getTree());
    	}
    	catch (Ice_Exception $ex) {
    		print_r($ex);
    	}

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 03-28-2011, 11:10 AM
  2. Installing Ice to run with Murmur/Mumble
    By KevinD in forum Help Center
    Replies: 8
    Last Post: 07-06-2010, 12:51 PM
  3. running murmur-ice thru glacier2
    By oVi in forum Help Center
    Replies: 1
    Last Post: 08-14-2009, 07:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •