This changes the wbcErr from WBC_ERR_DOMAIN_NOT_FOUND to WBC_ERR_NOT_MAPPED.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
&response);
BAIL_ON_WBC_ERROR(wbc_status);
+ *name_type = (enum wbcSidType)response.data.sid.type;
+ if (*name_type == WBC_SID_NAME_UNKNOWN) {
+ return WBC_ERR_NOT_MAPPED;
+ }
+
wbc_status = wbcStringToSid(response.data.sid.sid, sid);
BAIL_ON_WBC_ERROR(wbc_status);
- *name_type = (enum wbcSidType)response.data.sid.type;
-
wbc_status = WBC_ERR_SUCCESS;
done: