diff options
author | Michael Adam <obnox@samba.org> | 2009-01-22 13:56:09 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-08-14 02:10:32 +0200 |
commit | 89100cb509dadeb0f9905f15ea8a631094e3f052 (patch) | |
tree | 3ed197cc65d02f02dbe795b2e2a87d44db1b179c /nsswitch | |
parent | 788123ec2e975bd9019aa9a8a70f4a95b82431b8 (diff) | |
download | samba-89100cb509dadeb0f9905f15ea8a631094e3f052.tar.gz samba-89100cb509dadeb0f9905f15ea8a631094e3f052.tar.bz2 samba-89100cb509dadeb0f9905f15ea8a631094e3f052.zip |
libwbclient: unimplement wbcRemoveUidMapping()
Michael
Diffstat (limited to 'nsswitch')
-rw-r--r-- | nsswitch/libwbclient/wbc_idmap.c | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/nsswitch/libwbclient/wbc_idmap.c b/nsswitch/libwbclient/wbc_idmap.c index 1c31a91281..773bc94dfb 100644 --- a/nsswitch/libwbclient/wbc_idmap.c +++ b/nsswitch/libwbclient/wbc_idmap.c @@ -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 */ |