I've been using the change_ldappass-1.8 plugin for a while and it needs the following trivial patch to work with LDAP v3 protocol.
This has been tested with OpenLDAP 2.2.xx/2.3.xx with SM 1.4.x and compatibility plugin 1.3 and PHP 5.0.x/5.1.x on Linux (x32/x64)
Without this patch, OpenLDAP reports "history version of protocol.." error or something of that sort.
Comments welcome.
Chida
--- /usr/local/src/change_ldappass/options.php 2004-12-12 20:30:13.000000000 -0800 +++ options.php 2006-06-15 11:22:21.000000000 -0700 @@ -150,6 +150,10 @@ array_push($Messages, _("Can't connect to Directory Server, please try later!")); return $Messages; } + +// Set OpenLDAP PROTOCOL version + ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3); + // first bind and try to determine the correct dn for the user with uid=$username if (! @ldap_bind($ds,"$query_dn","$query_pw")) { array_push($Messages, _("LDAP bind failed."));
-- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users