From 06816117efaded8bbf61a5ab343e03a3adaaaa60 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Fri, 1 Sep 2023 13:39:18 +1200 Subject: [PATCH] s3:libads: Fix code spelling Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- source3/libads/kerberos_keytab.c | 2 +- source3/libads/ldap.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source3/libads/kerberos_keytab.c b/source3/libads/kerberos_keytab.c index 41397a1d2a2..466211a8611 100644 --- a/source3/libads/kerberos_keytab.c +++ b/source3/libads/kerberos_keytab.c @@ -390,7 +390,7 @@ int ads_keytab_add_entry(ADS_STRUCT *ads, const char *srvPrinc, bool update_ads) goto out; } - /* make sure we have a single instance of a the computer account */ + /* make sure we have a single instance of the computer account */ if (!ads_has_samaccountname(ads, tmpctx, lp_netbios_name())) { DBG_ERR("unable to determine machine account's short name in " "AD!\n"); diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index f24c3e982ed..3f93b06f984 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -665,7 +665,7 @@ static NTSTATUS resolve_and_ping_dns(ADS_STRUCT *ads, const char *sitename, /********************************************************************** Try to find an AD dc using our internal name resolution routines - Try the realm first and then then workgroup name if netbios is not + Try the realm first and then the workgroup name if netbios is not disabled **********************************************************************/ @@ -1586,7 +1586,7 @@ ADS_STATUS ads_do_search_all_fn(ADS_STRUCT *ads, const char *bind_path, * Do a search on a specific DistinguishedName * @param ads connection to ads server * @param res ** which will contain results - free res* with ads_msgfree() - * @param dn DistinguishName to search + * @param dn DistinguishedName to search * @param attrs Attributes to retrieve * @return status of search **/ @@ -2182,7 +2182,7 @@ uint32_t ads_get_machine_kvno(ADS_STRUCT *ads, const char *machine_name) /** * This clears out all registered spn's for a given hostname - * @param ads An initilaized ADS_STRUCT + * @param ads An initialized ADS_STRUCT * @param machine_name the NetBIOS name of the computer. * @return 0 upon success, non-zero otherwise. **/ @@ -3198,7 +3198,7 @@ int ads_count_replies(ADS_STRUCT *ads, void *res) &range_start) == 1) { *more_strings = False; } else { - DEBUG(1, ("ads_pull_strings_range: Cannot parse Range attriubte (%s)\n", + DEBUG(1, ("ads_pull_strings_range: Cannot parse Range attribute (%s)\n", range_attr)); ldap_memfree(range_attr); *more_strings = False; @@ -4459,7 +4459,7 @@ ADS_STATUS ads_leave_realm(ADS_STRUCT *ads, const char *hostname) } /** - * Find a sAMAccoutName in LDAP + * Find a sAMAccountName in LDAP * @param ads connection to ads server * @param mem_ctx TALLOC_CTX for allocating sid array * @param samaccountname to search -- 2.34.1