From: Jonathan A. <ja...@ce...> - 2002-10-22 14:20:04
|
Hello John, On Tuesday, October 22, 2002, John Lazos wrote... > Hi!! > i'm using squirrelmail-1.2.7 with a qmail-ldap mail server..i install the > plugin for the Change LDAP password...an i modified the config.php file like > this: > <?php > $ldap_server = "localhost"; > $ldap_password_field ="userPassword"; > $ldap_base_dn = "dc=koutcons,dc=gr"; > $ldap_manager_dn="cn=Manager,$ldap_base_dn"; > $ldap_manager_pw="mypass"; > $ldap_bind_as_manager = 1; > $smb_passwd="/usr/bin/smbpasswd"; > $change_smb=1; ?>> > and through squirrel when i'm trying to change the password i'm getting the > following error: > Fatal error: Call to undefined function: ldap_connect() in > /var/www/htdocs/squirrelmail-1.2.7/plugins/change_ldappass/options.php on > line 105 > but if i enter wrong old password i'm getting a warning that says the old > password is not correct > any ideas? > thanx for your time This may be a really silly question, but is your PHP compiled with LDAP support? The function ldap_connect() will only be available if you compile php with the --with-ldap switch. The SquirrelMail connection to LDAP is done via the imap server I believe (in this case at least), so the running order is something like this: SquirrelMail -- IMAP -- LDAP But when trying to change pass, you're trying to go: SquirrelMail -- LDAP Without PHP being compiled with LDAP support, that will fail. I think that the reason it may return an error if you enter the wrong password because it probably logs you in first... then attempts to change the pass. I am not entirely sure though, this would all be guess work as I've done little work with LDAP. You may want to create a temporary file called test.php in your web server's document directory, and put the following code in: <? phpinfo(); ?> Save, then point your browser at it, like http://localhost/test.php and check to see if you have LDAP support. -- Jonathan Angliss (ja...@ce...) |