Re: How to use turba-import-vcards
Luca Bertoncello <[email protected]> Thu, 1 Mar 2018 21:40:24 +0100
| Newsgroups | gmane.comp.horde.turba |
|---|---|
| Message-ID | <[email protected]> |
Jan Schneider <[email protected]> schrieb: > You may have username hooks or other user name mangling set up in > Horde, so that the internal Horde name (that you use with this script) > don't match the user name that you enter in the login form. I really don't know why, but... file turba/lib/Turba.php, line 664: try { return $GLOBALS['injector']->getInstance('Turba_Shares')->listShares( $GLOBALS['registry']->getAuth(), array( 'attributes' => $owneronly ? $GLOBALS['registry']->getAuth() : null, 'perm' => $permission ) ); } catch (Horde_Share_Exception $e) { Horde::log($e, 'ERR'); return array(); } it seems that $GLOBALS['registry']->getAuth() returns an empty string if called from command line... If I write: $GLOBALS['registry']->setAuth('lucabert'); just before the lines all works correct... A very strange idea: since I authenticate in Horde using IMAP, maybe should the script authenticate via IMAP, too and it can't? Thanks Luca Bertoncello ([email protected]) -- turba mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: [email protected]