1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

libwbclient: unimplement wbcRemoveUidMapping()

Michael
This commit is contained in:
Michael Adam 2009-01-22 13:56:09 +01:00
parent 788123ec2e
commit 89100cb509

View File

@ -283,41 +283,10 @@ wbcErr wbcSetGidMapping(gid_t gid, const struct wbcDomainSid *sid)
return WBC_ERR_NOT_IMPLEMENTED;
}
/* Remove a user id mapping */
/* Remove a user id mapping - not implemented any more */
wbcErr wbcRemoveUidMapping(uid_t uid, const struct wbcDomainSid *sid)
{
struct winbindd_request request;
struct winbindd_response response;
wbcErr wbc_status = WBC_ERR_UNKNOWN_FAILURE;
char *sid_string = NULL;
if (!sid) {
return WBC_ERR_INVALID_PARAM;
}
/* Initialise request */
ZERO_STRUCT(request);
ZERO_STRUCT(response);
/* Make request */
request.data.dual_idmapset.id = uid;
request.data.dual_idmapset.type = _ID_TYPE_UID;
wbc_status = wbcSidToString(sid, &sid_string);
BAIL_ON_WBC_ERROR(wbc_status);
strncpy(request.data.dual_idmapset.sid, sid_string,
sizeof(request.data.dual_idmapset.sid)-1);
wbcFreeMemory(sid_string);
wbc_status = wbcRequestResponsePriv(WINBINDD_REMOVE_MAPPING,
&request, &response);
BAIL_ON_WBC_ERROR(wbc_status);
done:
return wbc_status;
return WBC_ERR_NOT_IMPLEMENTED;
}
/* Remove a group id mapping */