[horde] User name for applications

Nels Lindquist nlindq at maei.ca
Wed Feb 14 16:41:09 UTC 2018


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2018/02/14 12:52 AM, Ralf Lang wrote:
2
> Am 13.02.2018 um 22:32 schrieb Nels Lindquist:
>> 
>> I'm trying to determine how the user's name is set for menus
>> relating to applications within Horde, eg. "Address book of
>> [name]", "Task list of [name]", "Calendar of [name]", etc.
>> 
>> I have two different Horde installations, and in one the Full
>> Name is displayed for the various menu links, and in the other
>> the user's ID is displayed.
>> 
>> I have a fullname hook defined which is working successfully, ie.
>> the value in "Preferences->Global Preferences->Your full name:"
>> on both installations is correct.
>> 
>> I'm having trouble finding any configuration differences between
>> them.
> 
> The full name usually comes from preferences/identities. An
> identity is linked to a username, multiple identities per user can
> exist. The first identity is the default identity.

My prefs.local.php on both installations (one working, one not) is as
follows:

<?php
$_prefs['id']['value'] = 'Default Identity';
$_prefs['id']['locked'] = true;
$_prefs['fullname']['hook'] = true;
$_prefs['from_addr']['hook'] = true;
$_prefs['from_addr']['locked'] = true;
$_prefs['default_identity']['locked'] = true;
$_prefs['initial_application']['value'] = 'imp';

So, users only get the "Default Identity"; their fullname and
from_addr are (correctly) set by hooks (the hooks pull those values
out of LDAP).
> The login name you type into the login window can also be modified
> by a hook. Then, all horde items refer to the modified login name.
> The identity must also refer to the modified login name, otherwise
> it is not used and the fallback display name is the username.

I have a preauthentication hook which normalizes the username
(hooks.php is also identical on both servers); looking at horde_prefs,
all the "pref_uid" values are consistent.

- ----
Nels Lindquist
<nlindq at maei.ca>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlqEZqQACgkQh6z5POoOLgRY+gCePM/yzzJ/Ijv1SCHRrwGbEfJv
coAAnRLAOOQAn6D6ll+qF8eSHgsbGRYJ
=2nQt
-----END PGP SIGNATURE-----


More information about the horde mailing list