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:12:04 +0000 (12:12 +0200)
commit9877b74808940028ba832ac64bc52ae440e26c29
tree8dbc063e78fbf0393befa6e7c2639b71c3407992
parent1044372c3e637a558c09a5ebbfc85d363c3fc840
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