s3:libads: remove unused ADS_AUTH_SIMPLE_BIND code
authorStefan Metzmacher <metze@samba.org>
Mon, 25 Apr 2022 12:49:33 +0000 (14:49 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 23 Apr 2024 23:50:34 +0000 (23:50 +0000)
We have other code to test simple binds.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/libads/ldap.c
source3/librpc/idl/ads.idl

index 04b2f35022d01be9a9d90ad7870e3854c96672db..1b7bdcf2d6e70b3ec44781504f0cb6c1fd8dfabc 100644 (file)
@@ -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:
index d10e5b4dc77e8b5b6b2eebc364a534fb3d85a6bf..c42e6784ed26c01ea985f9679b528e4a9d9a2fbc 100644 (file)
@@ -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,