diff options
author | Aleksander Machniak <machniak@kolabsys.com> | 2012-03-30 09:10:04 +0200 |
---|---|---|
committer | Aleksander Machniak <machniak@kolabsys.com> | 2012-03-30 09:10:04 +0200 |
commit | c93bfc52f643eb0c4ab77663a26e86823f597bec (patch) | |
tree | d8abb1f199a2f225a47191aae37b84e68be62099 /lib/api | |
parent | 73e01fe5af2dcebed7dbe2a712994f233df1e935 (diff) | |
download | webadmin-c93bfc52f643eb0c4ab77663a26e86823f597bec.tar.gz |
Group type ID detection (#660)
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/kolab_api_service_group.php | 3 | ||||
-rw-r--r-- | lib/api/kolab_api_service_user.php | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/api/kolab_api_service_group.php b/lib/api/kolab_api_service_group.php index f382d79..c1decaf 100644 --- a/lib/api/kolab_api_service_group.php +++ b/lib/api/kolab_api_service_group.php @@ -149,6 +149,9 @@ class kolab_api_service_group extends kolab_api_service $result = $result[$dn]; $result['entrydn'] = $dn; + // add group type id to the result + $result['group_type_id'] = $this->object_type_id('group', $result['objectclass']); + if ($result) { return $result; } diff --git a/lib/api/kolab_api_service_user.php b/lib/api/kolab_api_service_user.php index 8c60d33..fea9f9d 100644 --- a/lib/api/kolab_api_service_user.php +++ b/lib/api/kolab_api_service_user.php @@ -154,7 +154,7 @@ class kolab_api_service_user extends kolab_api_service $result['entrydn'] = $dn; // add user type id to the result - $result['user_type_id'] = $this->user_type_id($result['objectclass']); + $result['user_type_id'] = $this->object_type_id('user', $result['objectclass']); // Search for attributes associated with the type_id that are not part // of the results returned earlier. Example: nsrole / nsroledn / aci, etc. |