summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/auth/auth.h1
-rw-r--r--source4/include/structs.h1
-rw-r--r--source4/lib/data_blob.c12
-rw-r--r--source4/libcli/auth/gensec_krb5.c2
4 files changed, 16 insertions, 0 deletions
diff --git a/source4/auth/auth.h b/source4/auth/auth.h
index dc57d349b4..741cd55542 100644
--- a/source4/auth/auth.h
+++ b/source4/auth/auth.h
@@ -76,6 +76,7 @@ struct auth_serversupplied_info
const char *account_name;
const char *domain;
+ const char *realm;
const char *full_name;
const char *logon_script;
diff --git a/source4/include/structs.h b/source4/include/structs.h
index 2d1679fd1c..00dfbf6c79 100644
--- a/source4/include/structs.h
+++ b/source4/include/structs.h
@@ -48,6 +48,7 @@ struct samr_LogonHours;
struct netr_SamInfo3;
struct netr_Authenticator;
+union netr_Validation;
struct iface_struct;
diff --git a/source4/lib/data_blob.c b/source4/lib/data_blob.c
index 7803179d39..d2147be6b2 100644
--- a/source4/lib/data_blob.c
+++ b/source4/lib/data_blob.c
@@ -61,6 +61,18 @@ DATA_BLOB data_blob_talloc_named(TALLOC_CTX *mem_ctx, const void *p, size_t leng
return ret;
}
+
+/*******************************************************************
+ construct a data blob which is a reference to another blob, in
+the given mem context
+*******************************************************************/
+DATA_BLOB data_blob_talloc_reference(TALLOC_CTX *mem_ctx, DATA_BLOB *blob)
+{
+ DATA_BLOB ret = *blob;
+ ret.data = talloc_reference(mem_ctx, ret.data);
+ return ret;
+}
+
/*******************************************************************
construct a zero data blob, using supplied TALLOC_CTX.
use this sparingly as it initialises data - better to initialise
diff --git a/source4/libcli/auth/gensec_krb5.c b/source4/libcli/auth/gensec_krb5.c
index 37e96cf9dc..a95780236e 100644
--- a/source4/libcli/auth/gensec_krb5.c
+++ b/source4/libcli/auth/gensec_krb5.c
@@ -668,7 +668,9 @@ static NTSTATUS gensec_krb5_session_info(struct gensec_security *gensec_security
server_info->logon_count = logon_info->logon_count;
/* TODO: bad password count */
+#if ABARTLET_HAS_FIXED_BUILD
server_info->acct_flags = logon_info->acct_flags;
+#endif
if (!server_info->domain || !server_info->account_name || !server_info->realm) {
free_server_info(&server_info);