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:
parent
9ea1ea1629
commit
36748002f0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user