6.0.0-git
2019-07-18

[#8251] LDAP Prefs backend, nag tries to bind w/o password
Summary LDAP Prefs backend, nag tries to bind w/o password
Queue Nag
Queue Version 2.3.2
Type Bug
State Duplicate
Priority 1. Low
Owners
Requester m.rolke (at) linux-ag (dot) com
Created 2009-05-07 (3724 days ago)
Due
Updated 2009-06-16 (3684 days ago)
Assigned 2009-05-12 (3719 days ago)
Resolved 2009-06-16 (3684 days ago)
Milestone
Patch Yes

History
2009-06-16 13:38:16 Jan Schneider Comment #5
State ⇒ Duplicate
Reply to this comment
Closed in favor of the catch-all ticket #8353.
2009-05-26 11:39:29 Jan Schneider Deleted Original Message
 
2009-05-15 16:08:34 m (dot) rolke (at) linux-ag (dot) com Comment #4
New Attachment: ldap_prefs_backend_bind_without_password_updated.patch Download
Reply to this comment
Like in Kronolith, $user is not always the current user.
Ok, i updated the patch.
2009-05-12 14:16:28 Jan Schneider Comment #3
State ⇒ Feedback
Reply to this comment
Like in Kronolith, $user is not always the current user.
2009-05-07 22:02:44 simon (at) simonandkate (dot) net Comment #2 Reply to this comment

[Show Quoted Text - 19 lines]
Thanks, I hadn't had any errors from Nag like Ingo and Kronolith were 
throwing for me with this 'binding with no password' issue, but I've 
patched it anyway.
2009-05-07 13:08:18 m (dot) rolke (at) linux-ag (dot) com Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Summary ⇒ LDAP Prefs backend, nag tries to bind w/o password
Queue ⇒ Nag
Milestone ⇒
Patch ⇒ Yes
New Attachment: ldap_prefs_backend_bind_without_password.patch
Reply to this comment
Similar issue to http://bugs.horde.org/ticket/7418 and 
http://bugs.horde.org/ticket/8246  nah tries to

bind to LDAP as user without password.



There are two places in nag where the preference system is being instanciated.

I patched only one place (see comments below), please correct me if i'm wrong.



grep -n "Prefs::" * -r
nag/lib/Nag.php:964:        $prefs = 
&Prefs::singleton($GLOBALS['conf']['prefs']['driver'],
needs to be patched. see attachment
nag/lib/api.php:1380:            $prefs = 
&Prefs::singleton($GLOBALS['conf']['prefs']['driver'],
preferences for the logged-in user should rather be retrieved via 
$prefs = &$GLOBALS['prefs']; similar to kronolith/lib/api.php:1348

Saved Queries