Discussion:
[turba] Odd problem when making address book non-browesable
Jason L Tibbitts III
2015-12-08 03:20:38 UTC
Permalink
I'm trying to bring a very old horde installation up to date. I have a
fresh horde/imp/turba/etc. installation running fine and have migrated
the old databases as best I can. I'm attempting to go in and set up our
department and campus LDAP directories and am having an odd problem:
when I make the directory non-broweable by setting 'browse' => false,
any attempt to search that directory immediately returns an error that
the currently authenticated user's addressbook does not exist. I wasn't
trying to access my address book, though, so I'm not sure what relevance
that has. My personal address book does indeed exist, and I can
manipulate it without error. I'm kind of lost as to what else could be
going wrong.

I'm running horde 5.2.8 with turba 4.2.11. The subsidiary modules are
at most one minor version out of date (they move quickly) and all DB
schemas are up to date.

The horde log shows:

2015-12-08T03:05:30+00:00 EMERG: HORDE [turba] The address book "tibbs"
does not exist. [pid 30442 on line 60 of
"/usr/share/horde/turba/lib/Factory/Driver.php"]

Here's the error seen in the browser (my user is set up as an administrator):

A fatal error has occurred
The address book "tibbs" does not exist.

1. Turba_View_List->display() /usr/share/horde/turba/search.php:285
2. Turba_Factory_Driver->create()
Turba_Factory_Driver->/usr/share/horde/turba/lib/View/List.php:173

Details
The full error message is logged in Horde's log file, and is shown below
only to administrators. Non-administrative users will not see error
details.

Turba_Exception Object
(
[details] =>
[logged] => 1
[_logLevel:protected] => 0
[message:protected] => The address book "tibbs" does not exist.
[string:Exception:private] =>
[code:protected] => 0
[file:protected] => /usr/share/horde/turba/lib/Factory/Driver.php
[line:protected] => 60
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /usr/share/horde/turba/lib/View/List.php
[line] => 173
[function] => create
[class] => Turba_Factory_Driver
[type] => ->
[args] => Array
(
[0] => tibbs
)

)

[1] => Array
(
[file] => /usr/share/horde/turba/search.php
[line] => 285
[function] => display
[class] => Turba_View_List
[type] => ->
[args] => Array
(
)

)

)

[previous:Exception:private] =>
)

Here's address book definition from backends.local.php:

$cfgSources['mathldap'] = array(
'disabled' => false,
'title' => _("Math Directory"),
'type' => 'ldap',
'params' => array(
'server' => 'XXX',
'port' => 389,
'tls' => false,
'root' => 'ou=People,dc=math,dc=uh,dc=edu',
'sizelimit' => 20,
'dn' => array('cn'),
'objectclass' => array('top',
'person',
'organizationalPerson',
'inetOrgPerson'),
'scope' => 'sub',
'charset' => 'utf-8',
'checkrequired' => false,
'checkrequired_string' => ' ',
'checksyntax' => false,
'version' => 3,
),
'map' => array(
'__key' => 'dn',
'__uid' => 'uid',
'name' => 'cn',
'email' => 'mail',
'workPhone' => 'telephonenumber',
'cellPhone' => 'mobiletelephonenumber',
),
'search' => array(
'name',
'email',
'homePhone',
'workPhone',
'cellPhone',
'homeAddress'
),
'strict' => array(
'dn', 'uid'
),
'approximate' => array(
'cn',
),
'export' => true,
'browse' => false,
);

- J<
--
turba mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: turba-***@lists.horde.org
Michael J Rubinsky
2015-12-09 15:17:53 UTC
Permalink
Post by Jason L Tibbitts III
I'm trying to bring a very old horde installation up to date. I have a
fresh horde/imp/turba/etc. installation running fine and have migrated
the old databases as best I can. I'm attempting to go in and set up our
when I make the directory non-broweable by setting 'browse' => false,
any attempt to search that directory immediately returns an error that
the currently authenticated user's addressbook does not exist. I wasn't
trying to access my address book, though, so I'm not sure what relevance
that has. My personal address book does indeed exist, and I can
manipulate it without error. I'm kind of lost as to what else could be
going wrong.
I'm running horde 5.2.8 with turba 4.2.11. The subsidiary modules are
at most one minor version out of date (they move quickly) and all DB
schemas are up to date.
2015-12-08T03:05:30+00:00 EMERG: HORDE [turba] The address book "tibbs"
does not exist. [pid 30442 on line 60 of
"/usr/share/horde/turba/lib/Factory/Driver.php"]
A fatal error has occurred
The address book "tibbs" does not exist.
1. Turba_View_List->display() /usr/share/horde/turba/search.php:285
2. Turba_Factory_Driver->create()
Turba_Factory_Driver->/usr/share/horde/turba/lib/View/List.php:173
Details
The full error message is logged in Horde's log file, and is shown below
only to administrators. Non-administrative users will not see error
details.
Turba_Exception Object
(
[details] =>
[logged] => 1
[_logLevel:protected] => 0
[message:protected] => The address book "tibbs" does not exist.
[string:Exception:private] =>
[code:protected] => 0
[file:protected] => /usr/share/horde/turba/lib/Factory/Driver.php
[line:protected] => 60
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /usr/share/horde/turba/lib/View/List.php
[line] => 173
[function] => create
[class] => Turba_Factory_Driver
[type] => ->
[args] => Array
(
[0] => tibbs
)
)
[1] => Array
(
[file] => /usr/share/horde/turba/search.php
[line] => 285
[function] => display
[class] => Turba_View_List
[type] => ->
[args] => Array
(
)
)
)
[previous:Exception:private] =>
)
$cfgSources['mathldap'] = array(
'disabled' => false,
'title' => _("Math Directory"),
'type' => 'ldap',
'params' => array(
'server' => 'XXX',
'port' => 389,
'tls' => false,
'root' => 'ou=People,dc=math,dc=uh,dc=edu',
'sizelimit' => 20,
'dn' => array('cn'),
'objectclass' => array('top',
'person',
'organizationalPerson',
'inetOrgPerson'),
'scope' => 'sub',
'charset' => 'utf-8',
'checkrequired' => false,
'checkrequired_string' => ' ',
'checksyntax' => false,
'version' => 3,
),
'map' => array(
'__key' => 'dn',
'__uid' => 'uid',
'name' => 'cn',
'email' => 'mail',
'workPhone' => 'telephonenumber',
'cellPhone' => 'mobiletelephonenumber',
),
'search' => array(
'name',
'email',
'homePhone',
'workPhone',
'cellPhone',
'homeAddress'
),
'strict' => array(
'dn', 'uid'
),
'approximate' => array(
'cn',
),
'export' => true,
'browse' => false,
);
- J<
--
turba mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
It looks like maybe your default_addressbook pref is outdated/corrupt.
--
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
Jason L Tibbitts III
2015-12-09 18:56:58 UTC
Permalink
MJR> It looks like maybe your default_addressbook pref is
MJR> outdated/corrupt.

Thanks for the reply. Is this $conf[client][addressbook]? If so, I
know I had set it but I tried setting it again and somehow things are
working as I expect now. I've no idea what actually happened.

Oh, well, that's another issue down. Thanks again,

- J<
--
turba mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: turba-***@lists.horde.org
Michael J Rubinsky
2015-12-10 13:11:07 UTC
Permalink
Post by Jason L Tibbitts III
MJR> It looks like maybe your default_addressbook pref is
MJR> outdated/corrupt.
Thanks for the reply. Is this $conf[client][addressbook]? If so, I
know I had set it but I tried setting it again and somehow things are
working as I expect now. I've no idea what actually happened.
Heh. For the record, that's not the one I meant. This one specifies
what address book other applications should use when looking for a
list of "clients" (like Hermes, our time entry application).

Either way, glad it's working now.
--
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
Jason L Tibbitts III
2015-12-10 17:47:23 UTC
Permalink
MJR> Heh. For the record, that's not the one I meant.

Well, hmm, which one did you actually mean? This was just a test
install which I'll be redoing from scratch following my notes before I
go to production, so I may see it again.

- J<
--
turba mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: turba-***@lists.horde.org
Michael J Rubinsky
2015-12-10 18:07:43 UTC
Permalink
Post by Jason L Tibbitts III
MJR> Heh. For the record, that's not the one I meant.
Well, hmm, which one did you actually mean? This was just a test
install which I'll be redoing from scratch following my notes before I
go to production, so I may see it again.
- J<
The 'default_dir' preference.
--
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
Jason L Tibbitts III
2015-12-10 18:11:32 UTC
Permalink
MJR> The 'default_dir' preference.

Ah, OK. That's in the prefs database, not the config file. I'll have a
look at that if this crops up again.

- J<
--
turba mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: turba-***@lists.horde.org
Loading...