If the LDB_ERR_* code is not recognized by sysdb_error_to_errno function, it returns EFAULT by default. This caused confusion in the case when SSSD tried to store attribute with bad syntax to LDB (like in the ticket https://fedorahosted.org/sssd/ticket/1440 ). Error message said "Bad address", which was inappropriate.
Patch is in attachment.
Michal