s4:dsdb/tombstone_reanimate: restructure the module logic
commitc16b30c4113a2d6598d98e8353435e204951094c
authorStefan Metzmacher <metze@samba.org>
Fri, 8 Jul 2016 12:37:54 +0000 (8 14:37 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 9 Jul 2016 13:06:19 +0000 (9 15:06 +0200)
treebe0127e7a25be4accc9959ab89d664b37cdc6878
parent272d6478a2a1efcbe0eed6676f370ede544eca50
s4:dsdb/tombstone_reanimate: restructure the module logic

Now we keep all state in struct tr_context and split
the preparation and exectution of sub requests into
helper functions.

The most important change is that we now
pass mod_req to dsdb_user_obj_set_defaults(),
so that it can add controls to it.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/tombstone_reanimate.c