Squirrelmail's address book doesn't dereference ldap aliases. So if you build a 
subtree on your ldap directory containing pointers/aliases to everyone who's 
supposed to be in the address book, squirrelmail won't see any of the entries. 
The patch to fix this is painfully simple:

-edit functions/abook_ldap_server.php

-find "0, $this->maxrows, $this->timeout"

-right after "$this->timeout" add ", LDAP_DEREF_ALWAYS"
(note the comma and space before LDAP_DEREF_ALWAYS)

I've used this since version 1.2.5




For those who don't want to manually make this small change, I've included pre_patched abook_ldap_server.php files in the "version" directory.

To install:

-Change directory to the "versions" folder of this plugin

-Change directory to your version of squirrelmail

-Move existing squirrelmail/functions/abook_ldap_server.php out of the way

-Copy abook_ldap_server.php from current location to squirrelmail/functions

NOTE: you do *not* need to enable "deref_ldap" in the squirrelmail plugins
configuration, since this is a patch and not a "conventional" plugin.




Questions and comments are welcome; email me at freespirit74@yahoo.com or post
to the squirrelmail-plugins list.

****************************
Revision history

04/22/03 - ver 1.0
- initial public release
