1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-17 04:23:50 +03:00
Commit Graph

54 Commits

Author SHA1 Message Date
Günther Deschner
355fb81e9e dsgetdcname: use family (instead of sa_family).
Guenther
2008-05-27 11:40:50 +02:00
Volker Lendecke
194ea682d9 Fix two bogus uninitalized variable warnings 2008-05-25 13:53:44 +02:00
Günther Deschner
a01ed719c3 dsgetdcname: store client sitename for mailslot and cldap replies.
Guenther
2008-05-16 11:58:24 +02:00
Günther Deschner
e305368538 dsgetdcname: add site support.
Guenther
2008-05-15 16:59:46 +02:00
Günther Deschner
255e509474 dsgetdcname: check for invalid sitename/flag combinations.
Guenther
2008-05-15 16:41:18 +02:00
Günther Deschner
12e47be02f dsgetdcname: In case we didn't get a mailslot reply, don't cache the nodestatus.
Guenther
2008-05-14 09:45:39 +02:00
Günther Deschner
4b3617bf50 dsgetdcname: add reminder that we need to support ipv6 here once we know how.
Guenther
2008-05-09 17:56:04 +02:00
Günther Deschner
5b0eda98f3 dsgetdcname: make use of nbt_cldap_netlogon_15.
Guenther
2008-05-09 17:41:50 +02:00
Günther Deschner
7889516a38 dsgetdcname: use existing messaging_context if possible.
Guenther
2008-05-09 14:59:20 +02:00
Günther Deschner
2c0a96f1e5 dsgetdcname: the forest name should never be empty.
Guenther
2008-05-09 14:59:20 +02:00
Günther Deschner
eb7fee6e2a dsgetdcname: add map_dc_and_domain_names() for consolidating returned names.
Guenther
2008-05-09 14:59:19 +02:00
Günther Deschner
56be9c98d2 cldap: move out cldap object to fix the build.
Guenther
2008-05-09 14:59:19 +02:00
Günther Deschner
c67b6dc0ca dsgetdcname: fix gencache store for dsgetdcname().
While storing always a type 29 reply structure in gencache, we are now able to
deliver correct data according to return flags such as DS_RETURN_FLAT_NAME and
DS_RETURN_DNS_NAME out of the cached data from gencache.

Guenther
2008-05-09 14:59:19 +02:00
Günther Deschner
4b56c294e8 dsgetdcname: pure cosmetics.
Guenther
2008-05-09 14:59:19 +02:00
Günther Deschner
847f258632 dsgetdcname: simply call ourself with DS_FORCE_REDISCOVERY after cache expiry.
Guenther
2008-05-09 14:59:19 +02:00
Günther Deschner
d13fe66f3d dsgetdcname: be more paranoid about the existance of an ip_address.
Guenther
2008-05-09 14:59:19 +02:00
Günther Deschner
f48b2e844b dsgetdcname: remove invalid assumption in discover_dc_dns().
Guenther
2008-05-09 14:59:19 +02:00
Günther Deschner
fe904ee77a dsgetdcname: mailslot replies are identical to the cldap ones, use cldap everywhere.
Guenther
2008-05-09 14:59:19 +02:00
Günther Deschner
bc0d7a90dc dsgetdcname: wait a little longer for mailslot replies.
Guenther
2008-05-09 14:59:18 +02:00
Günther Deschner
1009123b86 dsgetdcname: map additional flags to nt_version.
Guenther
2008-05-09 14:59:18 +02:00
Günther Deschner
a3e5b073f0 dsgetdcname: use make_dc_info_from_cldap_reply() for cldap replies.
Guenther
2008-05-09 14:59:18 +02:00
Günther Deschner
9db2e50a20 dsgetdcname: add make_dc_info_from_cldap_reply().
Guenther
2008-05-09 14:59:18 +02:00
Günther Deschner
3c05c56d4c dsgetdcname: add get_cldap_reply_server_flags().
Guenther
2008-05-09 14:59:18 +02:00
Günther Deschner
6f9d5e1cc9 cldap: let ads_cldap_netlogon() return all possible cldap replies.
Guenther
2008-05-09 14:59:18 +02:00
Günther Deschner
95fb01d870 dsgetdcname: add pull_mailslot_cldap_reply().
Guenther
2008-05-09 14:59:18 +02:00
Günther Deschner
1809ea22c3 dsgetdcname: add map_ds_flags_to_nt_version.
Guenther
2008-05-09 14:59:18 +02:00
Günther Deschner
a81818ae54 dsgetdcname: remove invalid assumptions when using DNS for the DC query.
Guenther
2008-05-07 14:09:41 +02:00
Günther Deschner
b261f06312 mailslot/cldap: use nt_version bits in queries.
Guenther
2008-05-06 09:41:41 +02:00
Günther Deschner
ce1556d0fb dsgetdcname: use correct dc name for name cache store.
Guenther
2008-05-06 09:41:41 +02:00
Günther Deschner
d8b2ff3c87 mailslot/dsgetdcname: do what XP does and request nt_version 11.
This allows dsgetdcname to query for a flat, non-dns domain name and
come back with all information about the DC (site names, guid, forest,
etc.) based on a mailslot reply. The version 11 request is downgraded
to version 1 in case we do a query against NT4.

Guenther
2008-04-24 22:01:52 +02:00
Günther Deschner
2b178dcae6 mailslot: allow to give back struct nbt_ntlogon_packet.
Guenther
2008-04-24 22:01:52 +02:00
Günther Deschner
ce3728191b mailslot: allow to define nt_version in send_getdc_request().
Guenther
2008-04-24 22:01:51 +02:00
Günther Deschner
ec86deb349 dsgetdcname: Fix discover_dc_dns().
Guenther
2008-04-22 00:05:05 +02:00
Günther Deschner
bb72d0b71e dsgetdcname: add very basic flat name support.
Guenther
2008-04-22 00:04:25 +02:00
Günther Deschner
538eefe22a cldap: avoid duplicate definitions so remove ads_cldap.h.
Guenther
2008-04-21 20:21:40 +02:00
Günther Deschner
4cee7b1bd5 cldap: add talloc context to ads_cldap_netlogon().
Guenther
2008-04-21 20:21:40 +02:00
Günther Deschner
751f3064a5 libads: Use libnbt for CLDAP reply parsing.
Guenther
2008-04-21 20:21:39 +02:00
Günther Deschner
2fe416ffa5 dsgetdcname: Fix discover_dc_dns.
Guenther
2008-04-17 00:08:24 +02:00
Günther Deschner
34dd8f32e1 Remove unneeded pack_dsdcinfo/unpack_dsdcinfo.
Guenther
2008-03-28 13:37:25 +01:00
Günther Deschner
7fa5391105 Use NDR for netr_DsRGetDCNameInfo un-/marshalling in dsgetdcname.
Guenther
2008-03-28 13:36:31 +01:00
Günther Deschner
b1a4b21f8c Let dsgetdcname() return a struct netr_DsRGetDCNameInfo.
Guenther
2008-02-28 12:40:55 +01:00
Günther Deschner
fd490d236b Eliminate remote tree of dsgetdcname (which will happen in libnetapi then).
Guenther
2008-01-29 15:09:56 +01:00
Günther Deschner
19a980f520 As long as DsGetDcName is not part of libnetapi, lowercase the fn name.
Guenther
2008-01-11 15:32:20 +01:00
Günther Deschner
41c129da3d Refactor our DsGetDcName call a bit (before it will move into libnetapi).
Guenther
2008-01-07 23:06:12 +01:00
Volker Lendecke
31d0a846db Remove some globals 2007-12-05 14:39:07 +01:00
Volker Lendecke
1fab16ffb8 Remove some statics 2007-11-27 14:18:47 +01:00
Jeremy Allison
814daded90 Change our DNS code to cope with AAAA records. A6 records
look like a nightmare to use, so ignore them for now.
Jeremy.
2007-10-29 13:34:00 -07:00
Jeremy Allison
f35a266b3c RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
2007-10-18 17:40:25 -07:00
Jeremy Allison
3f6bd0e1ec Add start of IPv6 implementation. Currently most of this is avoiding
IPv6 in winbindd, but moves most of the socket functions that were
wrongly in lib/util.c into lib/util_sock.c and provides generic
IPv4/6 independent versions of most things. Still lots of work
to do, but now I can see how I'll fix the access check code.
Nasty part that remains is the name resolution code which is
used to returning arrays of in_addr structs.
Jeremy.
2007-10-10 18:25:16 -07:00
Günther Deschner
aca2d78db1 r24797: Fix logic in dsgetdcname().
Guenther
2007-10-10 12:30:22 -05:00