Hi Antonio,
Il 05/11/2015 12:41, Antonio Ciancio ha scritto:
Hi all,
when i try to synchronize roles in Syncope, using the SctiptedSQL
bundle, from external resource, i get the following:
Roles failed to create: CREATE FAILURE (id/name): null/null with message:
InvalidEntityException: SyncopeRole [Standard]
CREATE FAILURE (id/name): null/null with message: InvalidEntityException:
SyncopeRole [Standard]
CREATE FAILURE (id/name): null/null with message: InvalidEntityException:
SyncopeRole [Standard]
I don't understand the reason.
Take a look at the sample files for ScriptedSql connector [1].
You must return a list of map where each map must contain a '__UID__'
and '__NAME__' attribute. This two attributes are required to build a
ConnectorObject.
Regards
Marco
[1]
https://github.com/Tirasa/ConnIdDBBundle/tree/master/scriptedsql/src/main/resources/samples
My external resource is structured like this:
Groups | CREATE TABLE `Groups` (
`id` int NOT NULL AUTO_INCREMENT,
`gid` char(32) NOT NULL,
`name` varchar(32) NOT NULL DEFAULT,
PRIMARY KEY (`id`)
)
How can I map these values in Syncope?
--
Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570
Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net
Apache Syncope PMC Member
http://people.apache.org/~mdisabatino/