s3:libads: let ads_sasl_spnego_bind() really use spnego to negotiate krb5/ntlmssp
authorStefan Metzmacher <metze@samba.org>
Thu, 29 Feb 2024 13:50:31 +0000 (14:50 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 14 May 2024 10:18:31 +0000 (10:18 +0000)
commitbb8b7be74a79defbd0955ac6d73dd1e65a75389f
tree8dbc063e78fbf0393befa6e7c2639b71c3407992
parent1474f9c5de3a0ca0a91596694b73aa19832ae3eb
s3:libads: let ads_sasl_spnego_bind() really use spnego to negotiate krb5/ntlmssp

For now we still do the ads_kinit_password() in ads_legacy_creds()
for callers that rely on the global krb5ccache to be filled.

E.g. the dns update code and the kpasswd code.

But at least ads_connect_internal() and ads_sasl_spnego_bind()
will allow to do the kinit in the gensec layer only if needed...

We'll remove ads_legacy_creds() during the following commits.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/libads/sasl.c
testprogs/blackbox/test_weak_disable_ntlmssp_ldap.sh