Open baszoetekouw opened 6 years ago
In the end, the error that occurrs is this:
2018-02-19 08:49:07 Notice: Notice (8): Undefined index: Co in [/var/www/comanage-registry-3.0.0/local/Plugin/LdapFixedProvisioner/Model/CoLdapFixedProvisionerDn.php, line 298]
Trace:
ErrorHandler::handleError() - CORE/Cake/Error/ErrorHandler.php, line 230
CoLdapFixedProvisionerDn::obtainDn() - ROOT/local/Plugin/LdapFixedProvisioner/Model/CoLdapFixedProvisionerDn.php, line 298
CoLdapFixedProvisionerDn::assignGroupDn() - ROOT/local/Plugin/LdapFixedProvisioner/Model/CoLdapFixedProvisionerDn.php, line 120
CoLdapFixedProvisionerDn::obtainDn() - ROOT/local/Plugin/LdapFixedProvisioner/Model/CoLdapFixedProvisionerDn.php, line 320
CoLdapFixedProvisionerTarget::provision() - ROOT/local/Plugin/LdapFixedProvisioner/Model/CoLdapFixedProvisionerTarget.php, line 816
ProvisionerBehavior::invokePlugin() - APP/Model/Behavior/ProvisionerBehavior.php, line 525
ProvisionerBehavior::manualProvision() - APP/Model/Behavior/ProvisionerBehavior.php, line 712
BehaviorCollection::dispatchMethod() - CORE/Cake/Model/BehaviorCollection.php, line 239
Model::__call() - CORE/Cake/Model/Model.php, line 829
CoGroup::manualProvision() - APP/Controller/CoProvisioningTargetsController.php, line 360
CoProvisioningTargetsController::provision() - APP/Controller/CoProvisioningTargetsController.php, line 360
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 491
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 96
leading to
2018-02-19 08:49:06 Error: LDAP error during add of CO OU: Invalid DN syntax (invalid DN) (34)
2018-02-19 08:49:06 Error: ...when trying to ldap_add(ou=,ou=people,dc=surfnet,dc=nl, array('ou'=>,'objectClass'=>'organizationalUnit')
2018-02-19 08:49:06 Error: LDAP error during add: Invalid DN syntax (invalid DN) (34, coperson: 53)
(note that ou=people,dc=surfnet,dc=nl
is my basedn in this case)
Provisioning of people works well, but groups aren't properly provisioned (event though the plugin reports success to the user). The problem seems to be that the plugin doesn't get enough information from COmanage. For people, COmanage calls
CoLdapFixedProvisionerTarget::provision()
withprovisioningData
set to a rich array likeFor groups, otoh, the provisioner is called with
provisioningData
set toNot specifically that this doesn't include a
Co
field, so the plugin doesn't know which CO this group belongs to. In addition, it doen't include the members of the group, which seems quite strange.Am I overlooking something here, of should this be fixed in COmanage proper?