1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-21 09:34:19 +03:00

auth_log: prepare for netr_ServerAuthenticateKerberos

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Stefan Metzmacher 2024-10-29 18:30:22 +01:00 committed by Andreas Schneider
parent ff2e287585
commit 87b553084d
2 changed files with 5 additions and 2 deletions

View File

@ -754,8 +754,10 @@ static const char* get_password_type(const struct auth_usersupplied_info *ui)
} else if (ui->auth_description != NULL &&
strncmp("ServerAuthenticate", ui->auth_description, 18) == 0)
{
if (ui->netlogon_trust_account.negotiate_flags
& NETLOGON_NEG_SUPPORTS_AES) {
if (ui->netlogon_trust_account.authenticate_kerberos) {
password_type = "Kerberos";
} else if (ui->netlogon_trust_account.negotiate_flags
& NETLOGON_NEG_SUPPORTS_AES) {
password_type = "HMAC-SHA256";
} else if (ui->netlogon_trust_account.negotiate_flags
& NETLOGON_NEG_STRONG_KEYS) {

View File

@ -79,6 +79,7 @@ struct auth_usersupplied_info
struct {
uint32_t negotiate_flags;
bool authenticate_kerberos;
enum netr_SchannelType secure_channel_type;
const char *computer_name; /* [charset(UTF8)] */
const char *account_name; /* [charset(UTF8)] */