6.0.0-alpha12
6/12/25

[#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 04/13/2006 (7000 days ago)
Due
Updated 11/16/2009 (5687 days ago)
Assigned 04/18/2006 (6995 days ago)
Resolved 05/05/2006 (6978 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/16/2009 05:23:07 PM CVS Commit Comment #5 Reply to this comment
05/05/2006 10:08:19 AM Jan Schneider Comment #4
State ⇒ Resolved
Reply to this comment
Fixed in CVS.
04/18/2006 10:44:40 AM 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;

     }
04/18/2006 08:17:01 AM Jan Schneider State ⇒ Feedback
 
04/18/2006 08:16:36 AM 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.
04/13/2006 07:14:35 PM 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