Hi,
Il 19/04/21 15:59, utpal kas ha scritto:
Marco,
Thanks for your reply.
We do have a logic in place which sets the *deleted *column value to
true present in a table where dbmapper looks at. We have implemented a
PULL java interface and tried few things like having a code in
*beforeProvision *method which looks for *deleted *column value but
its not deleting the row.
I lost your last mail.
You must enable delete action in your pull task and check if the
SyncDeltaType is of type DELETE.
Regards
M
Your advise is much appreciated.
Thanks,
Utpal
On Sunday, April 18, 2021, 02:47:10 AM EDT, Marco Di Sabatino Di
Diodoro <[email protected]> wrote:
Hi
Il 08/04/21 23:55, utpal_kas ha scritto:
Hello,
We have replaced the PULL resource from csv mapper to db mapper. Csv
mapper had support for delete functionality (if a record's delete
column's value if true then syncope would deprovision that user from
both syncope database and LDAP), I do wish to implement similar
functionality using Dbmapper.
There are two options:
- Switch to Scripted SQL connector
- Implement a pull action
I see that we need to implement it using java class (implement
PullAction Interface), can you please share which method should we
override and the delete code snippet which will delete the record ?
It depends on how your resource is made. In order to delete an entry
you will need to have a delta of type delete.
Another question, if the PULL task (db mapper resource) is set up
with auto propagation mode (propagate modification automatically to
LDAP), will the delete functionality automatically
delete/deprovision a record from LDAP or we need to implement that
functionality?
Only Sync
We use 2.1.5 version.
I suggest you to upgrade
Your advise is much appreciated.
Thanks
Utpal
--
Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570
Tirasa S.r.l.
Viale Vittoria Colonna, 97 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net <http://www.tirasa.net>
Apache Syncope PMC Member
http://people.apache.org/~mdisabatino/ <http://people.apache.org/~mdisabatino/>
--
Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570
Tirasa S.r.l.
Viale Vittoria Colonna, 97 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net
Apache Syncope PMC Member
http://people.apache.org/~mdisabatino/