From 6f907af4e73b53c3ddab934ba954788a2134b913 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 3 Dec 2001 11:11:14 +0000 Subject: put sid_to_name behind the winbindd backend interface I spent quite a while trying to work out how to make this call via ldap and failed. I then found that MS servers seem use rpc for sid_to_name, and it works even when in native mode, I ended up just implementing it via rpc (This used to be commit 789833b44e342c0b5de463ed8f9b5f7474a99f27) --- source3/nsswitch/winbindd.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/nsswitch/winbindd.h') diff --git a/source3/nsswitch/winbindd.h b/source3/nsswitch/winbindd.h index 1256736763..610b4503f7 100644 --- a/source3/nsswitch/winbindd.h +++ b/source3/nsswitch/winbindd.h @@ -103,6 +103,12 @@ struct winbindd_methods { const char *name, DOM_SID *sid, enum SID_NAME_USE *type); + + NTSTATUS (*sid_to_name)(struct winbindd_domain *domain, + TALLOC_CTX *mem_ctx, + DOM_SID *sid, + char **name, + enum SID_NAME_USE *type); }; /* Structures to hold per domain information */ -- cgit