diff options
author | Jeremy Allison <jra@samba.org> | 2009-06-08 15:21:48 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-06-08 15:21:48 -0700 |
commit | 4b0658d4486d60c82c989ed0b6c806dfc45edbac (patch) | |
tree | 8fc190a7d3a4368750417640f734f5c24c3f770d /libcli/cldap | |
parent | 89bd09e7f3247b02223bd06a68be43b8954f5b97 (diff) | |
download | samba-4b0658d4486d60c82c989ed0b6c806dfc45edbac.tar.gz samba-4b0658d4486d60c82c989ed0b6c806dfc45edbac.tar.bz2 samba-4b0658d4486d60c82c989ed0b6c806dfc45edbac.zip |
Replace the "ipv4" specific strings in libcli/cldap/cldap.c with "ip". CLDAP can
run over IPv4/IPv6, even though some of the netlogon messages are IPv4 specific.
Fix the new ads_cldap_netlogon() to be IPv6/IPv4 agnostic. This compiles but
I don't have a good test env. for this (although as the previous code was
*completely* broken over IPv6 this will expose previously hidden bugs if it's broken :-).
Jeremy.
Diffstat (limited to 'libcli/cldap')
-rw-r--r-- | libcli/cldap/cldap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcli/cldap/cldap.c b/libcli/cldap/cldap.c index 8a0c2eec5e..191d0eeee4 100644 --- a/libcli/cldap/cldap.c +++ b/libcli/cldap/cldap.c @@ -320,7 +320,7 @@ NTSTATUS cldap_socket_init(TALLOC_CTX *mem_ctx, c->event.ctx = ev; if (!local_addr) { - ret = tsocket_address_inet_from_strings(c, "ipv4", + ret = tsocket_address_inet_from_strings(c, "ip", NULL, 0, &any); if (ret != 0) { @@ -550,7 +550,7 @@ struct tevent_req *cldap_search_send(TALLOC_CTX *mem_ctx, goto post; } ret = tsocket_address_inet_from_strings(state, - "ipv4", + "ip", io->in.dest_address, io->in.dest_port, &state->request.dest); |