svn commit: samba r7224 - in branches/SAMBA_4_0/source/auth: .
idra at samba.org
idra at samba.org
Fri Jun 3 12:13:34 GMT 2005
Author: idra
Date: 2005-06-03 12:13:33 +0000 (Fri, 03 Jun 2005)
New Revision: 7224
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7224
Log:
add some more usefull data to the auth_usersupplied_info struct
Modified:
branches/SAMBA_4_0/source/auth/auth.h
branches/SAMBA_4_0/source/auth/auth_util.c
Changeset:
Modified: branches/SAMBA_4_0/source/auth/auth.h
===================================================================
--- branches/SAMBA_4_0/source/auth/auth.h 2005-06-03 12:04:26 UTC (rev 7223)
+++ branches/SAMBA_4_0/source/auth/auth.h 2005-06-03 12:13:33 UTC (rev 7224)
@@ -36,11 +36,16 @@
/* version 4 - subsequent samba4 version - metze */
#define AUTH_INTERFACE_VERSION 4
+#define USER_INFO_CASE_INSENSITIVE_USERNAME 0x01 /* username may be in any case */
+#define USER_INFO_CASE_INSENSITIVE_PASSWORD 0x02 /* password may be in any case */
+#define USER_INFO_DONT_CHECK_UNIX_ACCOUNT 0x04 /* dont check unix account status */
+
struct auth_usersupplied_info
{
const char *account_name;
const char *domain_name;
const char *workstation_name;
+ const char *remote_host;
/* the values the client gives us */
struct {
@@ -55,6 +60,8 @@
DATA_BLOB lm_interactive_password;
DATA_BLOB nt_interactive_password;
DATA_BLOB plaintext_password;
+
+ uint32_t flags;
};
struct auth_serversupplied_info
Modified: branches/SAMBA_4_0/source/auth/auth_util.c
===================================================================
--- branches/SAMBA_4_0/source/auth/auth_util.c 2005-06-03 12:04:26 UTC (rev 7223)
+++ branches/SAMBA_4_0/source/auth/auth_util.c 2005-06-03 12:13:33 UTC (rev 7224)
@@ -40,15 +40,16 @@
/****************************************************************************
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 @@
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_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);
}
More information about the samba-cvs
mailing list