On 06/07/2016 16:53, Francesco Chicchiriccò wrote:
[...]

About

I have the need to place users in realms preferably based on a ldap attribute
you might want to add your own PullActions implementation, and to configure it in your pull task.

Take a look at [1] for an example: you will have access to the LDAP attribute via

delta.getObject().getAttributeByName("your_attribute_name")

and then you can set the realm via userTO.setRealm().

Finally, consider that standalone distribution won't allow this kind of extensions, you will need to setup a Maven project.

Correction: making the destination realm parametric should be actually possible *without* the need of a dedicate pull action.

There are, though, some problems around it: see SYNCOPE-898 [2] for details.

Regards.

[1] https://github.com/apache/syncope/blob/master/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/pushpull/DBPasswordPullActions.java#L64-L75
[2] https://issues.apache.org/jira/browse/SYNCOPE-898

--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC, Olingo PMC,
CXF Committer, OpenJPA Committer, PonyMail PPMC
http://home.apache.org/~ilgrosso/

Reply via email to