mirror of
https://github.com/samba-team/samba.git
synced 2025-11-09 20:23:51 +03:00
r5294: - added a separate NBT-WINS test for WINS operations (register, refresh, release and query)
- change the iface_n_*() functions to return a "const char *" instead of a "struct ipv4_addr" I think that in general we should move towards "const char *" for all IP addresses, as this makes IPv6 much easier, and is also easier to debug. Andrew, when you get a chance, could you fix some of the auth code to use strings for IPs ? - return a NTSTATUS error on bad name queries and node status instead of using rcode. This makes the calling code simpler. - added low level name release code in libcli/nbt/ - use a real IP in the register and wins nbt torture tests, as w2k3 WINS server silently rejects some operations that don't come from the IP being used (eg. it says "yes" to a release, but does not in fact release the name)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
2f0419c4d8
commit
bb1ab11d8e
@@ -533,7 +533,7 @@ static NTSTATUS ldapsrv_init(struct event_context *event_context, const struct m
|
||||
socket per interface and bind to only these.
|
||||
*/
|
||||
for(i = 0; i < num_interfaces; i++) {
|
||||
const char *address = sys_inet_ntoa(*iface_n_ip(i));
|
||||
const char *address = iface_n_ip(i);
|
||||
status = add_socket(event_context, model_ops, address, ldap_service);
|
||||
NT_STATUS_NOT_OK_RETURN(status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user