diff options
author | Andrew Bartlett <abartlet@samba.org> | 2019-05-06 14:09:49 +1200 |
---|---|---|
committer | Gary Lockyer <gary@samba.org> | 2019-05-06 05:46:11 +0000 |
commit | 65a24621710a81147e482209cc955ce4641660f4 (patch) | |
tree | c73e2a19fc9f49571eb855bc149430e39b70c9d1 /source4 | |
parent | eb15acdd35600878aba3319e070199200d9a1357 (diff) | |
download | samba-65a24621710a81147e482209cc955ce4641660f4.tar.gz |
torture: Remove unused torture_ldap_connection2()
The last caller was removed by 'r7626: a new ldap client library'
in 2005 with bab977dad76e9204278c7afe0bb905cda064f488.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/ldap/common.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/source4/torture/ldap/common.c b/source4/torture/ldap/common.c index 9d53da4b01c..9482e0392bc 100644 --- a/source4/torture/ldap/common.c +++ b/source4/torture/ldap/common.c @@ -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) { |