diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-11-12 18:22:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:05:24 -0500 |
commit | 789bed878aa94edf22521c6c1946d3ab73462516 (patch) | |
tree | a7aeff31da44e8051d7c86c5206f6525df8c258a /source3/nsswitch/winbindd_ads.c | |
parent | f8cb37ab19cc9499c23a1e1f40427ed48b707870 (diff) | |
download | samba-789bed878aa94edf22521c6c1946d3ab73462516.tar.gz samba-789bed878aa94edf22521c6c1946d3ab73462516.tar.xz samba-789bed878aa94edf22521c6c1946d3ab73462516.zip |
r11704: methods->alternate_name is not used anymore -- remove it
(This used to be commit 4a4f85f0ef8545b7062e9a49392d4488aa108036)
Diffstat (limited to 'source3/nsswitch/winbindd_ads.c')
-rw-r--r-- | source3/nsswitch/winbindd_ads.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c index 32bc641b6a6..ac24b35229c 100644 --- a/source3/nsswitch/winbindd_ads.c +++ b/source3/nsswitch/winbindd_ads.c @@ -933,42 +933,6 @@ static NTSTATUS trusted_domains(struct winbindd_domain *domain, return result; } -/* find alternate names list for the domain - for ADS this is the - netbios name */ -static NTSTATUS alternate_name(struct winbindd_domain *domain) -{ - ADS_STRUCT *ads; - ADS_STATUS rc; - TALLOC_CTX *ctx; - const char *workgroup; - - DEBUG(3,("ads: alternate_name\n")); - - ads = ads_cached_connection(domain); - - if (!ads) { - domain->last_status = NT_STATUS_SERVER_DISABLED; - return NT_STATUS_UNSUCCESSFUL; - } - - if (!(ctx = talloc_init("alternate_name"))) { - return NT_STATUS_NO_MEMORY; - } - - rc = ads_workgroup_name(ads, ctx, &workgroup); - - if (ADS_ERR_OK(rc)) { - fstrcpy(domain->name, workgroup); - fstrcpy(domain->alt_name, ads->config.realm); - strupper_m(domain->alt_name); - strupper_m(domain->name); - } - - talloc_destroy(ctx); - - return ads_ntstatus(rc); -} - /* the ADS backend methods are exposed via this structure */ struct winbindd_methods ads_methods = { True, @@ -983,7 +947,6 @@ struct winbindd_methods ads_methods = { lookup_groupmem, sequence_number, trusted_domains, - alternate_name }; #endif |