summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-07-10 05:40:43 +0000
committerTim Potter <tpot@samba.org>2000-07-10 05:40:43 +0000
commit64299375b544de91dab75d62610d7dc7f1f8328d (patch)
treeb621264c9f8481be3a8a6f52beac112ce3e1cd37 /source3/lib
parent520bb0d775b35df07e540f33affd80de4de4572c (diff)
downloadsamba-64299375b544de91dab75d62610d7dc7f1f8328d.tar.gz
samba-64299375b544de91dab75d62610d7dc7f1f8328d.tar.bz2
samba-64299375b544de91dab75d62610d7dc7f1f8328d.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. (This used to be commit f866c18f6be65db67d9d2a6c0b42e1af3b421e6c)
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)