summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_seaccess.c64
1 files changed, 0 insertions, 64 deletions
diff --git a/source3/lib/util_seaccess.c b/source3/lib/util_seaccess.c
index 6c38300bb3..128cbffc0c 100644
--- a/source3/lib/util_seaccess.c
+++ b/source3/lib/util_seaccess.c
@@ -25,70 +25,6 @@
extern int DEBUGLEVEL;
-/* Call winbindd to convert uid to sid */
-
-BOOL winbind_uid_to_sid(uid_t uid, DOM_SID *sid)
-{
- struct winbindd_request request;
- struct winbindd_response response;
- int result;
-
- if (!sid) return False;
-
- /* Initialise request */
-
- ZERO_STRUCT(request);
- ZERO_STRUCT(response);
-
- request.data.uid = uid;
-
- /* Make request */
-
- result = winbindd_request(WINBINDD_UID_TO_SID, &request, &response);
-
- /* Copy out result */
-
- if (result == NSS_STATUS_SUCCESS) {
- string_to_sid(sid, response.data.sid.sid);
- } else {
- sid_copy(sid, &global_sid_NULL);
- }
-
- return (result == NSS_STATUS_SUCCESS);
-}
-
-/* Call winbindd to convert uid to sid */
-
-BOOL winbind_gid_to_sid(gid_t gid, DOM_SID *sid)
-{
- struct winbindd_request request;
- struct winbindd_response response;
- int result;
-
- if (!sid) return False;
-
- /* Initialise request */
-
- ZERO_STRUCT(request);
- ZERO_STRUCT(response);
-
- request.data.gid = gid;
-
- /* Make request */
-
- result = winbindd_request(WINBINDD_GID_TO_SID, &request, &response);
-
- /* Copy out result */
-
- if (result == NSS_STATUS_SUCCESS) {
- string_to_sid(sid, response.data.sid.sid);
- } else {
- sid_copy(sid, &global_sid_NULL);
- }
-
- return (result == NSS_STATUS_SUCCESS);
-}
-
/* Process an access allowed ACE */
static BOOL ace_grant(uint32 mask, uint32 *acc_desired, uint32 *acc_granted)