]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli/ldap: Remove unsued ldap_transaction()
authorAndrew Bartlett <abartlet@samba.org>
Tue, 21 May 2019 03:42:39 +0000 (15:42 +1200)
committerGary Lockyer <gary@samba.org>
Wed, 22 May 2019 05:59:14 +0000 (05:59 +0000)
This is unsued since a87dea2a0894015cf4a3140995791f5468c40038 in 2007
when we moved to using LDB for LDAP in this area of the code.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source4/libcli/ldap/ldap_client.c

index 1cbcd0d42d58c937f0ecc5f290d842f79cd97427..da84adc77691e6f75e6d5079971c7fc012337590 100644 (file)
@@ -1026,26 +1026,3 @@ _PUBLIC_ NTSTATUS ldap_result_one(struct ldap_request *req, struct ldap_message
        }
        return status;
 }
-
-/*
-  a simple ldap transaction, for single result requests that only need a status code
-  this relies on single valued requests having the response type == request type + 1
-*/
-_PUBLIC_ NTSTATUS ldap_transaction(struct ldap_connection *conn, struct ldap_message *msg)
-{
-       struct ldap_request *req = ldap_request_send(conn, msg);
-       struct ldap_message *res;
-       NTSTATUS status;
-       status = ldap_result_n(req, 0, &res);
-       if (!NT_STATUS_IS_OK(status)) {
-               talloc_free(req);
-               return status;
-       }
-       if (res->type != msg->type + 1) {
-               talloc_free(req);
-               return NT_STATUS_LDAP(LDAP_PROTOCOL_ERROR);
-       }
-       status = ldap_check_response(conn, &res->r.GeneralResult);
-       talloc_free(req);
-       return status;
-}