From 646f8ca3e822290897e6298dd16ad3b4be78c07a Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 21 Nov 2001 21:10:13 +0000 Subject: More spelling fixes, comment reformatting. (This used to be commit edb556b47446f75dc4987eee15276661eb6cec8d) --- source3/auth/auth_util.c | 19 +++++++++++-------- source3/smbd/auth_util.c | 19 +++++++++++-------- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index 5a86e02928..25e0830fc7 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -130,9 +130,11 @@ void smb_user_control(const auth_usersupplied_info *user_info, auth_serversuppli SMB_STRUCT_STAT st; const char *home_dir = pdb_get_homedir(server_info->sam_account); /* - * Also call smb_create_user if the users home directory - * doesn't exist. Used with winbindd to allow the script to - * create the home directory for a user mapped with winbindd. + * Also call smb_create_user if the users + * home directory doesn't exist. Used with + * winbindd to allow the script to create + * the home directory for a user mapped + * with winbindd. */ if (home_dir && @@ -272,7 +274,7 @@ BOOL make_user_info_map(auth_usersupplied_info **user_info, /**************************************************************************** Create an auth_usersupplied_data, making the DATA_BLOBs here. - Decrupt and encrypt the passwords. + Decrypt and encrypt the passwords. ****************************************************************************/ BOOL make_user_info_netlogon_network(auth_usersupplied_info **user_info, @@ -311,7 +313,7 @@ BOOL make_user_info_netlogon_network(auth_usersupplied_info **user_info, /**************************************************************************** Create an auth_usersupplied_data, making the DATA_BLOBs here. - Decrupt and encrypt the passwords. + Decrypt and encrypt the passwords. ****************************************************************************/ BOOL make_user_info_netlogon_interactive(auth_usersupplied_info **user_info, @@ -423,8 +425,8 @@ BOOL make_user_info_winbind(auth_usersupplied_info **user_info, if (*password) { SMBencrypt( (const uchar *)password, chal, local_lm_response); - /* This encrypts the lm_pwd field, which actualy contains - the password rather than the nt_pwd field becouse that + /* This encrypts the lm_pwd field, which actually contains + the password rather than the nt_pwd field because that contains nothing */ /* WATCH OUT. This doesn't work if the incoming password is @@ -572,7 +574,8 @@ BOOL make_user_info_for_reply(auth_usersupplied_info **user_info, SMBencrypt( (const uchar *)plaintext_password.data, chal, local_lm_response); local_lm_blob = data_blob(local_lm_response, 24); - /* We can't do an NT hash here, as the password needs to be case insensitive */ + /* We can't do an NT hash here, as the password needs to be + case insensitive */ local_nt_blob = data_blob(NULL, 0); ntlmssp_flags = NTLMSSP_NEGOTIATE_OEM; diff --git a/source3/smbd/auth_util.c b/source3/smbd/auth_util.c index 5a86e02928..25e0830fc7 100644 --- a/source3/smbd/auth_util.c +++ b/source3/smbd/auth_util.c @@ -130,9 +130,11 @@ void smb_user_control(const auth_usersupplied_info *user_info, auth_serversuppli SMB_STRUCT_STAT st; const char *home_dir = pdb_get_homedir(server_info->sam_account); /* - * Also call smb_create_user if the users home directory - * doesn't exist. Used with winbindd to allow the script to - * create the home directory for a user mapped with winbindd. + * Also call smb_create_user if the users + * home directory doesn't exist. Used with + * winbindd to allow the script to create + * the home directory for a user mapped + * with winbindd. */ if (home_dir && @@ -272,7 +274,7 @@ BOOL make_user_info_map(auth_usersupplied_info **user_info, /**************************************************************************** Create an auth_usersupplied_data, making the DATA_BLOBs here. - Decrupt and encrypt the passwords. + Decrypt and encrypt the passwords. ****************************************************************************/ BOOL make_user_info_netlogon_network(auth_usersupplied_info **user_info, @@ -311,7 +313,7 @@ BOOL make_user_info_netlogon_network(auth_usersupplied_info **user_info, /**************************************************************************** Create an auth_usersupplied_data, making the DATA_BLOBs here. - Decrupt and encrypt the passwords. + Decrypt and encrypt the passwords. ****************************************************************************/ BOOL make_user_info_netlogon_interactive(auth_usersupplied_info **user_info, @@ -423,8 +425,8 @@ BOOL make_user_info_winbind(auth_usersupplied_info **user_info, if (*password) { SMBencrypt( (const uchar *)password, chal, local_lm_response); - /* This encrypts the lm_pwd field, which actualy contains - the password rather than the nt_pwd field becouse that + /* This encrypts the lm_pwd field, which actually contains + the password rather than the nt_pwd field because that contains nothing */ /* WATCH OUT. This doesn't work if the incoming password is @@ -572,7 +574,8 @@ BOOL make_user_info_for_reply(auth_usersupplied_info **user_info, SMBencrypt( (const uchar *)plaintext_password.data, chal, local_lm_response); local_lm_blob = data_blob(local_lm_response, 24); - /* We can't do an NT hash here, as the password needs to be case insensitive */ + /* We can't do an NT hash here, as the password needs to be + case insensitive */ local_nt_blob = data_blob(NULL, 0); ntlmssp_flags = NTLMSSP_NEGOTIATE_OEM; -- cgit