[#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 (dot) rolke (at) linux-ag (dot) com
Created 05/07/09 (308 days ago)
Due
Updated 06/16/09 (268 days ago)
Assigned 05/12/09 (303 days ago)
Resolved 06/16/09 (268 days ago)
Attachments ldap_prefs_backend_bind_without_password_updated.patch Download
Milestone
Patch Yes

History
06/16/09 Jan Schneider Comment #5
State ⇒ Duplicate
Reply to this comment
Closed in favor of the catch-all ticket #8353.
05/26/09 Jan Schneider Deleted Attachment: ldap_prefs_backend_bind_without_password.patch
 
05/15/09 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.
05/12/09 Jan Schneider Comment #3
State ⇒ Feedback
Reply to this comment
Like in Kronolith, $user is not always the current user.
05/07/09 simon (at) simonandkate (dot) net Comment #2 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
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.
05/07/09 m (dot) rolke (at) linux-ag (dot) com Comment #1
State ⇒ Unconfirmed
New Attachment: ldap_prefs_backend_bind_without_password.patch
Patch ⇒ 1
Milestone ⇒
Queue ⇒ Nag
Summary ⇒ LDAP Prefs backend, nag tries to bind w/o password
Type ⇒ Bug
Priority ⇒ 1. Low
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