diff options
Diffstat (limited to 'source3/nsswitch/winbindd_ads.c')
-rw-r--r-- | source3/nsswitch/winbindd_ads.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c index d54f1d93910..5ff5c90b78f 100644 --- a/source3/nsswitch/winbindd_ads.c +++ b/source3/nsswitch/winbindd_ads.c @@ -271,11 +271,15 @@ static NTSTATUS name_to_sid(struct winbindd_domain *domain, return NT_STATUS_OK; } -/* the rpc backend methods are exposed via this structure */ +/* the ADS backend methods are exposed via this structure */ struct winbindd_methods ads_methods = { query_dispinfo, enum_dom_groups, - name_to_sid + name_to_sid, + /* I can't see a good way to do a sid to name mapping with ldap, + and MS servers always allow RPC for this (even in native mode) so + just use RPC. Maybe that's why they allow it? */ + winbindd_rpc_sid_to_name }; #endif |