[sork] backends.local.php not obeyed.

Ralf Lang lang at b1-systems.de
Tue Nov 8 16:17:43 UTC 2011


Am Dienstag, 8. November 2011, 16:22:00 schrieb Simon Brereton:
> On 8 November 2011 09:37, Ralf Lang <lang at b1-systems.de> wrote:
> > Am Dienstag, 8. November 2011, 15:31:12 schrieb Simon Brereton:
> >> On 2 November 2011 15:18, Simon Brereton <simon.brereton at buongiorno.com>
> >> 
> >> wrote:
> >> > On 2 November 2011 15:03, Simon Brereton
> >> > <simon.brereton at buongiorno.com>
> >> > 
> >> > wrote:
> >> >> Hi
> >> >> 
> >> >> 
> >> >> 
> >> >> I edited backends.local.php to be:
> >> >> 
> >> >> 
> >> >> 
> >> >> 
> >> >> 
> >> >> $backends['composite'] = array(
> >> >> 
> >> >>    'name' => 'All Services',
> >> >> 
> >> >>    'preferred' => '',
> >> >> 
> >> >>    'policy' => array(
> >> >> 
> >> >>        'minLength' => 8,
> >> >> 
> >> >>        'maxLength' => 25,
> >> >> 
> >> >>        'minClasses' => 2,
> >> >> 
> >> >>                'maxSpace' => 0,
> >> >> 
> >> >>                'minUpper' => 1,
> >> >> 
> >> >>                'minLower' => 1,
> >> >> 
> >> >>                'minNumeric' => 0,
> >> >> 
> >> >>                'minSymbols' => 0
> >> >> 
> >> >> 
> >> >> 
> >> >>        ),
> >> >> 
> >> >> 
> >> >> 
> >> >> But always I get the error that
> >> >> 
> >> >>        The password must contain at least 1 numeric character.[Wed 02
> >> >> 
> >> >> Nov 2011 02:38:20 PM EST]
> >> >> 
> >> >> 
> >> >> 
> >> >> Which I believe is coming from backends.php where every policy is:
> >> >> 
> >> >> 
> >> >> 
> >> >>    'policy' => array(
> >> >> 
> >> >>        'minLength' => 6,
> >> >> 
> >> >>        'minNumeric' => 1,
> >> >> 
> >> >>        ),
> >> >> 
> >> >> 
> >> >> 
> >> >> Additionally, if I use a password that is less than 8 characters I
> >> >> still
> >> >> 
> >> >> only get the numeric warning (because the 6 character policy is still
> >> >> 
> >> >> satisfied).
> >> >> 
> >> >> 
> >> >> 
> >> >> Simon
> >> > 
> >> > Also, I have this in my logs:
> >> > 
> >> > 
> >> > 
> >> > 2011-11-02T14:38:19-04:00 NOTICE: HORDE4 [passwd] PHP ERROR: Undefined
> >> > 
> >> > index: encryption [pid 22429 on line 131 of
> >> > 
> >> > "/usr/share/horde4/passwd/config/backends.php"]
> >> > 
> >> > 2011-11-02T14:48:00-04:00 NOTICE: HORDE4 [passwd] PHP ERROR: Undefined
> >> > 
> >> > index: encryption [pid 17999 on line 131 of
> >> > 
> >> > "/usr/share/horde4/passwd/config/backends.php"]
> >> > 
> >> > 2011-11-02T14:54:03-04:00 NOTICE: HORDE4 [passwd] PHP ERROR: Undefined
> >> > 
> >> > index: encryption [pid 21944 on line 131 of
> >> > 
> >> > "/usr/share/horde4/passwd/config/backends.php"]
> >> > 
> >> > 2011-11-02T14:54:21-04:00 NOTICE: HORDE4 [passwd] PHP ERROR: Undefined
> >> > 
> >> > index: encryption [pid 17996 on line 131 of
> >> > 
> >> > "/usr/share/horde4/passwd/config/backends.php"]
> >> > 
> >> > 2011-11-02T14:58:22-04:00 NOTICE: HORDE4 [passwd] PHP ERROR: Undefined
> >> > 
> >> > index: encryption [pid 17992 on line 131 of
> >> > 
> >> > "/usr/share/horde4/passwd/config/backends.php"]
> >> > 
> >> > 2011-11-02T14:59:18-04:00 NOTICE: HORDE4 [passwd] PHP ERROR: Undefined
> >> > 
> >> > index: encryption [pid 22429 on line 131 of
> >> > 
> >> > "/usr/share/horde4/passwd/config/backends.php"]
> >> > 
> >> > 2011-11-02T14:59:18-04:00 NOTICE: HORDE4 [passwd] PHP ERROR: Undefined
> >> > 
> >> > index: db [pid 22429 on line 92 of
> >> > 
> >> > "/usr/share/horde4/passwd/lib/Factory/Driver.php"]
> >> > 
> >> > 2011-11-02T15:00:46-04:00 NOTICE: HORDE4 [passwd] PHP ERROR: Undefined
> >> > 
> >> > index: encryption [pid 21894 on line 131 of
> >> > 
> >> > "/usr/share/horde4/passwd/config/backends.php"]
> >> > 
> >> > 2011-11-02T15:01:17-04:00 NOTICE: HORDE4 [passwd] PHP ERROR: Undefined
> >> > 
> >> > index: encryption [pid 22429 on line 131 of
> >> > 
> >> > "/usr/share/horde4/passwd/config/backends.php"]
> >> > 
> >> > 
> >> > 
> >> > 116 $backends['hordesql'] = array (
> >> > 
> >> > 117     'disabled' => false,
> >> > 
> >> > 118     'name' => 'Horde SQL Authentication',
> >> > 
> >> > 119     'preferred' => '',
> >> > 
> >> > 120     'policy' => array(
> >> > 
> >> > 121         'minLength' => 6,
> >> > 
> >> > 122         'minNumeric' => 1,
> >> > 
> >> > 123     ),
> >> > 
> >> > 124     'driver' => 'Sql',
> >> > 
> >> > 125     'params' => array_merge(
> >> > 
> >> > 126         $GLOBALS['conf']['sql'],
> >> > 
> >> > 127         array('table' => 'horde_users',
> >> > 
> >> > 128               'user_col' => 'user_uid',
> >> > 
> >> > 129               'pass_col' => 'user_pass',
> >> > 
> >> > 130               'show_encryption' => false,
> >> > 
> >> > 131               'encryption' =>
> >> > 
> >> > $GLOBALS['conf']['auth']['params']['encryption'])
> >> > 
> >> > 132     ),
> >> > 
> >> > 133 );
> >> > 
> >> > 
> >> > 
> >> > I haven't touched anything in backends.php
> >> 
> >> Anyone got anything to add before I have another go at this?
> >> 
> >> 
> >> 
> >> Thanks.
> >> 
> >> 
> >> 
> >> Simon
> > 
> > If you're only editing the horde sql backend, you could also use the
> > "Horde" backend instead of the Sql backend.
> 
> By Horde backend you mean the Horde DB?  All my auth is done against
> IMAP (dovecot) which uses a separate DB (also used by postfix) for
> domains/mail accounts.
> 
> As far as I know, I have to use the SQL backend to change that.
> 
> Simon

See line 117:

Horde Sql Backend is NOT disabled - why?

-- 
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: lang at b1-systems.de

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537


More information about the sork mailing list