s3:passdb: Fix code spelling
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 26 Sep 2023 23:39:03 +0000 (12:39 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 25 Oct 2023 22:23:37 +0000 (22:23 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/passdb/pdb_ldap.c
source3/passdb/pdb_nds.c

index 58b2b010b72e45d8e8dab2b624a5b5a442724f5e..ed5c3e9a495e24f3087f6eb4b3fa347b4560b2fe 100644 (file)
@@ -81,7 +81,7 @@ LDAP *priv2ld(struct ldapsam_privates *priv)
 }
 
 /**********************************************************************
- Get the attribute name given a user schame version.
+ Get the attribute name given a user schema version.
  **********************************************************************/
 
 static const char* get_userattr_key2string( int schema_ver, int key )
@@ -6563,7 +6563,7 @@ static void free_private_data(void **vp)
 }
 
 /*********************************************************************
- Intitalise the parts of the pdb_methods structure that are common to
+ Initialise the parts of the pdb_methods structure that are common to
  all pdb_ldap modes
 *********************************************************************/
 
index 5f00a8c562937b0aed364c03a05d938e4eb4463f..fc0d19b06f1fdf6ad439feca1eaedd2b801f1cc6 100644 (file)
@@ -185,13 +185,13 @@ static int berEncodeLoginData(
 
        if (!err) {
                if (putData) {
-               /* BER Encode the the tag and data */
+               /* BER Encode the tag and data */
                        err = (ber_printf(requestBer, "oio}", utf8TagPtr,
                                          utf8TagSize, putDataLen, putData,
                                          putDataLen) < 0)
                                ? LDAP_ENCODING_ERROR : 0;
                } else {
-               /* BER Encode the the tag */
+               /* BER Encode the tag */
                        err = (ber_printf(requestBer, "o}", utf8TagPtr,
                                          utf8TagSize) < 0)
                                ? LDAP_ENCODING_ERROR : 0;
@@ -223,7 +223,7 @@ Cleanup:
 /**********************************************************************
  Takes the reply BER Value and decodes the NMAS server version and
  return code and if a non null retData buffer was supplied, tries to
- decode the the return data and length
+ decode the return data and length
 **********************************************************************/
 
 static int berDecodeLoginData(
@@ -862,7 +862,7 @@ static NTSTATUS pdb_nds_update_login_attempts(struct pdb_methods *methods,
 }
 
 /**********************************************************************
- Intitalise the parts of the pdb_methods structuire that are common 
+ Initialise the parts of the pdb_methods structure that are common
  to NDS_ldapsam modes
  *********************************************************************/