[Tickets #4668] unable to create groups with ldap

bugs@bugs.horde.org bugs at bugs.horde.org
Wed Nov 15 17:07:49 PST 2006


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

Ticket URL: http://bugs.horde.org/ticket/?id=4668
-----------------------------------------------------------------------
 Ticket             | 4668
 Created By         | pascal at vmfacility.fr
 Summary            | unable to create groups with ldap
 Queue              | Horde Groupware
 Version            | 1.0-RC3
 Type               | Bug
 State              | Unconfirmed
 Priority           | 1. Low
 Owners             | 
-----------------------------------------------------------------------


pascal at vmfacility.fr (2006-11-15 17:07) wrote:

I tried to add a group using ldap and experimented a ldap syntax error when
I have more than one value in  field
$conf['group']['params']['newgroup_objectclass'] (like 
array('posixGroup', 'hordeGroup') ).

Looking at the code lib/Horde/Group/ldap.php I found what I think is a
bug.
With the following patch, I can create groups and modify them: 

# diff -u lib/Horde/Group/ldap.php.org lib/Horde/Group/ldap.php
--- lib/Horde/Group/ldap.php.org        2006-11-16 01:30:46.000000000
+0100
+++ lib/Horde/Group/ldap.php    2006-11-16 01:31:18.000000000 +0100
@@ -43,7 +43,7 @@
         $this->_params['gid'] = strtolower($this->_params['gid']);
         $this->_params['memberuid'] =
strtolower($this->_params['memberuid']);
         foreach ($this->_params['newgroup_objectclass'] as $key => $val)
{
-            $this->_params['newgroup_objectclass'][$key] =
strtolower($val);
+            $this->_params['objectclass'][$key] = strtolower($val);
         }

         /* Generate LDAP search filter. */






More information about the bugs mailing list