[#1975] Auth: can't update credentials when using LDAP and hooks
Summary Auth: can't update credentials when using LDAP and hooks
Queue Horde Framework Packages
Type Bug
State Resolved
Priority 2. Medium
Owners
Requester m (dot) zdila (at) episoftware (dot) com
Created 05/15/2005 (1332 days ago)
Due
Updated 05/16/2005 (1331 days ago)
Assigned
Resolved 05/16/2005 (1331 days ago)
Attachments
Milestone
Patch No

History
05/16/2005 Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
Committed, thanks.
05/15/2005 m (dot) zdila (at) episoftware (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Auth: can't update credentials when using LDAP and hooks
Queue ⇒ Horde Framework Packages
Reply to this comment
$SUBJ

patch:
--- ../../horde-3.0/lib/Horde/Auth/ldap.php     Fri Jan  7 01:23:54 2005
+++ ../lib/Horde/Auth/ldap.php  Mon May 16 00:14:14 2005
@@ -258,9 +258,9 @@
          if (!empty($conf['hooks']['authldap'])) {
              @include HORDE_BASE . '/config/hooks.php';
              if (function_exists('_horde_hook_authldap')) {
-                $entry = call_user_func('_horde_hook_authldap', $oldID);
+                $entry = call_user_func('_horde_hook_authldap', 
$oldID, $credentials);
                  $olddn = $entry['dn'];
-                $entry = call_user_func('_horde_hook_authldap', $newID);
+                $entry = call_user_func('_horde_hook_authldap', 
$newID, $credentials);
                  $newdn = $entry['dn'];
                  unset($entry['dn']);
              }