Re: No password propagation after User creation.

2017-05-12 Thread HugoCerdeira
yes, it does include the password: internal attribute=password; external attribute=password; mandatory = true ilgrosso wrote > On 12/05/2017 11:31, Hugo Cerdeira wrote: >> Hi, >> >> I'm trying to propagate a User when creating it via rest services of >> the syncope-core, I'm able to create him

Re: No password propagation after User creation.

2017-05-12 Thread HugoCerdeira
"purpose": "PROPAGATION", "propagationJEXLTransformer": null, "pullJEXLTransformer": null, "mappingItemTransformerClassNames": [], }, { "key": "c721a1de-2b14-4028-a1a1-de2b14502805", "intAttrName": "username", &qu

Re: Rest services, user creation response with password=null

2017-05-11 Thread HugoCerdeira
Hi, Thanks for the quick reply! That worked and i can now see the password on the response, but when I'm trying to the provisioning of the User I receive null on the password field, on my groovy script used by my connector. I do receive the other fields like username and plain attrs so i guess

Re: Cannot synchonize LDAP to Syncope

2017-05-12 Thread HugoCerdeira
Hi, you can check it by going configurations > types > schemas and theres a field for multivalue, or by sending a get request to /syncope/rest/schema/{type}/{key} sasha gesta wrote > How can I check it? In connector or in resource? > > On Fri, May 12, 2017 at 6:55 PM, Marco Di Sabatino Di

Re: Access plain attributes on ConnId connector groovy script

2017-05-04 Thread HugoCerdeira
solved sry guys! -- View this message in context: http://syncope-user.1051894.n5.nabble.com/Access-plain-attributes-on-ConnId-connector-groovy-script-tp5709193p5709194.html Sent from the syncope-user mailing list archive at Nabble.com.

Re: Pass-throught authentication

2018-02-27 Thread HugoCerdeira
Hi Andrea, Seems like the problem was that I forgot to add the mapping at all! So I've now added it and it seems to be working fine! Thanks for you help, cheers Hugo Cerdeira. -- Sent from: http://syncope-user.1051894.n5.nabble.com/

How to make sql queries on a authentication groovy script

2018-02-27 Thread HugoCerdeira
Hi, I'm making an authentication groovy script my goal is the following flow: 1. Script makes a request to a service sending the user and password. 2. If the request response is successful query the syncope db for the user id, using the username. 3. Return the user id. The problem is, since the

UPDATE Operation calls CREATE script file

2018-03-13 Thread HugoCerdeira
Hi, I'm updating a user via the syncope ws, and when a propagation taks is created, like this one: despite it being an UPDATE operation, the create script file is called instead of the

Re: NOT_ATTEMPTED status on update propagation

2018-03-09 Thread HugoCerdeira
Hi, thanks for your reply but I do give the correct capabilities to the resource as you can see in the image: Cheers, Hugo Cerdeira. -- Sent from:

NOT_ATTEMPTED status on update propagation

2018-03-07 Thread HugoCerdeira
Hi, Im having issues, when i update a user via syncope ws the resource creates a propagation task but is not executed. I get this propagations status on the rest response: "propagationStatuses": [ { "beforeObj": null, "afterObj": null, "resource": "openCartPropagationUpdateResource",

Pass-throught authentication

2018-02-27 Thread HugoCerdeira
Hi, I'm having problem trying to use the pass-through authentication on syncope. I have the resource configured, but when I use basic authentication to access the REST api, with the wrong password (so it uses my groovy authScript), I get a 500 with the following error: /HTTP Status 500 - The

Re: How to make sql queries on a authentication groovy script

2018-02-28 Thread HugoCerdeira
After i few tries, and with all your help i think i got it. The external key always come to the script via the "username" variable, since its, probably, the way the connector is written, if i map the email as external id, i can access the email field of the user from the groovy script via the

Re: How to make sql queries on a authentication groovy script

2018-02-28 Thread HugoCerdeira
Hi, Thanks for your quick answers, After mapping the email on the resource, I cant access it on the groovyscript. This is my mapping: If I use the external_email on the groovyscript, my script just

Re: How to make sql queries on a authentication groovy script

2018-02-28 Thread HugoCerdeira
Thats not a problem because i authenticate on syncope via username/password i only need the email for the webservice that i sue on the groovy script, so it works as it is! Thanks anyway. Cheers, Hugo Cerdeira. -- Sent from: http://syncope-user.1051894.n5.nabble.com/

Re: How to make sql queries on a authentication groovy script

2018-02-28 Thread HugoCerdeira
Hi, Well that helps, but what if I need to get the user email in order to make the external authentication work? its seems like I cant access the email, even if I map it on the resource. Thanks for your help, Hugo Cerdeira. -- Sent from: http://syncope-user.1051894.n5.nabble.com/

Re: How to make sql queries on a authentication groovy script

2018-02-28 Thread HugoCerdeira
Thanks once again for the quick reply, Setting the mapping as bidirectional, did not work. Using the command "this.binding.variables.each {k,v -> map[k]=v}" on my groovy script, to check what it actually has I get the following map: [password:authPassword,