How to use an LDAP server to provide adresses, and how to change the addresses provided
With FreeBSD, SquirrelMail 1.4.5, OpenLDAP 2.2.27, getting this to work required:
- apt-get install php4-ldap
- Adding an LDAP server via the SquirrelMail conf.pl script (don't look for this in the web interface).
- Enabling the ldapquery plugin (also with conf.pl of course).
- At this point, I was getting include errors about not being able to find validate.php in the src/ directory. Sure enough, in my version of SquirrelMail (1.4.5), validate.php is in the include/ directory. Therefore, you'll need to edit the plugins/ldapquery/ldapquery.php file to adjust for the different path.
Once all these were done it finally worked.
Paul (http://www.pauljohnston.com)
I noticed I had to patch both /ldapquery/ldapquery.php and /ldapquery/options.php to include this line:\n
define('SM_PATH', '../');
Robert Kehl (http://robertkehl.de)
Using: Windows 2000 / PHP 4.3.4 / SquirrelMail 1.4.3a / ldapquery 1.6-1.2.5
I also had to add the following lines to ldapquery.php:\n
sqgetGlobalVar('ldq_querystr', $ldq_querystr);
sqgetGlobalVar('ldq_searchfor', $ldq_searchfor);
sqgetGlobalVar('ldq_searchby', $ldq_searchby);
sqgetGlobalVar('ldq_sortby', $ldq_sortby);
sqgetGlobalVar('ldq_comparetype', $ldq_comparetype);
Ivor Potter