s4-dsdb: Return error codes as windows does for Tombstone reanimation
commitffdc834bd1433aa100ba57ae9e47fa09e591b8f7
authorKamen Mazdrashki <kamenim@samba.org>
Sun, 26 Oct 2014 03:31:41 +0000 (26 04:31 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 3 Feb 2015 04:02:10 +0000 (3 05:02 +0100)
tree866b47149d65fbae8d6597ec87448c79aa556a44
parentf84e1989b452738f8cb5c1930e50bd13499c9de6
s4-dsdb: Return error codes as windows does for Tombstone reanimation

Tested against Windows Server 2008 R2
In case we try to restore to already existing object, windows
returns: LDB_ERR_ENTRY_ALREADY_EXISTS
Otherwise it is: LDB_ERR_OPERATIONS_ERROR

Change-Id: I6b5fea1e327416ccf5069d97a4a378a527a25f80
Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
source4/dsdb/samdb/ldb_modules/tombstone_reanimate.c