diff options
author | Tim Potter <tpot@samba.org> | 2000-07-10 05:40:43 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2000-07-10 05:40:43 +0000 |
commit | f866c18f6be65db67d9d2a6c0b42e1af3b421e6c (patch) | |
tree | 0506ad301c5f58f62990049918de1048bc0f1277 /source/lib/util_seaccess.c | |
parent | 5f355a24430dcb260de52e8a0ca21e80cae53089 (diff) | |
download | samba-f866c18f6be65db67d9d2a6c0b42e1af3b421e6c.tar.gz samba-f866c18f6be65db67d9d2a6c0b42e1af3b421e6c.tar.xz samba-f866c18f6be65db67d9d2a6c0b42e1af3b421e6c.zip |
Moved winbind client functions from various odd locations to
nsswitch/wb_client.c
Merge of nsswitch/common.c rename to nsswitch/wb_common.c from TNG.
Diffstat (limited to 'source/lib/util_seaccess.c')
-rw-r--r-- | source/lib/util_seaccess.c | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/source/lib/util_seaccess.c b/source/lib/util_seaccess.c index 6c38300bb3f..128cbffc0c4 100644 --- a/source/lib/util_seaccess.c +++ b/source/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) |