6.0.0-beta1
8/14/25

[#8851] Groups not showing up with non flat LDAP directory
Summary Groups not showing up with non flat LDAP directory
Queue Horde Groupware
Queue Version 1.2.5
Type Bug
State Resolved
Priority 1. Low
Owners
Requester Klaus.Steinberger (at) physik (dot) uni-muenchen (dot) de
Created 02/03/2010 (5671 days ago)
Due
Updated 07/01/2011 (5158 days ago)
Assigned 02/04/2010 (5670 days ago)
Resolved 07/01/2011 (5158 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
07/01/2011 08:50:06 PM Jan Schneider Comment #7
State ⇒ Resolved
Reply to this comment
Groups are flat in Horde 4.
05/19/2010 01:38:07 PM Klaus (dot) Steinberger (at) physik (dot) uni-muenchen (dot) de Comment #6 Reply to this comment
I did some debugging now.

Groups which are in the same level as the base DN for groups are 
shown ( $conf[group][params][basedn] ), but any group not in the 
same level will not be shown. Though they are appear in the source 
text of the website frame in the n_admin_group variable.

Maybe the code thinks they are subgroups, but there is no real parent group?
Yep that is it!

Some more debugging code added:

ay 19 15:26:59 HORDE [notice] [horde] Group name ls-vondelft [pid 
20114 on line 246 of "/var/www/html/horde-3.3.8/admin/groups.php"]
May 19 15:26:59 HORDE [notice] [horde] Group parent -1 [pid 20114 on 
line 254 of "/var/www/html/horde-3.3.8/admin/groups.php"]
May 19 15:26:59 HORDE [notice] [horde] Group name lsf-admins [pid 
20114 on line 246 of "/var/www/html/horde-3.3.8/admin/groups.php"]
May 19 15:26:59 HORDE [notice] [horde] Group parent 0 [pid 20114 on 
line 254 of "/var/www/html/horde-3.3.8/admin/groups.php"]

The group ls-vondelft is in ou=Gruppen,o=physik (same as base), but 
group lsf-admins is one step deeper:
ou=ou-feldmann,ou=Gruppen,o=physik

ls-vondelft is shown in the  webinterface, but group lsf-admins is not.

I think the code for subgroups should be switched off with group 
driver = LDAP.

A quick test with forcing $parent_id to -1 shows that it works then.

05/19/2010 01:24:09 PM Klaus (dot) Steinberger (at) physik (dot) uni-muenchen (dot) de Comment #5 Reply to this comment
I did some debugging now.

Groups which are in the same level as the base DN for groups are shown 
( $conf[group][params][basedn] ), but any group not in the same level 
will not be shown. Though they are appear in the source text of the 
website frame in the n_admin_group variable.

Maybe the code thinks they are subgroups, but there is no real parent group?
04/05/2010 01:10:51 PM Jan Schneider State ⇒ No Feedback
 
03/17/2010 03:42:06 PM Jan Schneider Comment #4 Reply to this comment
Have you tracked this further down?
02/04/2010 09:23:06 PM Klaus (dot) Steinberger (at) physik (dot) uni-muenchen (dot) de Comment #3 Reply to this comment
I don't see how this could happen. admin/groups.php *is* using 
listGroups() to build the group tree.
Yes, i have seen that, so I also don't understand how this happens.
02/04/2010 06:23:40 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
I don't see how this could happen. admin/groups.php *is* using 
listGroups() to build the group tree.
02/03/2010 02:59:42 PM Klaus (dot) Steinberger (at) physik (dot) uni-muenchen (dot) de Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Groups not showing up with non flat LDAP directory
Queue ⇒ Horde Groupware
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
With a non flat Group structure in an LDAP directory, Groups will not 
be shown under "Administration" -> "Groups".

The LDAP structure.

ou=Gruppen,o=physik contains most of the groups and is the search base
ou=someOU,ou=Gruppen,o=physik contains some more groups.

With this search base only groups in ou=Gruppen,o=physik will be 
shown. With search base o=physik, no group will be shown.

I verified that listGroups() list all the groups, also permissions 
work, the permission widgets show all groups! Some assumption about a 
flat structure in admin/groups.php ?

Saved Queries