diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-10-24 07:59:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:45:11 -0500 |
commit | ef57650d6e47ead5b56934d0d38eefb389f364f5 (patch) | |
tree | 9b2b495cac85c6ec141dd49704f3194d1f596898 /source4 | |
parent | a0647a89a82e892292c421f5c968de2f28d42366 (diff) | |
download | samba-ef57650d6e47ead5b56934d0d38eefb389f364f5.tar.gz samba-ef57650d6e47ead5b56934d0d38eefb389f364f5.tar.bz2 samba-ef57650d6e47ead5b56934d0d38eefb389f364f5.zip |
r11273: Initialise the new server_info->logon_server element.
Andrew Bartlett
(This used to be commit bc6f6f9381b1038273f87feb35484dc61dd8bd8e)
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; |