summaryrefslogtreecommitdiff
path: root/source4/auth/auth_util.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2005-06-03 12:13:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:28 -0500
commit0b4a3021e1db39dedb1eb16026ed2bff6aa2c4dd (patch)
treef5853fd517988213a4415a728733c9d40638de03 /source4/auth/auth_util.c
parentc1b95bd467109793333c15ea44ec910ffe3e86b4 (diff)
downloadsamba-0b4a3021e1db39dedb1eb16026ed2bff6aa2c4dd.tar.gz
samba-0b4a3021e1db39dedb1eb16026ed2bff6aa2c4dd.tar.bz2
samba-0b4a3021e1db39dedb1eb16026ed2bff6aa2c4dd.zip
r7224: add some more usefull data to the auth_usersupplied_info struct
(This used to be commit e40c44e9cdc0be7c52207f8479568804e7d9cff2)
Diffstat (limited to 'source4/auth/auth_util.c')
-rw-r--r--source4/auth/auth_util.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/source4/auth/auth_util.c b/source4/auth/auth_util.c
index ebd0b74227..8d5a95cee8 100644
--- a/source4/auth/auth_util.c
+++ b/source4/auth/auth_util.c
@@ -40,15 +40,16 @@ NTSTATUS auth_get_challenge_not_implemented(struct auth_method_context *ctx, TAL
/****************************************************************************
Create an auth_usersupplied_data structure
****************************************************************************/
-static NTSTATUS make_user_info(TALLOC_CTX *mem_ctx,
+NTSTATUS make_user_info(TALLOC_CTX *mem_ctx,
const char *c_account_name,
const char *account_name,
const char *c_domain_name,
const char *domain_name,
const char *workstation_name,
+ const char *remote_host,
DATA_BLOB *lm_password, DATA_BLOB *nt_password,
DATA_BLOB *lm_interactive_password, DATA_BLOB *nt_interactive_password,
- DATA_BLOB *plaintext_password, BOOL encrypted,
+ DATA_BLOB *plaintext_password, BOOL encrypted, uint32_t flags,
struct auth_usersupplied_info **_user_info)
{
struct auth_usersupplied_info *user_info;
@@ -177,9 +178,10 @@ NTSTATUS make_user_info_map(TALLOC_CTX *mem_ctx,
c_account_name, account_name,
c_domain_name, domain,
workstation_name,
+ workstation_name,
lm_password, nt_password,
lm_interactive_password, nt_interactive_password,
- plaintext, encrypted,
+ plaintext, encrypted, 0x00,
user_info);
}
@@ -280,9 +282,9 @@ NTSTATUS make_user_info_for_reply_enc(TALLOC_CTX *mem_ctx,
NTSTATUS make_user_info_anonymous(TALLOC_CTX *mem_ctx, struct auth_usersupplied_info **user_info)
{
return make_user_info(mem_ctx,
- "", "", "", "", "",
+ "", "", "", "", "", "",
NULL, NULL, NULL, NULL,
- NULL, True,
+ NULL, True, 0x00,
user_info);
}