[turba] Turba ignoring ['conf']['share']['auto_create'] and creating a default addressbook!
Alex Matthews
qoole.horde at lillimoth.com
Tue Aug 23 19:52:38 UTC 2011
Hi
My setup is as follows:
Every user has a private LDAP based Addressbook. I also use the standard
'localsql' for shared Addressbooks.
What I noticed was that the localsql backend was auto-creating a default
addressbook even though ['conf']['share']['auto_create'] is set to false.
After a bit of rummaging I tracked the offending line down to:
horde/turba/lib/Turba.php Line 500:
if ($GLOBALS['registry']->getAuth() && !$personal) {
// User's default share is missing.
Looking through other modules (nag, nmemo etc) I have altered this line
to be:
if (!empty($GLOBALS['conf']['share']['auto_create']) &&
($GLOBALS['registry']->getAuth() && !$personal)) {
// User's default share is missing.
I am not a familiar enough developer to create a patch I'm afraid.
I hope this makes sense and helps someone!
Thanks,
Alex
More information about the turba
mailing list