6.0.0-beta1
7/21/25

[#10452] Turba ignoring ['conf']['share']['auto_create'] and creating a default addressbook!
Summary Turba ignoring ['conf']['share']['auto_create'] and creating a default addressbook!
Queue Turba
Queue Version Git master
Type Bug
State Resolved
Priority 2. Medium
Owners mrubinsk (at) horde (dot) org
Requester qoole.horde (at) lillimoth (dot) com
Created 08/24/2011 (5080 days ago)
Due
Updated 09/02/2011 (5071 days ago)
Assigned 08/26/2011 (5078 days ago)
Resolved 09/02/2011 (5071 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
09/02/2011 04:26:58 PM Michael Rubinsky State ⇒ Resolved
 
09/02/2011 04:26:45 PM Git Commit Comment #3 Reply to this comment
Changes have been made in Git for this ticket:

[mjr] Honor auto_create configuration setting (Bug #10452
qoole.horde@lillimoth.com)

  3 files changed, 7 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/fdbef1ca6a900352ea6cf1807ac09d3b85ce9ae7
08/26/2011 08:24:48 AM Jan Schneider Comment #2
Assigned to Michael Rubinsky
State ⇒ Assigned
Reply to this comment
Sounds like the correct fix.
08/24/2011 08:47:26 AM qoole (dot) horde (at) lillimoth (dot) com Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Turba ignoring ['conf']['share']['auto_create'] and creating a default addressbook!
Queue ⇒ Turba
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
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. Which was getting in the way (visually) of the LDAP one.
After a bit of rummaging I tracked the offending code down to:

horde/turba/lib/Turba.php Line 500:



if ($GLOBALS['registry']->getAuth() && !$personal) {
// User's default share is missing.

Looking through other modules I have altered that 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

Saved Queries