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.
I noticed I had to patch both /ldapquery/ldapquery.php and /ldapquery/options.php to include this line:
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: