1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3:libads: make use of ads_connect_simple_anon() in ldap.c where possible

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Stefan Metzmacher 2022-04-28 18:43:00 +02:00
parent 7bfbea4c3c
commit c36b044224

View File

@ -3731,8 +3731,7 @@ ADS_STATUS ads_current_time(ADS_STRUCT *ads)
*/
ads_s->config.flags = 0;
ads_s->auth.flags = ADS_AUTH_ANON_BIND;
status = ads_connect( ads_s );
status = ads_connect_simple_anon(ads_s);
if ( !ADS_ERR_OK(status))
goto done;
}
@ -3821,8 +3820,7 @@ ADS_STATUS ads_domain_func_level(ADS_STRUCT *ads, uint32_t *val)
*/
ads_s->config.flags = 0;
ads_s->auth.flags = ADS_AUTH_ANON_BIND;
status = ads_connect( ads_s );
status = ads_connect_simple_anon(ads_s);
if ( !ADS_ERR_OK(status))
goto done;
}