mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
libwbclient: Add placeholder functions for wbcQuery[GSU]idTo[GSU]id
This commit is contained in:
parent
417f187645
commit
d1d9c06294
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#include "libwbclient.h"
|
#include "libwbclient.h"
|
||||||
|
|
||||||
/** @brief Convert a Windows SID to a Unix uid
|
/** @brief Convert a Windows SID to a Unix uid, allocating an uid if needed
|
||||||
*
|
*
|
||||||
* @param *sid Pointer to the domain SID to be resolved
|
* @param *sid Pointer to the domain SID to be resolved
|
||||||
* @param *puid Pointer to the resolved uid_t value
|
* @param *puid Pointer to the resolved uid_t value
|
||||||
@ -71,7 +71,22 @@ wbcErr wbcSidToUid(const struct wbcDomainSid *sid, uid_t *puid)
|
|||||||
return wbc_status;
|
return wbc_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @brief Convert a Unix uid to a Windows SID
|
/** @brief Convert a Windows SID to a Unix uid if there already is a mapping
|
||||||
|
*
|
||||||
|
* @param *sid Pointer to the domain SID to be resolved
|
||||||
|
* @param *puid Pointer to the resolved uid_t value
|
||||||
|
*
|
||||||
|
* @return #wbcErr
|
||||||
|
*
|
||||||
|
**/
|
||||||
|
|
||||||
|
wbcErr wbcQuerySidToUid(const struct wbcDomainSid *sid,
|
||||||
|
uid_t *puid)
|
||||||
|
{
|
||||||
|
return WBC_ERR_NOT_IMPLEMENTED;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @brief Convert a Unix uid to a Windows SID, allocating a SID if needed
|
||||||
*
|
*
|
||||||
* @param uid Unix uid to be resolved
|
* @param uid Unix uid to be resolved
|
||||||
* @param *sid Pointer to the resolved domain SID
|
* @param *sid Pointer to the resolved domain SID
|
||||||
@ -112,7 +127,22 @@ done:
|
|||||||
return wbc_status;
|
return wbc_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @brief Convert a Windows SID to a Unix gid
|
/** @brief Convert a Unix uid to a Windows SID if there already is a mapping
|
||||||
|
*
|
||||||
|
* @param uid Unix uid to be resolved
|
||||||
|
* @param *sid Pointer to the resolved domain SID
|
||||||
|
*
|
||||||
|
* @return #wbcErr
|
||||||
|
*
|
||||||
|
**/
|
||||||
|
|
||||||
|
wbcErr wbcQueryUidToSid(uid_t uid,
|
||||||
|
struct wbcDomainSid *sid)
|
||||||
|
{
|
||||||
|
return WBC_ERR_NOT_IMPLEMENTED;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @brief Convert a Windows SID to a Unix gid, allocating a gid if needed
|
||||||
*
|
*
|
||||||
* @param *sid Pointer to the domain SID to be resolved
|
* @param *sid Pointer to the domain SID to be resolved
|
||||||
* @param *pgid Pointer to the resolved gid_t value
|
* @param *pgid Pointer to the resolved gid_t value
|
||||||
@ -159,7 +189,22 @@ wbcErr wbcSidToGid(const struct wbcDomainSid *sid, gid_t *pgid)
|
|||||||
return wbc_status;
|
return wbc_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @brief Convert a Unix uid to a Windows SID
|
/** @brief Convert a Windows SID to a Unix gid if there already is a mapping
|
||||||
|
*
|
||||||
|
* @param *sid Pointer to the domain SID to be resolved
|
||||||
|
* @param *pgid Pointer to the resolved gid_t value
|
||||||
|
*
|
||||||
|
* @return #wbcErr
|
||||||
|
*
|
||||||
|
**/
|
||||||
|
|
||||||
|
wbcErr wbcQuerySidToGid(const struct wbcDomainSid *sid,
|
||||||
|
gid_t *pgid)
|
||||||
|
{
|
||||||
|
return WBC_ERR_NOT_IMPLEMENTED;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @brief Convert a Unix gid to a Windows SID, allocating a SID if needed
|
||||||
*
|
*
|
||||||
* @param gid Unix gid to be resolved
|
* @param gid Unix gid to be resolved
|
||||||
* @param *sid Pointer to the resolved domain SID
|
* @param *sid Pointer to the resolved domain SID
|
||||||
@ -200,6 +245,21 @@ done:
|
|||||||
return wbc_status;
|
return wbc_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @brief Convert a Unix gid to a Windows SID if there already is a mapping
|
||||||
|
*
|
||||||
|
* @param gid Unix gid to be resolved
|
||||||
|
* @param *sid Pointer to the resolved domain SID
|
||||||
|
*
|
||||||
|
* @return #wbcErr
|
||||||
|
*
|
||||||
|
**/
|
||||||
|
|
||||||
|
wbcErr wbcQueryGidToSid(gid_t gid,
|
||||||
|
struct wbcDomainSid *sid)
|
||||||
|
{
|
||||||
|
return WBC_ERR_NOT_IMPLEMENTED;
|
||||||
|
}
|
||||||
|
|
||||||
/** @brief Obtain a new uid from Winbind
|
/** @brief Obtain a new uid from Winbind
|
||||||
*
|
*
|
||||||
* @param *puid *pointer to the allocated uid
|
* @param *puid *pointer to the allocated uid
|
||||||
|
@ -541,15 +541,27 @@ wbcErr wbcGetDisplayName(const struct wbcDomainSid *sid,
|
|||||||
wbcErr wbcSidToUid(const struct wbcDomainSid *sid,
|
wbcErr wbcSidToUid(const struct wbcDomainSid *sid,
|
||||||
uid_t *puid);
|
uid_t *puid);
|
||||||
|
|
||||||
|
wbcErr wbcQuerySidToUid(const struct wbcDomainSid *sid,
|
||||||
|
uid_t *puid);
|
||||||
|
|
||||||
wbcErr wbcUidToSid(uid_t uid,
|
wbcErr wbcUidToSid(uid_t uid,
|
||||||
struct wbcDomainSid *sid);
|
struct wbcDomainSid *sid);
|
||||||
|
|
||||||
|
wbcErr wbcQueryUidToSid(uid_t uid,
|
||||||
|
struct wbcDomainSid *sid);
|
||||||
|
|
||||||
wbcErr wbcSidToGid(const struct wbcDomainSid *sid,
|
wbcErr wbcSidToGid(const struct wbcDomainSid *sid,
|
||||||
gid_t *pgid);
|
gid_t *pgid);
|
||||||
|
|
||||||
|
wbcErr wbcQuerySidToGid(const struct wbcDomainSid *sid,
|
||||||
|
gid_t *pgid);
|
||||||
|
|
||||||
wbcErr wbcGidToSid(gid_t gid,
|
wbcErr wbcGidToSid(gid_t gid,
|
||||||
struct wbcDomainSid *sid);
|
struct wbcDomainSid *sid);
|
||||||
|
|
||||||
|
wbcErr wbcQueryGidToSid(gid_t gid,
|
||||||
|
struct wbcDomainSid *sid);
|
||||||
|
|
||||||
wbcErr wbcAllocateUid(uid_t *puid);
|
wbcErr wbcAllocateUid(uid_t *puid);
|
||||||
|
|
||||||
wbcErr wbcAllocateGid(gid_t *pgid);
|
wbcErr wbcAllocateGid(gid_t *pgid);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user