[imp] Problem with sharing tasks.

ANANT S ATHAVALE asa at isac.gov.in
Thu Jul 30 07:54:47 UTC 2009


Dear DR:

I will try out and update you.

Regards,
ANANT.

----- Message from adrieder at sbox.tugraz.at ---------
     Date: Thu, 30 Jul 2009 09:37:38 +0200
     From: Dietmar Rieder <adrieder at sbox.tugraz.at>
  Subject: Re: [imp] Problem with sharing tasks.
       To: ANANT S ATHAVALE <asa at isac.gov.in>
       Cc: imp at lists.horde.org


> ANANT S ATHAVALE wrote:
>> Dear DD,
>>
>> I did not understand clearly, can you please explain a bit how it  
>> will address my problem.
>
> take a look at http://bugs.horde.org/ticket/7013 it is explained there.
>
> Basically the hooks can add and remove the realm were needed.
> So you would just need to adapt the _username_hook_frombackend()  
> hook so that it adds the realm to the $userID and  
> _username_hook_tobackend() should remove it. The realm parameter in  
> servers.php is not needed any more in such a setup.
>
> Something like this: (untested)
>
> if (!function_exists('_username_hook_frombackend')) {
>      function _username_hook_frombackend($userID)
>      {
>       $vrealm = '@realm';
>       if (substr($userID, -strlen($vrealm)) == $vrealm) {
>         $log_msg = '_username_hook_frombackend called for user "' .  
> $userID . ' - not modifying "';
>       } else {
>         $log_msg = '_username_hook_frombackend called for user "' .  
> $userID . ' - adding "' . $vrealm . '"';
>         $userID = $userID . $vrealm;
>       }
>       Horde::logMessage($log_msg, __FILE__, __LINE__, PEAR_LOG_DEBUG);
>       return $userID;
>     }
> }
>
>
> if (!function_exists('_username_hook_tobackend')) {
>      function _username_hook_tobackend($userID)
>     {
>          $fullusername = split('@', $userID);
>          $log_msg = '_username_hook_tobackend called for user "' .  
> $userID . ' - removing "' . $fullusername[1] . '"';
>          Horde::logMessage($log_msg, __FILE__, __LINE__, PEAR_LOG_DEBUG);
>          return $fullusername[0];
>      }
> }
>
>
> HTH
>
>   Didi
>
>>
>> Regards,
>> ANANT.
>>
>>
>>
>>
>> ----- Message from adrieder at sbox.tugraz.at ---------
>>    Date: Tue, 28 Jul 2009 13:25:30 +0200
>>    From: Dietmar Rieder <adrieder at sbox.tugraz.at>
>> Subject: Re: [imp] Problem with sharing tasks.
>>      To: horde at lists.horde.org
>>      Cc: "imp at lists.horde.org" <imp at lists.horde.org>
>>
>>
>>> ANANT S ATHAVALE wrote:
>>>> We are using latest Horde Stable WebMail edition.
>>>>
>>>> We use IMP for authentication and Cyrus IMAP via LDAP is being  
>>>> used for authentication.  We have set a realm parameter  
>>>> 'isac.gov.in' for Cyrus.  Now, the authenticated user has  
>>>> getAuth() returns username with domain name.
>>>>
>>>> Now, the problem is while sharing Tasks.  Here when the list of  
>>>> users comes for giving permissions, the list does not contain the  
>>>> username with domain and hence sharing is not working.  How to  
>>>> resolve this?
>>>>
>>>> But, if I edit the function listMailboxes() to add the domain  
>>>> name while generating the list, it is affecting sharing Folders.
>>>>
>>>> Please advice.
>>>>
>>>
>>> Take a look at the _username_hook_frombackend() and  
>>> _username_hook_tobackend() hooks. But be aware of Bug #8385
>>> <http://bugs.horde.org/ticket/8385>
>>>
>>> Didi
>>> -- 
>>> IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
>>> Frequently Asked Questions: http://horde.org/faq/
>>> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>>>
>>
>>
>> ----- End message from adrieder at sbox.tugraz.at -----
>>
>>
>>
>> Regards,
>>
>> Anant Athavale.
>
>


----- End message from adrieder at sbox.tugraz.at -----



Regards,

Anant Athavale.


More information about the imp mailing list