#3802 Reuse sysdb_error_to_errno() outside sysdb
Closed: Fixed 2 months ago by jhrozek. Opened 4 months ago by jhrozek.

The function sysdb_error_to_errno() maps LDB error codes to sss_error codes. It is mostly useful in sysdb, but e.g. the secrets responder also calls ldb functions directly. It might be nice to make the function reusable to avoid copying code around.

But since the sysdb_error_to_errno() function is called many times in sssd, it would also be nice to not rename all callers to avoid issues backporting patches. Perhaps we could #define the new name to the old one.


Metadata Update from @jhrozek:
- Issue set to the milestone: SSSD Patches welcome
- Issue tagged with: refactoring

4 months ago

Metadata Update from @thalman:
- Issue assigned to thalman

2 months ago

Metadata Update from @jhrozek:
- Issue close_status updated to: Fixed
- Issue set to the milestone: SSSD 2.1 (was: SSSD Patches welcome)
- Issue status updated to: Closed (was: Open)

2 months ago

Login to comment on this ticket.

Metadata