summaryrefslogtreecommitdiffstats
path: root/source4/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-02-13 18:55:48 +0100
committerAndrew Bartlett <abartlet@samba.org>2014-03-25 00:45:28 +0100
commit70fc74623552a9a21fa174b27cfaaa5c2f86e197 (patch)
tree0ff20c1a5bff2ca5a05045f1b5433a45120945d1 /source4/librpc
parent4c98f1651db74c052cf4fa2a10691308a64dbe5e (diff)
downloadsamba-70fc74623552a9a21fa174b27cfaaa5c2f86e197.tar.gz
samba-70fc74623552a9a21fa174b27cfaaa5c2f86e197.tar.xz
samba-70fc74623552a9a21fa174b27cfaaa5c2f86e197.zip
s4:librpc/test: test ipv6 addresses in dcerpc_binding strings
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/tests/binding_string.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/source4/librpc/tests/binding_string.c b/source4/librpc/tests/binding_string.c
index bc5d06e47cd..08d7e238b16 100644
--- a/source4/librpc/tests/binding_string.c
+++ b/source4/librpc/tests/binding_string.c
@@ -124,6 +124,16 @@ static const char *test_strings[] = {
"ncacn_unix_stream:[/tmp/epmapper,sign]",
"ncacn_ip_tcp:127.0.0.1[75,target_hostname=port75.example.com,target_principal=host/port75.example.com]",
"ncacn_ip_tcp:127.0.0.1[75,connect,target_hostname=port75.example.com,target_principal=host/port75.example.com,assoc_group_id=0x01234567]",
+ "ncacn_ip_tcp:::",
+ "ncacn_ip_tcp:::[75]",
+ "ncacn_ip_tcp:FD00::5357:5F00",
+ "ncacn_ip_tcp:FD00::5357:5F00[75]",
+ "ncacn_ip_tcp:FD00::5357:5F00[,target_hostname=port75.example.com]",
+ "ncacn_ip_tcp:FD00::5357:5F00[75,target_hostname=port75.example.com]",
+ "ncacn_ip_tcp:fe80::5357:5F00%75",
+ "ncacn_ip_tcp:fe80::5357:5F00%75[75]",
+ "ncacn_ip_tcp:fe80::5357:5F00%75[,target_hostname=port75.example.com]",
+ "ncacn_ip_tcp:fe80::5357:5F00%75[75,target_hostname=port75.example.com]",
};
static bool test_parse_check_results(struct torture_context *tctx)
@@ -248,6 +258,18 @@ static const char *test_no_strings[] = {
"127.0.0.1[75]",
"127.0.0.1[,target_hostname=port75.example.com]",
"127.0.0.1[75,target_hostname=port75.example.com]",
+ "::",
+ "::[75]",
+ "::[,target_hostname=port75.example.com]",
+ "::[75,target_hostname=port75.example.com]",
+ "FD00::5357:5F00",
+ "FD00::5357:5F00[75]",
+ "FD00::5357:5F00[,target_hostname=port75.example.com]",
+ "FD00::5357:5F00[75,target_hostname=port75.example.com]",
+ "fe80::5357:5F00%75",
+ "fe80::5357:5F00%75[75]",
+ "fe80::5357:5F00%75[,target_hostname=port75.example.com]",
+ "fe80::5357:5F00%75[75,target_hostname=port75.example.com]",
};
struct torture_suite *torture_local_binding_string(TALLOC_CTX *mem_ctx)