summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-16 18:55:08 +0100
committerGünther Deschner <gd@samba.org>2008-02-17 02:11:59 +0100
commit65fc3ae0701dba3d8c336abd236716413b1f634d (patch)
treedea9abb415159aff4e6b16def7636ce3aba7ad7d /source3/smbd
parentb1d09a82f44dfebe3317d96ec69eaf81dfa452be (diff)
downloadsamba-65fc3ae0701dba3d8c336abd236716413b1f634d.tar.gz
samba-65fc3ae0701dba3d8c336abd236716413b1f634d.tar.bz2
samba-65fc3ae0701dba3d8c336abd236716413b1f634d.zip
Use new structs in reply_spnego_kerberos().
Guenther (This used to be commit c55160f8e866d9b24a4dad234af78ae46c236a37)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/sesssetup.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 3e04da35df..9baa02977a 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -259,7 +259,7 @@ static void reply_spnego_kerberos(struct smb_request *req,
fstring user;
int sess_vuid = req->vuid;
NTSTATUS ret = NT_STATUS_OK;
- PAC_DATA *pac_data = NULL;
+ struct PAC_DATA *pac_data = NULL;
DATA_BLOB ap_rep, ap_rep_wrapped, response;
auth_serversupplied_info *server_info = NULL;
DATA_BLOB session_key = data_blob_null;
@@ -268,7 +268,7 @@ static void reply_spnego_kerberos(struct smb_request *req,
fstring real_username;
bool map_domainuser_to_guest = False;
bool username_was_mapped;
- PAC_LOGON_INFO *logon_info = NULL;
+ struct PAC_LOGON_INFO *logon_info = NULL;
ZERO_STRUCT(ticket);
ZERO_STRUCT(ap_rep);
@@ -394,10 +394,9 @@ static void reply_spnego_kerberos(struct smb_request *req,
domain = p+1;
- if (logon_info && logon_info->info3.hdr_logon_dom.uni_str_len) {
- unistr2_to_ascii(netbios_domain_name,
- &logon_info->info3.uni_logon_dom,
- sizeof(netbios_domain_name));
+ if (logon_info && logon_info->info3.base.domain.string) {
+ fstrcpy(netbios_domain_name,
+ logon_info->info3.base.domain.string);
domain = netbios_domain_name;
DEBUG(10, ("Mapped to [%s] (using PAC)\n", domain));