summaryrefslogtreecommitdiff
path: root/source3/auth/auth_script.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-06-01 20:27:03 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-06-07 23:34:28 +1000
commit23159453d3e61e2ad47fe6f86f3763280a11ea0c (patch)
tree05a7c39bcc9028b32c5156945e5646c377552c9a /source3/auth/auth_script.c
parent0dc88d2745e89096fda0e097bcf958949d7efc2d (diff)
downloadsamba-23159453d3e61e2ad47fe6f86f3763280a11ea0c.tar.gz
samba-23159453d3e61e2ad47fe6f86f3763280a11ea0c.tar.bz2
samba-23159453d3e61e2ad47fe6f86f3763280a11ea0c.zip
s3:auth Rename user_info->smb_name -> user_info->client.account_name
This is closer to the structure I want for a common struct auth_usersupplied_info. Andrew Bartlett
Diffstat (limited to 'source3/auth/auth_script.c')
-rw-r--r--source3/auth/auth_script.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/auth/auth_script.c b/source3/auth/auth_script.c
index 81c80eb4fb..6d30058fe6 100644
--- a/source3/auth/auth_script.c
+++ b/source3/auth/auth_script.c
@@ -63,7 +63,7 @@ static NTSTATUS script_check_user_credentials(const struct auth_context *auth_co
}
secret_str_len = strlen(user_info->domain) + 1 +
- strlen(user_info->smb_name) + 1 +
+ strlen(user_info->client.account_name) + 1 +
16 + 1 + /* 8 bytes of challenge going to 16 */
48 + 1 + /* 24 bytes of challenge going to 48 */
48 + 1;
@@ -75,7 +75,7 @@ static NTSTATUS script_check_user_credentials(const struct auth_context *auth_co
safe_strcpy( secret_str, user_info->domain, secret_str_len - 1);
safe_strcat( secret_str, "\n", secret_str_len - 1);
- safe_strcat( secret_str, user_info->smb_name, secret_str_len - 1);
+ safe_strcat( secret_str, user_info->client.account_name, secret_str_len - 1);
safe_strcat( secret_str, "\n", secret_str_len - 1);
for (i = 0; i < 8; i++) {
@@ -109,7 +109,7 @@ static NTSTATUS script_check_user_credentials(const struct auth_context *auth_co
if (ret) {
DEBUG(1,("script_check_user_credentials: failed to authenticate %s\\%s\n",
- user_info->domain, user_info->smb_name ));
+ user_info->domain, user_info->client.account_name ));
/* auth failed. */
return NT_STATUS_NO_SUCH_USER;
}