Ah, that's it thanks. A constant must be enclosed by single quotes (not double quotes).
Colm. On Fri, May 30, 2014 at 11:26 AM, Francesco Chicchiriccò < ilgro...@apache.org> wrote: > On 30/05/2014 12:20, Colm O hEigeartaigh wrote: > > Thanks Marco! The user template option is a good substitute until we > support realms properly. However, I believe I have run into a bug (on > trunk) with this. I have a "domain" user String attribute + I added an > "ldap-domain" value in the user template. After synchronization, the user > has a value of "0" for the attribute, and not "ldap-domain" as expected. Am > I doing anything obviously wrong here or will I log a JIRA? > > > Could you please report exactly the value you put in the user template's > field? Remember that any field in the user / role templates is a JEXL > expression, then a constant value must be surrounded by '' > > Regards. > > On Fri, May 30, 2014 at 9:36 AM, Marco Di Sabatino Di Diodoro < > marco.disabat...@tirasa.net> wrote: > >> >> Il giorno 29/mag/2014, alle ore 17:55, Colm O hEigeartaigh < >> cohei...@apache.org> ha scritto: >> >> >> How would one model the concept of user domains in Syncope? Let's say >> you have two different backends that you synchronize users from + you want >> to associate all users from resource A with a domain X, and users from >> resource B with a domain Y. Is there any easy way of modelling this? >> >> >> you can use attributes or roles for modeling the concept of user >> domains. >> Maybe in the future it will be possible to model with realms[1]. >> >> >> The only way I can think of is to have a user "domain" attribute. Is >> there a way of specifying a resource user mapping though to map a >> "constant" into a user attribute, if say the domain name isn't stored in >> the backend resource? >> >> >> You have two options: >> >> 1) For each synchronization task you can configure an user template[2]. >> An user template allows you to set a default value for an attribute. >> 2) Create an Action Class for each synchronization task. >> >> [1] Realm - https://issues.apache.org/jira/browse/SYNCOPE-119 >> [2] >> https://cwiki.apache.org/confluence/display/SYNCOPE/Synchronize+Active+Directory+with+SQL+database#SynchronizeActiveDirectorywithSQLdatabase-Provideausertemplate >> > -- > Francesco Chicchiriccò > > Tirasa - Open Source Excellencehttp://www.tirasa.net/ > > Involved at The Apache Software Foundation: > member, Syncope PMC chair, Cocoon PMC, Olingo > PMChttp://people.apache.org/~ilgrosso/ > > -- Colm O hEigeartaigh Talend Community Coder http://coders.talend.com