The Samba-Bugzilla – Attachment 13300 Details for
Bug 11392
Joining a Huawai storage fails: empty CLDAP ping answer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-s4-torture-ldap-Test-netlogon-without-NtVer.patch
0001-s4-torture-ldap-Test-netlogon-without-NtVer.patch (text/plain), 2.39 KB, created by
Arvid Requate
on 2017-06-21 13:49:04 UTC
(
hide
)
Description:
0001-s4-torture-ldap-Test-netlogon-without-NtVer.patch
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2017-06-21 13:49:04 UTC
Size:
2.39 KB
patch
obsolete
>From 88a27a761d467b35833942d616d1c78d5b6f2ef6 Mon Sep 17 00:00:00 2001 >From: Arvid Requate <requate@univention.de> >Date: Tue, 20 Jun 2017 20:05:17 +0200 >Subject: [PATCH] s4:torture/ldap: Test netlogon without NtVer > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=11392 > >Signed-off-by: Arvid Requate <requate@univention.de> >--- > source4/torture/ldap/netlogon.c | 40 ++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > >diff --git a/source4/torture/ldap/netlogon.c b/source4/torture/ldap/netlogon.c >index 1b43ea7..743a1ea 100644 >--- a/source4/torture/ldap/netlogon.c >+++ b/source4/torture/ldap/netlogon.c >@@ -541,6 +541,45 @@ static bool test_netlogon_extra_attrs(struct torture_context *tctx, > return true; > } > >+/* >+ Bug #11392: Huawei Unified Storage System S5500 V3 sends no NtVer >+ [MS-ADTS] Section 7.3.3.2 "Domain Controller Response to an LDAP Ping" >+*/ >+static bool test_netlogon_huawei(struct torture_context *tctx, >+ request_rootdse_t request_rootdse, >+ void *conn) >+{ >+ struct cldap_search io; >+ NTSTATUS status; >+ const char *attrs[] = { >+ "netlogon", >+ NULL >+ }; >+ struct ldb_message ldbmsg = { NULL, 0, NULL }; >+ >+ ZERO_STRUCT(io); >+ io.in.dest_address = NULL; >+ io.in.dest_port = 0; >+ io.in.timeout = 2; >+ io.in.retries = 2; >+ >+ torture_comment(tctx, "Requesting netlogon without NtVer filter\n"); >+ io.in.filter = talloc_asprintf(tctx, "(&(DnsDomain=%s))", >+ lpcfg_dnsdomain(tctx->lp_ctx)); >+ torture_assert(tctx, io.in.filter != NULL, "OOM"); >+ io.in.attributes = attrs; >+ status = request_rootdse(conn, tctx, &io); >+ CHECK_STATUS(status, NT_STATUS_OK); >+ torture_assert(tctx, io.out.response != NULL, "No Entries found."); >+ CHECK_VAL(io.out.response->num_attributes, 1); >+ >+ ldbmsg.num_elements = io.out.response->num_attributes; >+ ldbmsg.elements = io.out.response->attributes; >+ torture_assert(tctx, ldb_msg_find_element(&ldbmsg, "netlogon") != NULL, >+ "Attribute netlogon not found in Result Entry\n"); >+ >+ return true; >+} > > bool torture_netlogon_tcp(struct torture_context *tctx) > { >@@ -609,6 +648,7 @@ bool torture_netlogon_udp(struct torture_context *tctx) > ret &= test_ldap_netlogon(tctx, udp_ldap_netlogon, cldap, host); > ret &= test_ldap_netlogon_flags(tctx, udp_ldap_netlogon, cldap, host); > ret &= test_netlogon_extra_attrs(tctx, udp_ldap_rootdse, cldap); >+ ret &= test_netlogon_huawei(tctx, udp_ldap_rootdse, cldap); > > return ret; > } >-- >2.1.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 11392
:
11241
|
13300
|
13302
|
13303
|
13427
|
13438
|
13439