From 36748002f011c418ab061fb77c945f17fbe6be47 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 7 Mar 2024 09:56:00 +0100 Subject: [PATCH] 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 Reviewed-by: Andreas Schneider --- source3/libads/ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index a330b9dd7c9..13406b8b547 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -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; }