diff options
author | Noel Power <noel.power@suse.com> | 2018-01-12 12:22:45 +0000 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-03-02 14:07:14 +0100 |
commit | 2dd94e41f6e76b4cbbeb1704778a8c27b6eb35f4 (patch) | |
tree | 8bb76cb9075a67e01e152c18600e09e9816b0254 /source3 | |
parent | ba6a82570abcde912712eb2830aed4eef4fbf491 (diff) | |
download | samba-2dd94e41f6e76b4cbbeb1704778a8c27b6eb35f4.tar.gz |
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>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libads/ldap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index c18837cc524..4f238ef83c2 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -3406,7 +3406,7 @@ char* ads_get_dnshostname( ADS_STRUCT *ads, TALLOC_CTX *ctx, const char *machine int count = 0; 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)) { DEBUG(0,("ads_get_dnshostname: Failed to find account for %s\n", lp_netbios_name())); @@ -3470,7 +3470,7 @@ char* ads_get_samaccountname( ADS_STRUCT *ads, TALLOC_CTX *ctx, const char *mach int count = 0; 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)) { DEBUG(0,("ads_get_dnshostname: Failed to find account for %s\n", lp_netbios_name())); |