From: Stefan Metzmacher Date: Mon, 25 Apr 2022 12:49:33 +0000 (+0200) Subject: s3:libads: remove unused ADS_AUTH_SIMPLE_BIND code X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=ded41b0946f8fd3e1dd673ebf3f6d039f79c74e1;p=samba.git s3:libads: remove unused ADS_AUTH_SIMPLE_BIND code We have other code to test simple binds. Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 04b2f35022d..1b7bdcf2d6e 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -1006,11 +1006,6 @@ got_connection: goto out; } - if (ads->auth.flags & ADS_AUTH_SIMPLE_BIND) { - status = ADS_ERROR(ldap_simple_bind_s(ads->ldap.ld, ads->auth.user_name, ads->auth.password)); - goto out; - } - status = ads_sasl_bind(ads); out: diff --git a/source3/librpc/idl/ads.idl b/source3/librpc/idl/ads.idl index d10e5b4dc77..c42e6784ed2 100644 --- a/source3/librpc/idl/ads.idl +++ b/source3/librpc/idl/ads.idl @@ -25,7 +25,6 @@ interface ads ADS_AUTH_DISABLE_KERBEROS = 0x0001, ADS_AUTH_NO_BIND = 0x0002, ADS_AUTH_ANON_BIND = 0x0004, - ADS_AUTH_SIMPLE_BIND = 0x0008, ADS_AUTH_ALLOW_NTLMSSP = 0x0010, ADS_AUTH_SASL_SIGN = 0x0020, ADS_AUTH_SASL_SEAL = 0x0040,