*id_to_*id call reshape to return NTSTATUS errors
[ira/wip.git] / source3 / pam_smbpass / support.c
index d3232237ac2716702c3670e47a297524116b47e4..32aba7dd5be845bbfb9390b4e6352e107e965a0b 100644 (file)
@@ -399,7 +399,7 @@ int _smb_verify_password( pam_handle_t * pamh, SAM_ACCOUNT *sampass,
                       service ? service : "**unknown**", name);
                     new->count = 1;
                 }
-               if (!sid_to_uid(pdb_get_user_sid(sampass), &(new->id))) {
+               if (NT_STATUS_IS_ERR(sid_to_uid(pdb_get_user_sid(sampass, &(new->id), &type)))) {
                     _log_err(LOG_NOTICE,
                       "failed auth request by %s for service %s as %s",
                       uidtoname(getuid()),