[dev] passwd not working after upgrading to 3.1

Manilal K M manilal at ejyothi.com
Thu Mar 26 13:22:36 UTC 2009


Hello,
   Today I have upgraded passwd(3.0.1) to version 3.1 using the patch  
provided at horde FTP site. Our server is installed with Horde-3.3.3  
and OpenLDAP as the authentication backend. After upgrading, passwd is  
unable to change the password on the LDAP database. The error message  
is :

*Failure in changing password for Ascella LDAP server: Could not bind  
to LDAP server*

Here are the config files:

passwd/config/conf.php:
$conf['menu']['apps'] = array();
$conf['backend']['backend_list'] = 'hidden';
$conf['user']['change'] = false;
$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', 'mysql', 'news', 'postfix', 'sshd', 'tty',  
'www');
$conf['password']['strengthtests'] = false;
$conf['hooks']['full_name'] = true;
$conf['hooks']['default_username'] = false;
$conf['hooks']['username'] = false;
$conf['hooks']['userdn'] = true;

passwd/config/backends.php (This is the same file which was used with 3.0.1):
$backends['ldap'] = array(
     'name' => 'LDAP Auth Server',
     'preferred' => '',
     'password policy' => array(
         'minLength' => 5,
         'maxLength' => 30
     ),
     'driver' => 'ldap',
     'params' => array(
         'host' => 'localhost',
         'port' => 389,
         'basedn' => 'c=US',
         'uid' => 'uid',
         'realm' => '',
         'encryption' => 'md5-base64',
         'show_encryption' => true,
         'tls' => false
     )
);

passwd/config/hooks.php (In the older version this code snippet was in  
horde/config/hooks.php )
if (!function_exists('_passwd_hook_userdn')) {
     function _passwd_hook_userdn($auth)
     {
         $components = split('@',$auth);
         $tldparts = split('\.',$components[1]);
         $userdn = 'uid=' . $auth . ',ou=People,';
         foreach ($tldparts as $part) {
             $userdn .= 'o=' . $part . ',';
         }
         $userdn .= 'c=US';
         Horde::logMessage('********' . $userdn . '********',  
__FILE__, __LINE__, PEAR_LOG_DEBUG);
         return $userdn;
     }
}

passwd-3.0.1 is working without any issues with the above config. Am I  
missing something ? Please help me.

regards

-- 
Manilal K M
eJyothi Services
http://www.ejyothi.com



More information about the dev mailing list