summaryrefslogtreecommitdiff
path: root/nsswitch/libwbclient
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-02-10 11:04:32 +0100
committerMichael Adam <obnox@samba.org>2011-02-10 13:57:32 +0100
commit7dca8bcbb9f1d95a8eeae066e944d5ea4a17aabb (patch)
treecd23a7352959855a7d44d4a9f37ddb196974f179 /nsswitch/libwbclient
parent1f4a06e64f489f8df7b43775530b98f4bd222eb9 (diff)
downloadsamba-7dca8bcbb9f1d95a8eeae066e944d5ea4a17aabb.tar.gz
samba-7dca8bcbb9f1d95a8eeae066e944d5ea4a17aabb.tar.bz2
samba-7dca8bcbb9f1d95a8eeae066e944d5ea4a17aabb.zip
Revert "libwbclient: remove wbcSetUidMapping() - not implemented any more"
This reverts commit 25a0dc44f7e180d96dcccb8701e9817ecfd54955. Undo the library version bump.
Diffstat (limited to 'nsswitch/libwbclient')
-rw-r--r--nsswitch/libwbclient/wbc_idmap.c6
-rw-r--r--nsswitch/libwbclient/wbclient.h10
2 files changed, 16 insertions, 0 deletions
diff --git a/nsswitch/libwbclient/wbc_idmap.c b/nsswitch/libwbclient/wbc_idmap.c
index 06320472ae..3c806d1a93 100644
--- a/nsswitch/libwbclient/wbc_idmap.c
+++ b/nsswitch/libwbclient/wbc_idmap.c
@@ -267,6 +267,12 @@ wbcErr wbcAllocateGid(gid_t *pgid)
return wbc_status;
}
+/* Set an user id mapping - not implemented any more */
+wbcErr wbcSetUidMapping(uid_t uid, const struct wbcDomainSid *sid)
+{
+ return WBC_ERR_NOT_IMPLEMENTED;
+}
+
/* Set a group id mapping - not implemented any more */
wbcErr wbcSetGidMapping(gid_t gid, const struct wbcDomainSid *sid)
{
diff --git a/nsswitch/libwbclient/wbclient.h b/nsswitch/libwbclient/wbclient.h
index 9ead457310..39670ab6ed 100644
--- a/nsswitch/libwbclient/wbclient.h
+++ b/nsswitch/libwbclient/wbclient.h
@@ -787,6 +787,16 @@ wbcErr wbcAllocateUid(uid_t *puid);
wbcErr wbcAllocateGid(gid_t *pgid);
/**
+ * @brief Set an user id mapping
+ *
+ * @param uid Uid of the desired mapping.
+ * @param *sid Pointer to the sid of the diresired mapping.
+ *
+ * @return #wbcErr
+ **/
+wbcErr wbcSetUidMapping(uid_t uid, const struct wbcDomainSid *sid);
+
+/**
* @brief Set a group id mapping
*
* @param gid Gid of the desired mapping.