Signed-off-by: Stefan Metzmacher <metze@samba.org>
bool ads_closest_dc(ADS_STRUCT *ads);
ADS_STATUS ads_connect_creds(ADS_STRUCT *ads, struct cli_credentials *creds);
ADS_STATUS ads_connect_anon(ADS_STRUCT *ads);
+ADS_STATUS ads_connect_no_bind(ADS_STRUCT *ads);
ADS_STATUS ads_connect_machine(ADS_STRUCT *ads);
ADS_STATUS ads_connect(ADS_STRUCT *ads);
ADS_STATUS ads_connect_user_creds(ADS_STRUCT *ads);
return status;
}
+/**
+ * Connect to the LDAP server using without a bind at all
+ * @param ads Pointer to an existing ADS_STRUCT
+ * @return status of connection
+ **/
+ADS_STATUS ads_connect_no_bind(ADS_STRUCT *ads)
+{
+ ads->auth.flags |= ADS_AUTH_NO_BIND;
+ return ads_connect_anon(ads);
+}
+
/**
* Connect to the LDAP server using the machine account
* @param ads Pointer to an existing ADS_STRUCT