Also fixes a return value bug where we were returning errno error
codes instead of nss_status codes.
Fixes
https://fedorahosted.org/sssd/ticket/1135
This patch is a dependency for the services map work I'm doing (I need
to validate the inputs there as well).