[Tickets #3767] realm and conf.php
bugs@bugs.horde.org
bugs at bugs.horde.org
Tue Apr 18 03:44:40 PDT 2006
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=3767
-----------------------------------------------------------------------
Ticket | 3767
Updated By | tinu at humbapa.ch
Summary | realm and conf.php
Queue | Vacation
Version | HEAD
State | Feedback
Priority | 2. Medium
Type | Bug
Owners |
-----------------------------------------------------------------------
tinu at humbapa.ch (2006-04-18 03:44) wrote:
>> is this really a bug or am I just missing something?
>
> The code falls back to using the 'default' realm if it doesn't find a
> configuration specific to the user's realm. If you want realm
> specific configuration, add it below the marker line in conf.php
> manually.
if I use usernames like user at domain then the realm in vacation will allways
be domain:
(main.php)
@list($user, $realm) = explode('@', Auth::getAuth(), 2);
if (empty($realm)) {
$realm = 'default';
}
but the getParam methode from class Vacation_Driver will only fall back to
the default realm when I don't use any realm at all:
(lib/Driver.php)
function getParam($param, $realm = 'default')
{
return isset($this->_params[$realm][$param]) ?
$this->_params[$realm][$param] : null;
}
maybe something like this:
function getParam($param, $realm = 'default')
{
if ($realm != 'default' && !isset($this->_params[$realm][$param]))
{
$realm = 'default';
}
return isset($this->_params[$realm][$param]) ?
$this->_params[$realm][$param] : null;
}
More information about the bugs
mailing list