mirror of
https://github.com/samba-team/samba.git
synced 2024-12-31 17:18:04 +03:00
libwbclient: prepare wbcCtxLookupName() for dealing with WBC_SID_NAME_UNKNOWN
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>
This commit is contained in:
parent
315ee3801b
commit
12c5adb49a
@ -218,11 +218,14 @@ wbcErr wbcCtxLookupName(struct wbcContext *ctx,
|
||||
&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:
|
||||
|
Loading…
Reference in New Issue
Block a user