Results 1 to 1 of 1

Thread: What is the SESSIOND parameter or TAG inside soap zimbra ?

  1. #1
    Michael REMY is offline Loyal Member
    Join Date
    Jun 2009
    Posts
    93
    Rep Power
    6

    Question What is the SESSIOND parameter or TAG inside soap zimbra ?

    hi !

    i'm trying to use the php code of Richard Gate who build pretty joomla extensions to zimbra :
    Document Details | Zimbra Calendar Info Module

    When i test it, it runs, but i have a error message :

    Notice: Undefined index: SESSIOND in E:\easyphp532\www\1_zimbra_joomla\helper.php on line 76
    Here the located code in helper.php :
    Code:
     //Login (Save authtoken and sessionid)
     function zimbra_login($zimbrauser, $zimbrapass, $preauth, $timestamp)
     {
      $req = '<AuthRequest xmlns="urn:zimbraAccount">';
      $req .= '<account by="name">' . $zimbrauser . '</account>';
      if ($zimbrapass != '') $req .= '<password>' . $zimbrapass . '</password>';
      if ($preauth != '') $req .= '<preauth timestamp="' . $timestamp . '" expires="0">' . $preauth . '</preauth>';
      $req .= '</AuthRequest>';
      $this->zimbraSOAP_build_request($req);
      if (!($res = $this->zimbraSOAP_execute_request())) return false;
      if (!isset($res['SOAP:ENVELOPE']['SOAP:BODY']['AUTHRESPONSE'])) return false;
      $x = $res['SOAP:ENVELOPE']['SOAP:BODY']['AUTHRESPONSE'];
      echo "contenu de x <hr>:<pre>";print_r($x);echo "</pre>";
      $this->zimbra_session = $x['SESSIOND']['DATA'];
      $this->zimbra_auth = $x['AUTHTOKEN']['DATA'];
      return true;
     }
    As you can see, i put a pre-print to check the $x array to solve my problem.

    So, here the content of the $x :
    Array
    (
    [XMLNS] => urn:zimbraAccount
    [AUTHTOKEN] => Array
    (
    [DATA] => 0_341cc503b36348397bd70b7f8b1....
    )

    [LIFETIME] => Array
    (
    [DATA] => 172800000
    )

    [SKIN] => Array
    (
    [DATA] => myzimbramail
    )

    )
    As you can see, there is no SESSIOND part in this strucutre.

    The code is a little old, maybe Zimbra architecture is updated and this SESSIOND have be replace by something else....

    1.
    How can i solve this problem ?

    2.
    Should i ignore this error message even if the code runs (get daily appointment)

    By advance, thanks for help

    Best regards.
    Last edited by Michael REMY; 04-27-2010 at 01:51 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. ldap id2entry.bdb has bad LSN
    By pixelplumber in forum Administrators
    Replies: 5
    Last Post: 02-03-2010, 10:44 PM
  2. Recover the mail after the crash HDD
    By MrSnaKe in forum Administrators
    Replies: 3
    Last Post: 12-02-2009, 04:38 AM
  3. Replies: 15
    Last Post: 11-24-2009, 08:46 AM
  4. slapd message error
    By smoke in forum Administrators
    Replies: 7
    Last Post: 04-27-2008, 03:23 PM
  5. Mail logs
    By Rick Baker in forum Installation
    Replies: 8
    Last Post: 01-17-2006, 04:33 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
  •