1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

s3:libads: ads_get_dnshostname & ads_get_samaccountname don't use param

Both ads_get_dnshostname() & ads_get_samaccountname() are passed
a param machinename as a argument. Instead of using 'machinename' these
functions are erroneously using lp_netbiosname() instead.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Noel Power 2018-01-12 12:22:45 +00:00 committed by Andreas Schneider
parent ba6a82570a
commit 2dd94e41f6

View File

@ -3406,7 +3406,7 @@ char* ads_get_dnshostname( ADS_STRUCT *ads, TALLOC_CTX *ctx, const char *machine
int count = 0; int count = 0;
char *name = NULL; char *name = NULL;
status = ads_find_machine_acct(ads, &res, lp_netbios_name()); status = ads_find_machine_acct(ads, &res, machine_name);
if (!ADS_ERR_OK(status)) { if (!ADS_ERR_OK(status)) {
DEBUG(0,("ads_get_dnshostname: Failed to find account for %s\n", DEBUG(0,("ads_get_dnshostname: Failed to find account for %s\n",
lp_netbios_name())); lp_netbios_name()));
@ -3470,7 +3470,7 @@ char* ads_get_samaccountname( ADS_STRUCT *ads, TALLOC_CTX *ctx, const char *mach
int count = 0; int count = 0;
char *name = NULL; char *name = NULL;
status = ads_find_machine_acct(ads, &res, lp_netbios_name()); status = ads_find_machine_acct(ads, &res, machine_name);
if (!ADS_ERR_OK(status)) { if (!ADS_ERR_OK(status)) {
DEBUG(0,("ads_get_dnshostname: Failed to find account for %s\n", DEBUG(0,("ads_get_dnshostname: Failed to find account for %s\n",
lp_netbios_name())); lp_netbios_name()));