diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/auth/auth_sam.c | 3 | ||||
-rw-r--r-- | source4/auth/auth_util.c | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/source4/auth/auth_sam.c b/source4/auth/auth_sam.c index 9fd011ea30..72fed82ea9 100644 --- a/source4/auth/auth_sam.c +++ b/source4/auth/auth_sam.c @@ -484,6 +484,9 @@ static NTSTATUS authsam_make_server_info(TALLOC_CTX *mem_ctx, struct ldb_context server_info->home_drive = talloc_strdup(server_info, str); NT_STATUS_HAVE_NO_MEMORY(server_info->home_drive); + server_info->logon_server = talloc_strdup(server_info, lp_netbios_name()); + NT_STATUS_HAVE_NO_MEMORY(server_info->logon_server); + server_info->last_logon = samdb_result_nttime(msgs[0], "lastLogon", 0); server_info->last_logoff = samdb_result_nttime(msgs[0], "lastLogoff", 0); server_info->acct_expiry = samdb_result_nttime(msgs[0], "accountExpires", 0); diff --git a/source4/auth/auth_util.c b/source4/auth/auth_util.c index 6ee5e13b11..753f680fb1 100644 --- a/source4/auth/auth_util.c +++ b/source4/auth/auth_util.c @@ -409,6 +409,9 @@ NTSTATUS auth_anonymous_server_info(TALLOC_CTX *mem_ctx, struct auth_serversuppl server_info->home_drive = talloc_strdup(server_info, ""); NT_STATUS_HAVE_NO_MEMORY(server_info->home_drive); + server_info->logon_server = talloc_strdup(server_info, lp_netbios_name()); + NT_STATUS_HAVE_NO_MEMORY(server_info->logon_server); + server_info->last_logon = 0; server_info->last_logoff = 0; server_info->acct_expiry = 0; @@ -476,6 +479,9 @@ NTSTATUS auth_system_server_info(TALLOC_CTX *mem_ctx, struct auth_serversupplied server_info->home_drive = talloc_strdup(server_info, ""); NT_STATUS_HAVE_NO_MEMORY(server_info->home_drive); + server_info->logon_server = talloc_strdup(server_info, lp_netbios_name()); + NT_STATUS_HAVE_NO_MEMORY(server_info->logon_server); + server_info->last_logon = 0; server_info->last_logoff = 0; server_info->acct_expiry = 0; |