[Tickets #6883] Re: group permission with LDAP does not work

bugs at horde.org bugs at horde.org
Fri Oct 24 18:02:17 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/6883
------------------------------------------------------------------------------
  Ticket             | 6883
  Updated By         | horde_list at blomberg.tk
  Summary            | group permission with LDAP does not work
  Queue              | Horde Framework Packages
  Version            | FRAMEWORK_3
  Type               | Bug
  State              | Resolved
  Priority           | 3. High
  Milestone          | 3.3
  Patch              |
  Owners             | Jan Schneider
------------------------------------------------------------------------------


horde_list at blomberg.tk (2008-10-24 14:02) wrote:

With Horde 3.3 and sql.php v. 1.1.2.49 and sql_hierarchical.php v.  
1.17.2.25 it is still problem. PostgreSQL say: column "cn" does not  
exist

This fix works for me:

--- sql.php.1.1.2.49    Fri Oct 24 17:50:36 2008
+++ sql.php     Fri Oct 24 19:23:31 2008
@@ -673,7 +673,7 @@
                  $group_ids = array_keys($groups);
                  array_walk($group_ids, array($this->_db, 'quote'));
                  $query .= ' LEFT JOIN ' . $this->_table . '_groups  
AS g ON g.share_id = s.share_id';
-                $where .= ' OR (g.group_uid IN (' . implode(',',  
$group_ids) . ')'
+                $where .= ' OR (g.group_uid IN (\'' . implode(',',  
$group_ids) . '\')'
                      . ' AND (g.perm & ' . $perm .') != 0)';
              } elseif (is_a($groups, 'PEAR_Error')) {
                  Horde::logMessage($groups, __FILE__, __LINE__, PEAR_LOG_ERR);






More information about the bugs mailing list