2d0cd3e53a
(Hopefully) fix the problem Kai reported with
...
net ads leave and IPv6. Ensure all DC lookups
prefer IPv4.
Jeremy.
2009-07-28 18:02:10 -07:00
3d7dfc1197
Consolidate string and data_blob routines in gencache
2009-07-15 10:55:20 +02:00
3edcd55bf1
Remove gencache_init/shutdown
...
gencache_get/set/del/iterate call gencache_init() internally anyway. And we've
been very lazy calling gencache_shutdown, so this seems not really required.
2009-07-15 10:55:20 +02:00
e5a34b2533
Remove gencache_[un]lock_key
2009-07-15 10:55:20 +02:00
1a7898e3a8
s3/getdcname: Fix 'net' crash.
...
'net' command crashed when attempting to join a
domain. This occurred in a very specific case where
the DC had multiple IPs and one of the IPs was invalid.
Signed-off-by: Volker Lendecke <vl@samba.org >
2009-05-29 11:27:38 +02:00
251c220f91
Fix a type-punned warning
2009-04-28 11:58:44 +02:00
87b428e424
s3:dsgetdcname: use parentheses in if condition to make negation clear
...
Signed-off-by: Günther Deschner <gd@samba.org >
2009-03-24 10:20:12 +01:00
1b7b0e924f
s3:dsgetdcname: retry with the clients site
...
metze
2008-12-13 11:47:13 +01:00
8d69a65110
s3-dsgetdcname: fix reply generation (forgot to map nt1 to nt5ex).
...
Guenther
2008-11-06 13:40:52 +01:00
d6a5476ee7
Use sockaddr_storage only where we rely on the size, use sockaddr
...
otherwise (to clarify we can also pass in structs smaller than
sockaddr_storage, such as sockaddr_in).
2008-10-23 19:53:15 +02:00
6ee4e81ad1
Fix an uninitialized variable warning
...
Not sure if we can ever not get domain and dns_domain, but gcc complained
2008-10-05 11:08:32 +02:00
af1c802791
The IRIX compiler does not like embedded unnamed unions
2008-10-02 08:09:25 +02:00
8641b54a73
Attempt to fix the build on IRIX
...
Under irix, "sa_family" is a #define to sa_union.sa_generic.sa_family2
2008-10-02 03:45:37 +02:00
da955d7193
s3-nbt: further cleanup of dsgetdcname().
...
Guenther
2008-09-25 20:11:55 +02:00
f07431f5ba
s3-nbt: use the new generated nbt.
...
Guenther
2008-09-24 03:34:23 +02:00
de54bac54c
s3: fix NETLOGON_NT_VERSION version flags.
...
Guenther
2008-09-23 23:20:10 +02:00
c48186f507
s3: use samba4 prototype for ndr_push/pull_struct_blob.
...
Guenther
2008-09-23 09:37:23 +02:00
d670d0a09b
Revert "Remove gencache_[un]lock_entry"
...
This reverts commit 7a5a575ffe
.
(This used to be commit 62e444dd50
)
2008-07-11 17:53:25 +02:00
352b5c1857
Remove gencache_[un]lock_entry
...
Günther agreed that it might be unnecessary in dsgetdcname_cache_store() :-)
(This used to be commit 7a5a575ffe
)
2008-07-03 16:40:46 +02:00
513bc4e791
dsgetdcname: allow to use NULL mem_ctx.
...
Guenther
(This used to be commit d20353d30c
)
2008-06-17 19:51:24 +02:00
c73cc63e92
dsgetdcname: use family (instead of sa_family).
...
Guenther
(This used to be commit 355fb81e9e
)
2008-05-27 11:40:50 +02:00
aacfa7b3ad
Fix two bogus uninitalized variable warnings
...
(This used to be commit 194ea682d9
)
2008-05-25 13:53:44 +02:00
175cca1729
dsgetdcname: store client sitename for mailslot and cldap replies.
...
Guenther
(This used to be commit a01ed719c3
)
2008-05-16 11:58:24 +02:00
4d593cdb19
dsgetdcname: add site support.
...
Guenther
(This used to be commit e305368538
)
2008-05-15 16:59:46 +02:00
2e8b43c58d
dsgetdcname: check for invalid sitename/flag combinations.
...
Guenther
(This used to be commit 255e509474
)
2008-05-15 16:41:18 +02:00
5547e5a416
dsgetdcname: In case we didn't get a mailslot reply, don't cache the nodestatus.
...
Guenther
(This used to be commit 12e47be02f
)
2008-05-14 09:45:39 +02:00
1830d6b159
dsgetdcname: add reminder that we need to support ipv6 here once we know how.
...
Guenther
(This used to be commit 4b3617bf50
)
2008-05-09 17:56:04 +02:00
d59cf703ba
dsgetdcname: make use of nbt_cldap_netlogon_15.
...
Guenther
(This used to be commit 5b0eda98f3
)
2008-05-09 17:41:50 +02:00
67c644aa59
dsgetdcname: use existing messaging_context if possible.
...
Guenther
(This used to be commit 7889516a38
)
2008-05-09 14:59:20 +02:00
c58ab8f3b2
dsgetdcname: the forest name should never be empty.
...
Guenther
(This used to be commit 2c0a96f1e5
)
2008-05-09 14:59:20 +02:00
e668cb4594
dsgetdcname: add map_dc_and_domain_names() for consolidating returned names.
...
Guenther
(This used to be commit eb7fee6e2a
)
2008-05-09 14:59:19 +02:00
4bd94c8338
cldap: move out cldap object to fix the build.
...
Guenther
(This used to be commit 56be9c98d2
)
2008-05-09 14:59:19 +02:00
5e24d83e41
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
(This used to be commit c67b6dc0ca
)
2008-05-09 14:59:19 +02:00
5d7a60afd8
dsgetdcname: pure cosmetics.
...
Guenther
(This used to be commit 4b56c294e8
)
2008-05-09 14:59:19 +02:00
9adc40a38f
dsgetdcname: simply call ourself with DS_FORCE_REDISCOVERY after cache expiry.
...
Guenther
(This used to be commit 847f258632
)
2008-05-09 14:59:19 +02:00
8441681819
dsgetdcname: be more paranoid about the existance of an ip_address.
...
Guenther
(This used to be commit d13fe66f3d
)
2008-05-09 14:59:19 +02:00
eaef936523
dsgetdcname: remove invalid assumption in discover_dc_dns().
...
Guenther
(This used to be commit f48b2e844b
)
2008-05-09 14:59:19 +02:00
9be17e2187
dsgetdcname: mailslot replies are identical to the cldap ones, use cldap everywhere.
...
Guenther
(This used to be commit fe904ee77a
)
2008-05-09 14:59:19 +02:00
926cc82897
dsgetdcname: wait a little longer for mailslot replies.
...
Guenther
(This used to be commit bc0d7a90dc
)
2008-05-09 14:59:18 +02:00
9d99ef899c
dsgetdcname: map additional flags to nt_version.
...
Guenther
(This used to be commit 1009123b86
)
2008-05-09 14:59:18 +02:00
0354d00ddf
dsgetdcname: use make_dc_info_from_cldap_reply() for cldap replies.
...
Guenther
(This used to be commit a3e5b073f0
)
2008-05-09 14:59:18 +02:00
81aa670343
dsgetdcname: add make_dc_info_from_cldap_reply().
...
Guenther
(This used to be commit 9db2e50a20
)
2008-05-09 14:59:18 +02:00
9b4ea32c2d
dsgetdcname: add get_cldap_reply_server_flags().
...
Guenther
(This used to be commit 3c05c56d4c
)
2008-05-09 14:59:18 +02:00
cdd9913c4a
cldap: let ads_cldap_netlogon() return all possible cldap replies.
...
Guenther
(This used to be commit 6f9d5e1cc9
)
2008-05-09 14:59:18 +02:00
64cb9461fb
dsgetdcname: add pull_mailslot_cldap_reply().
...
Guenther
(This used to be commit 95fb01d870
)
2008-05-09 14:59:18 +02:00
fcdee39988
dsgetdcname: add map_ds_flags_to_nt_version.
...
Guenther
(This used to be commit 1809ea22c3
)
2008-05-09 14:59:18 +02:00
7b5ec90b72
dsgetdcname: remove invalid assumptions when using DNS for the DC query.
...
Guenther
(This used to be commit a81818ae54
)
2008-05-07 14:09:41 +02:00
1f6065765c
mailslot/cldap: use nt_version bits in queries.
...
Guenther
(This used to be commit b261f06312
)
2008-05-06 09:41:41 +02:00
5c02872a10
dsgetdcname: use correct dc name for name cache store.
...
Guenther
(This used to be commit ce1556d0fb
)
2008-05-06 09:41:41 +02:00
051ff45c60
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
(This used to be commit d8b2ff3c87
)
2008-04-24 22:01:52 +02:00