libwbclient: unimplement wbcRemoveGidMapping()
authorMichael Adam <obnox@samba.org>
Thu, 22 Jan 2009 12:57:21 +0000 (13:57 +0100)
committerMichael Adam <obnox@samba.org>
Sat, 14 Aug 2010 00:10:33 +0000 (02:10 +0200)
Michael

nsswitch/libwbclient/wbc_idmap.c

index 773bc94dfbbb89986046c0e961b8a75885ddba78..ab8de9f973a3c5c422eca579631c83718fe9fdf5 100644 (file)
@@ -289,41 +289,10 @@ wbcErr wbcRemoveUidMapping(uid_t uid, const struct wbcDomainSid *sid)
        return WBC_ERR_NOT_IMPLEMENTED;
 }
 
-/* Remove a group id mapping */
+/* Remove a group id mapping - not implemented any more */
 wbcErr wbcRemoveGidMapping(gid_t gid, 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 = gid;
-       request.data.dual_idmapset.type = _ID_TYPE_GID;
-
-       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;
 }
 
 /* Set the highwater mark for allocated uids - not implemented any more */