diff options
author | Aleksander Machniak <machniak@kolabsys.com> | 2014-03-04 14:43:24 +0100 |
---|---|---|
committer | Aleksander Machniak <machniak@kolabsys.com> | 2014-03-04 14:43:24 +0100 |
commit | 2a8ac19a13e682bd1e52b2364702414031f36767 (patch) | |
tree | 95d9aa20b06fd1d74be8944acf95abd3ddf95157 /lib/kolab_api_service.php | |
parent | 8e09ba6962f63bfcb0dcd6eee92250b352bec895 (diff) | |
download | webadmin-2a8ac19a13e682bd1e52b2364702414031f36767.tar.gz |
Add support for organizational unit hierarchy
Diffstat (limited to 'lib/kolab_api_service.php')
-rw-r--r-- | lib/kolab_api_service.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/kolab_api_service.php b/lib/kolab_api_service.php index 0e01a9e..4733347 100644 --- a/lib/kolab_api_service.php +++ b/lib/kolab_api_service.php @@ -347,6 +347,12 @@ abstract class kolab_api_service } } + // OU's parent attribute + if ($object_name == 'ou' && !empty($attribs['base_dn'])) { + // @TODO: validate? + $result['base_dn'] = $attribs['base_dn']; + } + $result = array_merge($result, $special_attr_validate); Log::trace("parse_input_attributes result (merge of \$result and \$special_attr_validate)", $result); @@ -452,10 +458,11 @@ abstract class kolab_api_service * * @param string $object_name Name of the object (user, group, etc.) * @param array $attrs Entry attributes + * @param string $dn Will be filled with object base DN * * @return array Entry attributes */ - protected function parse_result_attributes($object_name, $attrs = array()) + protected function parse_result_attributes($object_name, $attrs = array(), &$dn = null) { //console("parse_result_attributes($object_name, \$attrs = ", $attrs); |