[horde] backends.php?

Mariano Absatz el.baby at gmail.com
Fri Mar 7 18:24:01 UTC 2008


Hi there,

I recently installed horde groupware webmail edition 1.0 on an ubuntu server.

The setup is quite plain in a virtual host, I simply configured the
data about the local dovecot imap server and everything works
reasonably.

Now I have to learn a bit.

When I log in using the account I designated as "administrative", I
see the 'Administration' entry on the left menu, but when I choose
'Users', I see that Adding and Listing users are disabled.

I guess that this is because horde has no idea about the users, other
than trying to authenticate them against IMAP.

I create accounts on my dovecot imap server (as well as on the local
postfix server) using postfixadmin, so all the data is in a local
mysql database.

I'd like to be able to extend this in order to handle horde users and
groups in the same database.

Now, postfixadmin documentation includes this:
http://postfixadmin.svn.sourceforge.net/viewvc/postfixadmin/trunk/DOCUMENTS/HORDE.txt?view=markup

This apparently relates to an older version of horde since, at least
in my standard install there is no horde/passwd directory.

Anyway, I read about backends.php in
http://wiki.horde.org/Doc/Dev/Configuration and created a backends.php
in horde/config like this:

####################################################
<?php
// autenticacion con la tabla que usa el postfixadmin
// http://postfixadmin.svn.sourceforge.net/viewvc/postfixadmin/trunk/DOCUMENTS/HORDE.txt?view=markup
// https://sourceforge.net/forum/forum.php?thread_id=1869141&forum_id=676076


$backends['sql'] = array (
        'name' => 'Mail SQL Server',
        'preferred' => '',
        'password policy' => array(
        'minLength' => 3,
        'maxLength' => 8,
        'maxSpace' => 0,
        'minUpper' => 0,
        'minLower' => 0,
        'minNumeric' => 0,
        'minSymbols' => 0,
    ),
    'driver' => 'sql',
    'params' => array(
        'phptype' => 'mysql',
        'hostspec' => '127.0.0.1',
        'port' => '3306',
        'protocol' => 'tcp',
        'username' => 'postfixadmin',
        'password' => 'here-goes-the-mysql-password',
        'encryption' => 'crypt-md5',
        'database' => 'postfix',
        'table' => 'mailbox',
        'user_col' => 'username',
        'pass_col' => 'password',
        'show_encryption' => false,
    )
);

####################################################

However, this doesn't seem to be ever called.

I logged out/in from horde and I still can't list users... I even
tried restarting apache (I know I didn't have to, but anyway)...

greping a bit, it doesn't seem that horde invokes backends.php
anywhere outside ingo... where's the correct place to configure an
authentication backend to use throughout all of horde? Would the
fragment above work?

TIA


-- 
Mariano Absatz - El Baby
el (dot) baby (AT) gmail (dot) com
el (punto) baby (ARROBA:@) gmail (punto) com


More information about the horde mailing list