From 15e94412633b41c177e621d427cd6d5496a11702 Mon Sep 17 00:00:00 2001 From: thomascube Date: Tue, 1 Mar 2011 22:11:34 +0000 Subject: Fix LDAP group identifiers --- program/include/rcube_ldap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'program') 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) -- cgit v1.2.3