Hi,
this is a patch I have in my tree for some time for debugging purposes. Recently I've seen some bug reports with "ldb_modify failed" messages in the logs and I think this patch might help in those cases.
Additionally I wonder if SSSDBG_MINOR_FAILURE is a suitable debug level here. In most cases an error here prevents a user or group object to be written to the cache, so maybe SSSDBG_CRIT_FAILURE is justified here?
bye, Sumit