From 1d66a6beba888a1be33e4b48e2b0d2a51fdbcbc0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 4 Dec 2001 06:46:53 +0000 Subject: moved lookup_usergroups() into the backend structure (This used to be commit 689f45d2079d06b09947b2cdd314867df98c938d) --- source3/nsswitch/winbindd_ads.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'source3/nsswitch/winbindd_ads.c') diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c index d86c498cfe..a1c34bee66 100644 --- a/source3/nsswitch/winbindd_ads.c +++ b/source3/nsswitch/winbindd_ads.c @@ -341,6 +341,15 @@ error: return NT_STATUS_UNSUCCESSFUL; } +/* Lookup groups a user is a member of. */ +static NTSTATUS lookup_usergroups(struct winbindd_domain *domain, + TALLOC_CTX *mem_ctx, + uint32 user_rid, uint32 *num_groups, + uint32 **user_gids) +{ + return NT_STATUS_NOT_IMPLEMENTED; +} + /* the ADS backend methods are exposed via this structure */ struct winbindd_methods ads_methods = { query_user_list, @@ -350,7 +359,8 @@ struct winbindd_methods ads_methods = { and MS servers always allow RPC for this (even in native mode) so just use RPC for sid_to_name. Maybe that's why they allow it? */ winbindd_rpc_sid_to_name, - query_user + query_user, + lookup_usergroups }; #endif -- cgit