6.0.0-beta1
8/9/25

[#4734] username/password of backend
Summary username/password of backend
Queue Ingo
Queue Version HEAD
Type Enhancement
State Rejected
Priority 1. Low
Owners
Requester news (at) msluiter (dot) de
Created 12/05/2006 (6822 days ago)
Due
Updated 12/05/2006 (6822 days ago)
Assigned
Resolved 12/05/2006 (6822 days ago)
Milestone
Patch No

History
12/05/2006 05:56:53 PM news (at) msluiter (dot) de Comment #3 Reply to this comment
so there is no official possibility to configure it like I need it?
hordeauth specifically means using the credentials of the logged in user.
12/05/2006 05:16:40 PM Chuck Hagenbuch Comment #2
State ⇒ Rejected
Reply to this comment
hordeauth specifically means using the credentials of the logged in user.
12/05/2006 03:24:09 PM news (at) msluiter (dot) de Comment #1
State ⇒ New
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ username/password of backend
Queue ⇒ Ingo
Reply to this comment
Hi all!



I'm using Ingo (head version) with maildrop backend, and had a problem 
configuring it. In the backends.php I wanted to specify "username" and 
"password" for connecting with ftp to the maildrop script, and I 
wanted to use the full name of the logged in user in "vfs_path" (using 
the %u). This was not possible, setting "hordeauth" to "full" made 
Ingo ignoring the specified "username" and "password". I changed this 
behaviour by switching the order of if-statements in 
ingo/lib/Ingo.php, see patch below.



So my question is: was there a reason for ignoring username and 
password, even when both are set? If no, can the patch be applied to 
head?



Regards, Marc





Index: Ingo.php

===================================================================

RCS file: /repository/ingo/lib/Ingo.php,v

retrieving revision 1.98

diff -u -r1.98 Ingo.php

--- Ingo.php    9 Oct 2006 12:33:38 -0000       1.98

+++ Ingo.php    26 Nov 2006 20:35:44 -0000

@@ -268,14 +268,14 @@

          $params = $_SESSION['ingo']['backend']['params'];



          // Set authentication parameters.

-        if (!empty($_SESSION['ingo']['backend']['hordeauth'])) {

-            $params['username'] = 
($_SESSION['ingo']['backend']['hordeauth'] === 'full')

-                        ? Auth::getAuth() : Auth::getBareAuth();

-            $params['password'] = Auth::getCredential('password');

-        } elseif 
(isset($_SESSION['ingo']['backend']['params']['username']) &&

+        if (isset($_SESSION['ingo']['backend']['params']['username']) &&

                     
isset($_SESSION['ingo']['backend']['params']['password'])) {

              $params['username'] = 
$_SESSION['ingo']['backend']['params']['username'];

              $params['password'] = 
$_SESSION['ingo']['backend']['params']['password'];

+        } elseif (!empty($_SESSION['ingo']['backend']['hordeauth'])) {

+            $params['username'] = 
($_SESSION['ingo']['backend']['hordeauth'] === 'full')

+                        ? Auth::getAuth() : Auth::getBareAuth();

+            $params['password'] = Auth::getCredential('password');

          } else {

              $params['username'] = Auth::getBareAuth();

              $params['password'] = Auth::getCredential('password');

Saved Queries