summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-03-01 22:11:34 +0000
committerthomascube <thomas@roundcube.net>2011-03-01 22:11:34 +0000
commit15e94412633b41c177e621d427cd6d5496a11702 (patch)
tree5d8d6364a695e0def219e63dac74596d8aa740a0 /program
parentae39c47c3a07f9a9334c9676829fd948d682ffbd (diff)
Fix LDAP group identifiers
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_ldap.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_ldap.php b/program/include/rcube_ldap.php
index c8253713b..a20d12318 100644
--- a/program/include/rcube_ldap.php
+++ b/program/include/rcube_ldap.php
@@ -1068,7 +1068,7 @@ class rcube_ldap extends rcube_addressbook
* @param string New group identifier (if changed, otherwise don't set)
* @return boolean New name on success, false if no data was changed
*/
- function rename_group($group_id, $new_name, &$new_id)
+ function rename_group($group_id, $new_name, &$new_gid)
{
if (!$this->group_cache)
$this->list_groups();
@@ -1077,7 +1077,7 @@ class rcube_ldap extends rcube_addressbook
$group_name = $this->group_cache[$group_id]['name'];
$old_dn = "cn=$group_name,$base_dn";
$new_rdn = "cn=$new_name";
- $new_id = base64_encode($new_rdn . ",$base_dn");
+ $new_gid = base64_encode($new_name);
$res = ldap_rename($this->conn, $old_dn, $new_rdn, NULL, TRUE);
if ($res === false)