Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd/myldap.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2019-09-17 18:45:50 +0200
committerArthur de Jong <arthur@arthurdejong.org>2019-09-17 18:45:50 +0200
commita8f4ed81301d3e34b8b4f642b95c47677f947131 (patch)
tree4b4c7e68f266cbc5079af7160ae452f68cc31c39 /nslcd/myldap.c
parent644bc6247d730b96b65fd66a46003442237bb5a0 (diff)
Various spelling fixes
Diffstat (limited to 'nslcd/myldap.c')
-rw-r--r--nslcd/myldap.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/nslcd/myldap.c b/nslcd/myldap.c
index a07be36..02b9719 100644
--- a/nslcd/myldap.c
+++ b/nslcd/myldap.c
@@ -111,7 +111,7 @@ struct myldap_search {
MYLDAP_SESSION *session;
/* indicator that the search is still valid */
int valid;
- /* the parameters descibing the search */
+ /* the parameters describing the search */
const char *base;
int scope;
const char *filter;
@@ -119,7 +119,7 @@ struct myldap_search {
/* a pointer to the current result entry, used for
freeing resource allocated with that entry */
MYLDAP_ENTRY *entry;
- /* LDAP message id for the search, -1 indicates absense of an active search */
+ /* LDAP message id for the search, -1 indicates absence of an active search */
int msgid;
/* the last result that was returned by ldap_result() */
LDAPMessage *msg;
@@ -127,7 +127,7 @@ struct myldap_search {
struct berval *cookie;
/* to indicate that we can retry the search from myldap_get_entry() */
int may_retry_search;
- /* the number of resutls returned so far */
+ /* the number of results returned so far */
int count;
};
@@ -1380,7 +1380,7 @@ static int do_retry_search(MYLDAP_SEARCH *search)
/* update time of failure and figure out when we should retry */
pthread_mutex_lock(&uris_mutex);
t = time(NULL);
- /* update timestaps unless we are doing an authentication search */
+ /* update timestamps unless we are doing an authentication search */
if (search->session->binddn[0] == '\0')
{
if (current_uri->firstfail == 0)
@@ -1757,7 +1757,7 @@ const char *myldap_get_dn(MYLDAP_ENTRY *entry)
errno = EINVAL;
return "unknown";
}
- /* if we don't have it yet, retreive it */
+ /* if we don't have it yet, retrieve it */
if ((entry->dn == NULL) && (entry->search->valid))
{
entry->dn = ldap_get_dn(entry->search->session->ld, entry->search->msg);
@@ -1792,7 +1792,7 @@ char *myldap_cpy_dn(MYLDAP_ENTRY *entry, char *buf, size_t buflen)
return buf;
}
-/* Perform ranged retreival of attributes.
+/* Perform ranged retrieval of attributes.
http://msdn.microsoft.com/en-us/library/aa367017(vs.85).aspx
http://www.tkk.fi/cc/docs/kerberos/draft-kashi-incremental-00.txt */
static char **myldap_get_ranged_values(MYLDAP_ENTRY *entry, const char *attr)
@@ -1919,7 +1919,7 @@ const char **myldap_get_values(MYLDAP_ENTRY *entry, const char *attr)
{
if (ldap_get_option(entry->search->session->ld, LDAP_OPT_ERROR_NUMBER, &rc) != LDAP_SUCCESS)
rc = LDAP_UNAVAILABLE;
- /* ignore decoding errors as they are just nonexisting attribute values */
+ /* ignore decoding errors as they are just non-existing attribute values */
if (rc == LDAP_DECODING_ERROR)
{
rc = LDAP_SUCCESS;
@@ -2027,7 +2027,7 @@ const char **myldap_get_values_len(MYLDAP_ENTRY *entry, const char *attr)
{
if (ldap_get_option(entry->search->session->ld, LDAP_OPT_ERROR_NUMBER, &rc) != LDAP_SUCCESS)
rc = LDAP_UNAVAILABLE;
- /* ignore decoding errors as they are just nonexisting attribute values */
+ /* ignore decoding errors as they are just non-existing attribute values */
if (rc == LDAP_DECODING_ERROR)
{
rc = LDAP_SUCCESS;