[sork] Failure in changing password: Incorrect Password

David Chang david at thbuo.gov.tw
Tue Apr 22 13:03:01 PDT 2003


Hi all:
I used openldap 2.0.25 as authenticate backend,and update my CVS source today.

My problem is ,A few days ago,change passwd worked perfectly till today.

Here is the error message:
Failure in changing password: Incorrect Password

Passwd seem complain that old password incorrect.But that's not true.

HORDE ENV:
horde/config/conf.php
---------------------
$conf['auth']['driver'] = 'application';
$conf['auth']['params']['app'] = 'imp';

imp/config/server.php
---------------------
$servers['local'] = array(
 'name' => 'thbuo.gov.tw',
 'server' => 'localhost',
    'protocol' => 'imap/notls',
    'port' => 143,
    'folders' => '',
    'namespace' => 'INBOX.',
    'maildomain' => 'thbuo.gov.tw',
    'smtphost' => 'localhost',
    'realm' => 'thbuo.gov.tw',
    'preferred' => '',
    'quota' => array(
        'driver' => 'cyrus',
        'params' => array(
            'login' => 'admin',
            'password' => 'who_care'
        )
    ),
    'acl' => array(
        'driver' => 'rfc2086',
    ),
    'dotfiles' => false,



passwd/config/conf.php
----------------------
$conf['menu']['apps'] = array();
$conf['backend']['backend_list'] = 'hidden';
$conf['user']['change'] = true;
$conf['user']['refused'] = array('root', 'bin', 'daemon', 'adm', 'lp', 'shutdown
', 'halt', 'uucp', 'ftp', 'anonymous', 'nobody', 'httpd', 'operator', 'guest', '
diginext', 'bind', 'cyrus', 'courier', 'games', 'kmem', 'mailnull', 'man', 'mysq
l', 'news', 'postfix', 'sshd', 'tty', 'www');
$conf['password']['strengthtests'] = true;
$conf['hooks']['username'] = false;
$conf['hooks']['default_username'] = false;
$conf['hooks']['userdn'] = false;


passwd/config/backends.php
--------------------------
$backends['ldap'] = array(
    'name' => 'ldap',
    'preferred' => 'true',
    'password policy' => array(
        'minLength' => 6,
        'maxLength' => 8,
        'minNumeric' => 2,
        'minAlpha' => 2
    ),
    'driver' => 'ldap',
    'params' => array(
        'host' => 'localhost',
        'port' => 389,
        'basedn' => 'dc=test',
        'uid' => 'uid',
        'realm' => '', // this will be appended to the username when
                       // looking for the userdn.
//        'userdn' => 'uid=' . Auth::getAuth() . ',o=example.com',
        'encryption' => 'md5-base64',
        'tls' => false // make sure the host == cn in the server certificate
    )
);


P.S
1.User's accounts were merge from OS /etc/passwd so encryption use md5-base64 .

2. --with-mhash was successfuly compile into my PHP

3. Other ENV can found here http://210.241.49.68/horde.beta/test.php

4. Again,this problem just happen since last time i update from cvs source.

David Chang





More information about the sork mailing list