1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

s3:libads: Fix code spelling

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Martin Schwenke <mschwenke@ddn.com>
This commit is contained in:
Andreas Schneider 2023-07-05 11:21:39 +02:00 committed by Andreas Schneider
parent 71b40127e1
commit 939ec7ea46
4 changed files with 15 additions and 15 deletions

View File

@ -240,7 +240,7 @@ NTSTATUS kerberos_return_pac(TALLOC_CTX *mem_ctx,
goto out; goto out;
} }
/* Now return the PAC information to the callers. We ingore /* Now return the PAC information to the callers. We ignore
* the session_info and instead pick out the PAC via the * the session_info and instead pick out the PAC via the
* private_data on the auth_context */ * private_data on the auth_context */
status = gensec_session_info(gensec_server_context, tmp_ctx, &session_info); status = gensec_session_info(gensec_server_context, tmp_ctx, &session_info);

View File

@ -880,7 +880,7 @@ bool create_local_private_krb5_conf_for_domain(const char *realm,
goto done; /* Not a fatal error. */ goto done; /* Not a fatal error. */
} }
/* Yes, this is a race conditon... too bad. */ /* Yes, this is a race condition... too bad. */
if (rename(SYSTEM_KRB5_CONF_PATH, newpath) == -1) { if (rename(SYSTEM_KRB5_CONF_PATH, newpath) == -1) {
DEBUG(0,("create_local_private_krb5_conf_for_domain: rename " DEBUG(0,("create_local_private_krb5_conf_for_domain: rename "
"of %s to %s failed. Errno %s\n", "of %s to %s failed. Errno %s\n",

View File

@ -165,7 +165,7 @@ static int ldap_search_with_timeout(LDAP *ld,
/* Setup alarm timeout. */ /* Setup alarm timeout. */
CatchSignal(SIGALRM, gotalarm_sig); CatchSignal(SIGALRM, gotalarm_sig);
/* Make the alarm time one second beyond /* Make the alarm time one second beyond
the timout we're setting for the the timeout we're setting for the
remote search timeout, to allow that remote search timeout, to allow that
to fire in preference. */ to fire in preference. */
alarm(to+1); alarm(to+1);
@ -1244,7 +1244,7 @@ static ADS_STATUS ads_do_paged_search_args(ADS_STRUCT *ads,
ExternalCtrl.ldctl_oid = discard_const_p(char, external_control->control); ExternalCtrl.ldctl_oid = discard_const_p(char, external_control->control);
ExternalCtrl.ldctl_iscritical = (char) external_control->critical; ExternalCtrl.ldctl_iscritical = (char) external_control->critical;
/* win2k does not accept a ldctl_value beeing passed in */ /* win2k does not accept a ldctl_value being passed in */
if (external_control->val != 0) { if (external_control->val != 0) {
@ -2342,7 +2342,7 @@ done:
* @param machine_name the NetBIOS name of the computer, which is used to identify the computer account. * @param machine_name the NetBIOS name of the computer, which is used to identify the computer account.
* @param spns An array or strings for the service principals to add, * @param spns An array or strings for the service principals to add,
* i.e. 'cifs/machine_name', 'http/machine.full.domain.com' etc. * i.e. 'cifs/machine_name', 'http/machine.full.domain.com' etc.
* @return 0 upon sucess, or non-zero if a failure occurs * @return 0 upon success, or non-zero if a failure occurs
**/ **/
ADS_STATUS ads_add_service_principal_names(ADS_STRUCT *ads, ADS_STATUS ads_add_service_principal_names(ADS_STRUCT *ads,
@ -2534,7 +2534,7 @@ done:
/** /**
* adds a machine account to the ADS server * adds a machine account to the ADS server
* @param ads An intialized ADS_STRUCT * @param ads An initialized ADS_STRUCT
* @param machine_name - the NetBIOS machine name of this account. * @param machine_name - the NetBIOS machine name of this account.
* @param account_type A number indicating the type of account to create * @param account_type A number indicating the type of account to create
* @param org_unit The LDAP path in which to place this account * @param org_unit The LDAP path in which to place this account
@ -2718,7 +2718,7 @@ done:
/** /**
* move a machine account to another OU on the ADS server * move a machine account to another OU on the ADS server
* @param ads - An intialized ADS_STRUCT * @param ads - An initialized ADS_STRUCT
* @param machine_name - the NetBIOS machine name of this account. * @param machine_name - the NetBIOS machine name of this account.
* @param org_unit - The LDAP path in which to place this account * @param org_unit - The LDAP path in which to place this account
* @param moved - whether we moved the machine account (optional) * @param moved - whether we moved the machine account (optional)
@ -3208,7 +3208,7 @@ int ads_count_replies(ADS_STRUCT *ads, void *res)
if ((*num_strings) != range_start) { if ((*num_strings) != range_start) {
DEBUG(1, ("ads_pull_strings_range: Range attribute (%s) doesn't start at %u, but at %lu" DEBUG(1, ("ads_pull_strings_range: Range attribute (%s) doesn't start at %u, but at %lu"
" - aborting range retreival\n", " - aborting range retrieval\n",
range_attr, (unsigned int)(*num_strings) + 1, range_start)); range_attr, (unsigned int)(*num_strings) + 1, range_start));
ldap_memfree(range_attr); ldap_memfree(range_attr);
*more_strings = False; *more_strings = False;
@ -3219,7 +3219,7 @@ int ads_count_replies(ADS_STRUCT *ads, void *res)
if (*more_strings && ((*num_strings + num_new_strings) != (range_end + 1))) { if (*more_strings && ((*num_strings + num_new_strings) != (range_end + 1))) {
DEBUG(1, ("ads_pull_strings_range: Range attribute (%s) tells us we have %lu " DEBUG(1, ("ads_pull_strings_range: Range attribute (%s) tells us we have %lu "
"strings in this bunch, but we only got %lu - aborting range retreival\n", "strings in this bunch, but we only got %lu - aborting range retrieval\n",
range_attr, (unsigned long int)range_end - range_start + 1, range_attr, (unsigned long int)range_end - range_start + 1,
(unsigned long int)num_new_strings)); (unsigned long int)num_new_strings));
ldap_memfree(range_attr); ldap_memfree(range_attr);
@ -3268,7 +3268,7 @@ int ads_count_replies(ADS_STRUCT *ads, void *res)
* @param msg Results of search * @param msg Results of search
* @param field Attribute to retrieve * @param field Attribute to retrieve
* @param v Pointer to int to store result * @param v Pointer to int to store result
* @return boolean inidicating success * @return boolean indicating success
*/ */
bool ads_pull_uint32(ADS_STRUCT *ads, LDAPMessage *msg, const char *field, bool ads_pull_uint32(ADS_STRUCT *ads, LDAPMessage *msg, const char *field,
uint32_t *v) uint32_t *v)
@ -3317,7 +3317,7 @@ int ads_count_replies(ADS_STRUCT *ads, void *res)
* @param msg Results of search * @param msg Results of search
* @param field Attribute to retrieve * @param field Attribute to retrieve
* @param sid Pointer to sid to store result * @param sid Pointer to sid to store result
* @return boolean inidicating success * @return boolean indicating success
*/ */
bool ads_pull_sid(ADS_STRUCT *ads, LDAPMessage *msg, const char *field, bool ads_pull_sid(ADS_STRUCT *ads, LDAPMessage *msg, const char *field,
struct dom_sid *sid) struct dom_sid *sid)
@ -3382,7 +3382,7 @@ int ads_count_replies(ADS_STRUCT *ads, void *res)
* @param msg Results of search * @param msg Results of search
* @param field Attribute to retrieve * @param field Attribute to retrieve
* @param sd Pointer to *struct security_descriptor to store result (talloc()ed) * @param sd Pointer to *struct security_descriptor to store result (talloc()ed)
* @return boolean inidicating success * @return boolean indicating success
*/ */
bool ads_pull_sd(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, bool ads_pull_sd(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx,
LDAPMessage *msg, const char *field, LDAPMessage *msg, const char *field,
@ -4030,7 +4030,7 @@ static char **get_addl_hosts(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx,
/* /*
* Windows DC implicitly adds a short name for each FQDN added to * Windows DC implicitly adds a short name for each FQDN added to
* msDS-AdditionalDnsHostName, but it comes with a strage binary * msDS-AdditionalDnsHostName, but it comes with a strange binary
* suffix "\0$" which we should ignore (see bug #14406). * suffix "\0$" which we should ignore (see bug #14406).
*/ */

View File

@ -38,7 +38,7 @@ static char *sitename_key(TALLOC_CTX *mem_ctx, const char *realm)
/**************************************************************************** /****************************************************************************
Store the AD client sitename. Store the AD client sitename.
We store indefinately as every new CLDAP query will re-write this. We store indefinitely as every new CLDAP query will re-write this.
****************************************************************************/ ****************************************************************************/
bool sitename_store(const char *realm, const char *sitename) bool sitename_store(const char *realm, const char *sitename)
@ -61,7 +61,7 @@ bool sitename_store(const char *realm, const char *sitename)
return ret; return ret;
} }
expire = get_time_t_max(); /* Store indefinately. */ expire = get_time_t_max(); /* Store indefinitely. */
DEBUG(10,("sitename_store: realm = [%s], sitename = [%s], expire = [%u]\n", DEBUG(10,("sitename_store: realm = [%s], sitename = [%s], expire = [%u]\n",
realm, sitename, (unsigned int)expire )); realm, sitename, (unsigned int)expire ));