mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3-smbd: Replace client_id in smbd session setup.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
ea2917c7a2
commit
2f92ffb1a4
@ -347,7 +347,7 @@ static void reply_spnego_kerberos(struct smb_request *req,
|
||||
}
|
||||
|
||||
ret = get_user_from_kerberos_info(talloc_tos(),
|
||||
sconn->client_id.name,
|
||||
sconn->remote_hostname,
|
||||
principal, logon_info,
|
||||
&username_was_mapped,
|
||||
&map_domainuser_to_guest,
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "libads/kerberos_proto.h"
|
||||
#include "../lib/util/asn1.h"
|
||||
#include "auth.h"
|
||||
#include "../lib/tsocket/tsocket.h"
|
||||
|
||||
static NTSTATUS smbd_smb2_session_setup(struct smbd_smb2_request *smb2req,
|
||||
uint64_t in_session_id,
|
||||
@ -215,7 +216,7 @@ static NTSTATUS smbd_smb2_session_setup_krb5(struct smbd_smb2_session *session,
|
||||
}
|
||||
|
||||
status = get_user_from_kerberos_info(talloc_tos(),
|
||||
smb2req->sconn->client_id.name,
|
||||
session->sconn->remote_hostname,
|
||||
principal, logon_info,
|
||||
&username_was_mapped,
|
||||
&map_domainuser_to_guest,
|
||||
|
Loading…
Reference in New Issue
Block a user