s3:libads: Clean up code a little rename 'ads_get_samaccountname()'
authorNoel Power <noel.power@suse.com>
Fri, 12 Jan 2018 14:22:34 +0000 (14:22 +0000)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 2 Mar 2018 13:07:14 +0000 (14:07 +0100)
commitd9593803eadb9a3d4ee4448a2b39ffdd056b68af
tree21ac9449ce7c43182c730b2c37c509987eb0f6f6
parent2dd94e41f6e76b4cbbeb1704778a8c27b6eb35f4
s3:libads: Clean up code a little rename 'ads_get_samaccountname()'

Function 'ads_get_samaccountname()' basically returns the machine_name passed
as an input param (appended with '$') if it exists on the ad. The function
really is testing for the existence of the samaccountname and is not really
'getting' it. This is also the way it is used. Renaming this function to
'ads_has_samaccountname()' better reflects what it is actually doing and how
clients calling the code use it. It also makes the client code using calling
this function less confusing.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/libads/ads_proto.h
source3/libads/kerberos_keytab.c
source3/libads/ldap.c