1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

s3:libads: also avoid ADS_AUTH_GENERATE_KRB5_CONFIG for ADS_AUTH_ANON_BIND

For anonymous binds we don't need a krb5.conf.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Stefan Metzmacher 2024-03-07 09:56:00 +01:00
parent 9ea1ea1629
commit 36748002f0

View File

@ -842,7 +842,7 @@ static ADS_STATUS ads_connect_internal(ADS_STRUCT *ads,
SMB_ASSERT(cli_credentials_is_anonymous(creds));
}
if (!(ads->auth.flags & ADS_AUTH_NO_BIND)) {
if (!(ads->auth.flags & (ADS_AUTH_NO_BIND|ADS_AUTH_ANON_BIND))) {
ads->auth.flags |= ADS_AUTH_GENERATE_KRB5_CONFIG;
}