summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_rpc.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-05-12 13:09:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:53 -0500
commit5906b27ab5f425d737b94d02a9855205cb55c409 (patch)
treedc5542ab8236af4cf6e2dfaee16c655c1ed7696d /source3/nsswitch/winbindd_rpc.c
parentd5e18ed8fdd114baa6e0060447dd46ae9fe3066a (diff)
downloadsamba-5906b27ab5f425d737b94d02a9855205cb55c409.tar.gz
samba-5906b27ab5f425d737b94d02a9855205cb55c409.tar.bz2
samba-5906b27ab5f425d737b94d02a9855205cb55c409.zip
r6755: removing domain_sid() since it is not referenced anymore
(This used to be commit 8104149e6f490fa1a298e61becc8df01ddd92008)
Diffstat (limited to 'source3/nsswitch/winbindd_rpc.c')
-rw-r--r--source3/nsswitch/winbindd_rpc.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/source3/nsswitch/winbindd_rpc.c b/source3/nsswitch/winbindd_rpc.c
index faf5a1161f..854688da4e 100644
--- a/source3/nsswitch/winbindd_rpc.c
+++ b/source3/nsswitch/winbindd_rpc.c
@@ -1021,44 +1021,6 @@ done:
return result;
}
-/* find the domain sid for a domain */
-static NTSTATUS domain_sid(struct winbindd_domain *domain, DOM_SID *sid)
-{
- NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
- TALLOC_CTX *mem_ctx;
- CLI_POLICY_HND *hnd;
- char *level5_dom;
- DOM_SID *alloc_sid;
- int retry;
-
- DEBUG(3,("rpc: domain_sid\n"));
-
- if (!(mem_ctx = talloc_init("domain_sid[rpc]")))
- return NT_STATUS_NO_MEMORY;
-
- retry = 0;
- do {
- /* Get lsa handle */
- if (!NT_STATUS_IS_OK(result = cm_get_lsa_handle(domain, &hnd)))
- goto done;
-
- result = cli_lsa_query_info_policy(hnd->cli, mem_ctx,
- &hnd->pol, 0x05, &level5_dom, &alloc_sid);
- } while (!NT_STATUS_IS_OK(result) && (retry++ < 1) && hnd && hnd->cli && hnd->cli->fd == -1);
-
- if (NT_STATUS_IS_OK(result)) {
- if (alloc_sid) {
- sid_copy(sid, alloc_sid);
- } else {
- result = NT_STATUS_NO_MEMORY;
- }
- }
-
-done:
- talloc_destroy(mem_ctx);
- return result;
-}
-
/* find alternate names list for the domain - none for rpc */
static NTSTATUS alternate_name(struct winbindd_domain *domain)
{
@@ -1080,6 +1042,5 @@ struct winbindd_methods msrpc_methods = {
lookup_groupmem,
sequence_number,
trusted_domains,
- domain_sid,
alternate_name
};