6.0.0-RC7
6/23/26

[#3767] realm and conf.php
Summary realm and conf.php
Queue Vacation
Queue Version HEAD
Type Bug
State Resolved
Priority 2. Medium
Owners
Requester tinu (at) humbapa (dot) ch
Created 4/13/06 (7376 days ago)
Due
Updated 11/16/09 (6063 days ago)
Assigned 4/18/06 (7371 days ago)
Resolved 5/5/06 (7354 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
1910 Jan Schneider Comment #4
State ⇒ Resolved
Reply to this comment
Fixed in CVS.
4010 tinu (at) humbapa (dot) ch Comment #3 Reply to this comment
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@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;

     }
18 Jan Schneider State ⇒ Feedback
 
368 Jan Schneider Comment #2
State ⇒ Assigned
Reply to this comment
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.
357 tinu (at) humbapa (dot) ch Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ realm and conf.php
Queue ⇒ Vacation
State ⇒ Unconfirmed
Reply to this comment
I use usernames like name@domain.com. so my realm will be domain.com.

$driver->getParam('hordeauth', $realm) tries to get an array like 
$this->_params['domain.com']['hordeauth']

the params array is read from config/conf.php and there the realm is 
allways 'default'



is this really a bug or am I just missing something?



thanks a lot

martin luethi

Saved Queries