[sork] ldap password change problem

Tom Fernandes anyaddress at gmx.net
Fri May 30 01:33:36 PDT 2003


Hi all,
I got a combination of cyrus, horde2, imp3 and openldap running and I get the following error when I try to change my password through imp on the ldap server.
This error occurs after clicking on the "Change your password" button.
If I run slapd in debug mode it looks like horde is not even conncting the ldap server.

I'm not a php-programmer so I've got no clue what's going on...


Fatal error: Call to undefined function: ldap_connect() in /usr/share/horde2/passwd/lib/Driver/ldap.php on line 49

my backends.php:


$backends['ldap'] = array(
    'name' => 'Example LDAP server',
    'preferred' => 'my.domain',
    'password policy' => array(
        'minLength' => 3,
        'maxLength' => 8
    ),
    'driver' => 'ldap',
    'params' => array(
        'host' => 'localhost',
        'port' => 389,
        'basedn' => 'dc=my,dc=domain',
        'uid' => 'uid',
        'realm' => '', // this will be appended to the username when
                       // looking for the userdn.
        'userdn' => 'uid=' . Auth::getAuth() . ',ou=people,dc=my,dc=domain',
        'encryption' => 'crypt'
    )
);

line 40 looks like:

        $this->_ds = ldap_connect($this->_params['host'], $this->_params['port']);



installed packages (relevant)
ii  php4-mhash     4.1.2-6        MHASH module for php4
ii  horde2         2.2.1-3        The Horde Web Application Suite
ii  imp3           3.2.1-1        Web Based Mail Program.
ii  php4-imap      4.1.2-6        IMAP module for php4
ii  php4           4.1.2-6        A server-side, HTML-embedded scripting
ii  apache-ssl     1.3.26.1+1.48- Versatile, high-performance HTTP server with
ii  slapd          2.1.17-2       OpenLDAP server (slapd)

thanks in advance,

Tom


More information about the sork mailing list