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 | 64299375b544de91dab75d62610d7dc7f1f8328d (patch) | |
tree | b621264c9f8481be3a8a6f52beac112ce3e1cd37 /source3/printing/nt_printing.c | |
parent | 520bb0d775b35df07e540f33affd80de4de4572c (diff) | |
download | samba-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/printing/nt_printing.c')
-rw-r--r-- | source3/printing/nt_printing.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 83fd18da9b..3a40fdceab 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -1583,31 +1583,6 @@ uint32 nt_printing_setsec(char *printername, struct current_user *user, return status; } -/* Call winbindd to convert a name to a sid */ - -BOOL winbind_lookup_name(char *name, DOM_SID *sid, uint8 *name_type) -{ - struct winbindd_request request; - struct winbindd_response response; - enum nss_status result; - - if (!sid || !name_type) return False; - - /* Send off request */ - - ZERO_STRUCT(request); - ZERO_STRUCT(response); - - fstrcpy(request.data.name, name); - if ((result = winbindd_request(WINBINDD_LOOKUPNAME, &request, - &response)) == NSS_STATUS_SUCCESS) { - string_to_sid(sid, response.data.sid.sid); - *name_type = response.data.sid.type; - } - - return result == NSS_STATUS_SUCCESS; -} - /**************************************************************************** Construct a default security descriptor buffer for a printer. ****************************************************************************/ |