Related forum thread:
http://forum.dokuwiki.org/thread/4131
I was running Debian Squeeze with
php5 v5.2.10.dfsg.1-2
php5-ldap v5.2.10.dfsg.1-2
The attached solution works to alleviate the problem, but it would be nice to not have to worry about this in a future release.