6.0.0-beta1
7/3/25

[#13247] Undefined index: writedn on line 529 of Horde/Group/Ldap.php
Summary Undefined index: writedn on line 529 of Horde/Group/Ldap.php
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester skhorde (at) smail (dot) inf (dot) fh-bonn-rhein-sieg (dot) de
Created 06/05/2014 (4046 days ago)
Due
Updated 06/05/2014 (4046 days ago)
Assigned
Resolved 06/05/2014 (4046 days ago)
Github Issue Link
Github Pull Request
Milestone Horde_Group 2.0.4
Patch Yes

History
06/05/2014 11:39:41 AM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
Milestone ⇒ Horde_Group 2.0.4
 
06/05/2014 11:39:23 AM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (master):

commit 43d56faec442061cca5fd331fe26e3780531ff84
Author: Jan Schneider <jan@horde.org>
Date:   Thu Jun 5 13:32:34 2014 +0200

     [jan] Check for read-only LDAP configurations in removeUser() 
(skhorde@smail.inf.fh-bonn-rhein-sieg.de, Bug #13247).

  framework/Group/lib/Horde/Group/Ldap.php |    4 ++++
  framework/Group/package.xml              |    4 ++--
  2 files changed, 6 insertions(+), 2 deletions(-)

http://github.com/horde/horde/commit/43d56faec442061cca5fd331fe26e3780531ff84
06/05/2014 09:59:07 AM skhorde (at) smail (dot) inf (dot) fh-bonn-rhein-sieg (dot) de Comment #2 Reply to this comment
If you setup Horde to use LDAP groups, but does not allow write 
access, then you try to remove user data via horde-remove-user-data, 
you get:
There is yet another bug #13248, if you try this patch in combination 
with horde-remove-user-data.
06/05/2014 09:47:52 AM skhorde (at) smail (dot) inf (dot) fh-bonn-rhein-sieg (dot) de Comment #1
Priority ⇒ 1. Low
New Attachment: h5_removeUser-no-ro-check.diff.bz2 Download
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ Undefined index: writedn on line 529 of Horde/Group/Ldap.php
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
If you setup Horde to use LDAP groups, but does not allow write 
access, then you try to remove user data via horde-remove-user-data, 
you get:

  HORDE: [horde] PHP ERROR: Undefined index: writedn [pid 31261 on 
line 529 of "/usr/share/php/Horde/Group/Ldap.php"]
  HORDE: [horde] PHP ERROR: Undefined index: writepw [pid 31261 on 
line 529 of "/usr/share/php/Horde/Group/Ldap.php"]
  HORDE: [horde] Could not delete attribute memberUid: Strong(er) 
authentication required [pid 31261 on line 456 of 
"/usr/share/php/Horde/Group/Ldap.php"]

Attached patch fixes the errors in the log by protecting removeUser() by
if ($this->readOnly()) {
    throw new Horde_Group_Exception('This group backend is read-only.');
}

as done by the other write functions in this PHP file.

Saved Queries