6.0.0-alpha14
7/3/25

[#9747] preauthentication Hook not working
Summary preauthentication Hook not working
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester noles (at) a3k (dot) net
Created 03/30/2011 (5209 days ago)
Due
Updated 03/31/2011 (5208 days ago)
Assigned
Resolved 03/30/2011 (5209 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
03/31/2011 07:02:55 AM Michael Slusarz Comment #5 Reply to this comment
Not sure where that example came from, but it has been fixed.
03/31/2011 07:02:11 AM Git Commit Comment #4 Reply to this comment
Changes have been made in Git for this ticket:

Bug #9747: Fix preauthenticate example

  1 files changed, 29 insertions(+), 22 deletions(-)
http://git.horde.org/horde-git/-/commit/a76c4c6d12f40951d790106d30de7117a1f224d2
03/30/2011 08:50:11 PM noles (at) a3k (dot) net Comment #3 Reply to this comment
OK but then the Example #4 for the preauthentication hook has a wrong 
return array!
Please read the documentation in horde/config/hooks.php.dist.   
Specifically the following:

  *   (array) - Replace the credentials with the given key/values. Keys are
  *             'userId' and 'credentials'. Only the keys defined will be
  *             altered.
03/30/2011 06:29:01 PM Michael Slusarz Comment #2
State ⇒ Not A Bug
Reply to this comment
Please read the documentation in horde/config/hooks.php.dist.   
Specifically the following:

  *   (array) - Replace the credentials with the given key/values. Keys are
  *             'userId' and 'credentials'. Only the keys defined will be
  *             altered.
03/30/2011 11:08:05 AM noles (at) a3k (dot) net Comment #1
Priority ⇒ 1. Low
New Attachment: Application.php.diff Download
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ preauthentication Hook not working
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
I found a bug in the class Horde_Core_Auth_Application -> function 
runHook which causes a problem with the preauthentication Hook.

The call of Horde::callHook in the runHook function results in an 
array with integer indexes not with string indexes like userID or 
credentials.

With the current Git Code the preauth hook results will never be used.

See patch...

File: Horde/Core/Auth/Application.php

Saved Queries