summaryrefslogtreecommitdiffstats
path: root/lib/api/kolab_api_service_user.php
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-09-04 13:50:41 -0400
committerAleksander Machniak <machniak@kolabsys.com>2014-09-04 13:50:41 -0400
commit5891dec809b989badbbd4c4901998e8d55f1d8d5 (patch)
tree5056340fb12d30dbc98aee5a7ad67ef633fb42bc /lib/api/kolab_api_service_user.php
parent7c810d56e2acfd438805f3ba93e8a428ea7d8b59 (diff)
downloadwebadmin-5891dec809b989badbbd4c4901998e8d55f1d8d5.tar.gz
Unify *.info and *.find commands result (#3155)
+ Small code cleanup
Diffstat (limited to 'lib/api/kolab_api_service_user.php')
-rw-r--r--lib/api/kolab_api_service_user.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/api/kolab_api_service_user.php b/lib/api/kolab_api_service_user.php
index 79dcb59..33e055a 100644
--- a/lib/api/kolab_api_service_user.php
+++ b/lib/api/kolab_api_service_user.php
@@ -130,12 +130,11 @@ class kolab_api_service_user extends kolab_api_service
Log::trace("\$postdata to user_edit()", $postdata);
$user_attributes = $this->parse_input_attributes('user', $postdata);
- $user = $postdata['id'];
Log::trace("\$user_attributes as result from parse_input_attributes", $user_attributes);
$auth = Auth::get_instance();
- $result = $auth->user_edit($user, $user_attributes, $postdata['type_id']);
+ $result = $auth->user_edit($postdata['id'], $user_attributes, $postdata['type_id']);
// Return the $mod_array
if ($result) {
@@ -176,14 +175,6 @@ class kolab_api_service_user extends kolab_api_service
// normalize result
$result = $this->parse_result_attributes('user', $result);
- if (empty($result['ou'])) {
- $dn = ldap_explode_dn($result['entrydn'], 0);
- // pop the count and rdn
- unset($dn['count']);
- unset($dn[0]);
- $result['ou'] = implode(',', $dn);
- }
-
Log::trace("user.info on " . $getdata['id'] . " parsed result: " . var_export($result, TRUE));
if ($result) {