torture: Remove unused torture_ldap_connection2()
[samba.git] / source4 / torture / ldap / common.c
index 9d53da4b01c222ac87a2b00d9a53f3988d659609..9482e0392bcc97862cbb4445e5379d1ec04c82f9 100644 (file)
@@ -76,23 +76,6 @@ NTSTATUS torture_ldap_connection(struct torture_context *tctx,
        return status;
 }
 
-/* open a ldap connection to a server */
-NTSTATUS torture_ldap_connection2(struct torture_context *tctx, struct ldap_connection **conn, 
-                               const char *url, const char *userdn, const char *password)
-{
-        NTSTATUS status;
-
-       status = torture_ldap_connection(tctx, conn, url);
-       NT_STATUS_NOT_OK_RETURN(status);
-
-       status = ldap_bind_simple(*conn, userdn, password);
-       if (!NT_STATUS_IS_OK(status)) {
-               printf("Failed a simple ldap bind - %s\n", ldap_errstr(*conn, tctx, status));
-       }
-       return status;
-}
-
 /* close an ldap connection to a server */
 NTSTATUS torture_ldap_close(struct ldap_connection *conn)
 {