[turba] Solved Re: LDAP source not visible (upgrade -> 2.2 CVS)

Matt Baker m at wheres.co.uk
Wed Jan 23 21:55:17 UTC 2008


Hi Eric,

Eric Jon Rostetter wrote:
> Either your (imp/dimp/turba)/config/prefs.conf file isn't right, or
> your share permissions are not right, or your database/ldap fields are not
> right...
> 
> I'd check share permissions first, then prefs.conf files, then punt... :)
> 
> IIRC when I last upgraded, I needed to go to Administration-Permissions-
> All Permissions-Address Book-Sources-localldap and set the permissions
> there
> before it worked properly...  (In fact, I had to create some of those
> entries
> so I could set the permissions...)

Funny you should say that as that's exactly what I've just done and it
worked with the exception of one thing. So here's what I needed to do:

1. In the admin permissions section I had to create permission objects:

All permisions
 + Address Book (turba) 		Show	Read	Edit	Delete	
  + Sources (sources) 			Show	Read	Edit	Delete	
   + My Address Book (localsql) 	Show	Read	Edit	Delete	
   + Shared Directory (localldap) 	Show	Read

2. In turba/config/prefs.php; 'value' needed to be empty.

$_prefs['addressbooks'] = array(
    'value' => '',
    'locked' => false,
    'shared' => false,
    'type' => 'implicit',
);

3. Also I needed to remove the old preferences saved for displayed
addressbooks. (I wouldn't recommend others trying this unless you have a
backup.)

delete from horde_prefs where pref_scope = 'turba' and pref_name =
'addressbooks';

Logged out and back in then I could see the sql and ldap address books
and search them.


Originally, after I had upgraded I swapped out the sources.php and
replaced it with the dist file. Then edited it to taste. I changed the
name of the ldap source to localldap from OrgContacts. Perhaps the
existing prefs data in the db was still trying to find that? Perhaps it
was the permissions that stopped it from being viewed the first time
before I changed the sources file? Who knows!

Anyway it's all OK now. Thanks for your help.

Matt


More information about the turba mailing list