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

nsswitch/libwbclient/wbc_idmap.c

index 232c1ca71ad8cbe507b5147a76d465500b661c10..4f5140e1bb94188ce32f0003c69a9aedc1e66e40 100644 (file)
@@ -271,41 +271,10 @@ wbcErr wbcAllocateGid(gid_t *pgid)
 #define _ID_TYPE_UID 1
 #define _ID_TYPE_GID 2
 
-/* Set an user id mapping */
+/* Set an user id mapping - not implemented any more */
 wbcErr wbcSetUidMapping(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_SET_MAPPING,
-                                           &request, &response);
-       BAIL_ON_WBC_ERROR(wbc_status);
-
- done:
-       return wbc_status;
+       return WBC_ERR_NOT_IMPLEMENTED;
 }
 
 /* Set a group id mapping */