summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/dsgetdcname.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:dsgetdcname: use parentheses in if condition to make negation clearBjörn Jacke2009-04-151-1/+1
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 87b428e424e2e3cca975ecd0efed327e72950a1d) (cherry picked from commit a2e138419138a2f675f6370426a6caeda0a314b4)
* s3:dsgetdcname: retry with the clients siteStefan Metzmacher2008-12-131-6/+43
| | | | metze
* s3-dsgetdcname: fix reply generation (forgot to map nt1 to nt5ex).Günther Deschner2008-11-061-0/+2
| | | | Guenther
* Use sockaddr_storage only where we rely on the size, use sockaddrJelmer Vernooij2008-10-231-1/+1
| | | | | otherwise (to clarify we can also pass in structs smaller than sockaddr_storage, such as sockaddr_in).
* Fix an uninitialized variable warningVolker Lendecke2008-10-051-0/+2
| | | | Not sure if we can ever not get domain and dns_domain, but gcc complained
* The IRIX compiler does not like embedded unnamed unionsVolker Lendecke2008-10-021-10/+10
|
* Attempt to fix the build on IRIXVolker Lendecke2008-10-021-1/+1
| | | | Under irix, "sa_family" is a #define to sa_union.sa_generic.sa_family2
* s3-nbt: further cleanup of dsgetdcname().Günther Deschner2008-09-251-163/+25
| | | | Guenther
* s3-nbt: use the new generated nbt.Günther Deschner2008-09-241-225/+97
| | | | Guenther
* s3: fix NETLOGON_NT_VERSION version flags.Günther Deschner2008-09-231-10/+10
| | | | Guenther
* s3: use samba4 prototype for ndr_push/pull_struct_blob.Günther Deschner2008-09-231-2/+2
| | | | Guenther
* Revert "Remove gencache_[un]lock_entry"Volker Lendecke2008-07-111-2/+10
| | | | | This reverts commit 7a5a575ffe5196caecedc93970a25abfbe6f8059. (This used to be commit 62e444dd50ae974c2ab9a553cdf7f188a8f2c538)
* Remove gencache_[un]lock_entryVolker Lendecke2008-07-031-10/+2
| | | | | Günther agreed that it might be unnecessary in dsgetdcname_cache_store() :-) (This used to be commit 7a5a575ffe5196caecedc93970a25abfbe6f8059)
* dsgetdcname: allow to use NULL mem_ctx.Günther Deschner2008-06-171-1/+1
| | | | | Guenther (This used to be commit d20353d30c2e08a6c6d67ae8b8c2faa26004249c)
* dsgetdcname: use family (instead of sa_family).Günther Deschner2008-05-271-1/+1
| | | | | Guenther (This used to be commit 355fb81e9e42e507717f33a11793258db9169199)
* Fix two bogus uninitalized variable warningsVolker Lendecke2008-05-251-1/+2
| | | | (This used to be commit 194ea682d9a5c12a0125fecc20349ca9cc3d3ea1)
* dsgetdcname: store client sitename for mailslot and cldap replies.Günther Deschner2008-05-161-0/+6
| | | | | Guenther (This used to be commit a01ed719c31998620927dc9b1664ba8e36bd9b21)
* dsgetdcname: add site support.Günther Deschner2008-05-151-4/+14
| | | | | Guenther (This used to be commit e305368538eaa72e3008a5517db3708936924297)
* dsgetdcname: check for invalid sitename/flag combinations.Günther Deschner2008-05-151-2/+7
| | | | | Guenther (This used to be commit 255e509474cae92802e90613ccaddb6627ee77cd)
* dsgetdcname: In case we didn't get a mailslot reply, don't cache the nodestatus.Günther Deschner2008-05-141-1/+3
| | | | | Guenther (This used to be commit 12e47be02f93e2f41af5772f6a83568b3574d032)
* dsgetdcname: add reminder that we need to support ipv6 here once we know how.Günther Deschner2008-05-091-2/+4
| | | | | Guenther (This used to be commit 4b3617bf505a835a6d4bb9b80c4ad837a2082dea)
* dsgetdcname: make use of nbt_cldap_netlogon_15.Günther Deschner2008-05-091-8/+91
| | | | | Guenther (This used to be commit 5b0eda98f3d127399770f7a037ad3277dbe23393)
* dsgetdcname: use existing messaging_context if possible.Günther Deschner2008-05-091-6/+16
| | | | | Guenther (This used to be commit 7889516a384c155a9045aad4409c041fddd0d98d)
* dsgetdcname: the forest name should never be empty.Günther Deschner2008-05-091-1/+1
| | | | | Guenther (This used to be commit 2c0a96f1e5fc065fdbeb5671cfa693009321dde8)
* dsgetdcname: add map_dc_and_domain_names() for consolidating returned names.Günther Deschner2008-05-091-50/+79
| | | | | Guenther (This used to be commit eb7fee6e2a00326c03aa013058247e06279a4930)
* cldap: move out cldap object to fix the build.Günther Deschner2008-05-091-84/+0
| | | | | Guenther (This used to be commit 56be9c98d24e64bf855439df21766d30f448f407)
* dsgetdcname: fix gencache store for dsgetdcname().Günther Deschner2008-05-091-20/+184
| | | | | | | | | 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 c67b6dc0ca866781043e443177d550e23b83ae36)
* dsgetdcname: pure cosmetics.Günther Deschner2008-05-091-6/+6
| | | | | Guenther (This used to be commit 4b56c294e8ba045c84cab538b3d286e433d292ed)
* dsgetdcname: simply call ourself with DS_FORCE_REDISCOVERY after cache expiry.Günther Deschner2008-05-091-16/+8
| | | | | Guenther (This used to be commit 847f258632f6d49a3fd45f466c5d3d8c6222ff85)
* dsgetdcname: be more paranoid about the existance of an ip_address.Günther Deschner2008-05-091-6/+36
| | | | | Guenther (This used to be commit d13fe66f3d9ba152e3e8197ee6682e175163a6cd)
* dsgetdcname: remove invalid assumption in discover_dc_dns().Günther Deschner2008-05-091-5/+0
| | | | | Guenther (This used to be commit f48b2e844b673e99c84cb24f3c3718352ab93ce5)
* dsgetdcname: mailslot replies are identical to the cldap ones, use cldap ↵Günther Deschner2008-05-091-60/+19
| | | | | | | everywhere. Guenther (This used to be commit fe904ee77a7fec1674e9db660978c40c17897f77)
* dsgetdcname: wait a little longer for mailslot replies.Günther Deschner2008-05-091-2/+2
| | | | | Guenther (This used to be commit bc0d7a90dcc7bf702b24feb16abf4634ff178671)
* dsgetdcname: map additional flags to nt_version.Günther Deschner2008-05-091-0/+2
| | | | | Guenther (This used to be commit 1009123b8600e6ccebe180f4a2f87c217638fef8)
* dsgetdcname: use make_dc_info_from_cldap_reply() for cldap replies.Günther Deschner2008-05-091-63/+21
| | | | | Guenther (This used to be commit a3e5b073f0474543ca74b40775ce1d7f80719c96)
* dsgetdcname: add make_dc_info_from_cldap_reply().Günther Deschner2008-05-091-0/+146
| | | | | Guenther (This used to be commit 9db2e50a20caabaf90ce03203a066ddd7820d33a)
* dsgetdcname: add get_cldap_reply_server_flags().Günther Deschner2008-05-091-0/+32
| | | | | Guenther (This used to be commit 3c05c56d4c0aac8106684cda3152c65299c63075)
* cldap: let ads_cldap_netlogon() return all possible cldap replies.Günther Deschner2008-05-091-4/+2
| | | | | Guenther (This used to be commit 6f9d5e1cc94bc90685b54c04622b8f3357bd2f69)
* dsgetdcname: add pull_mailslot_cldap_reply().Günther Deschner2008-05-091-0/+84
| | | | | Guenther (This used to be commit 95fb01d8702342265f8837a368dc42f4a4d394d5)
* dsgetdcname: add map_ds_flags_to_nt_version.Günther Deschner2008-05-091-0/+28
| | | | | Guenther (This used to be commit 1809ea22c31ee28e109f49701f91534177027165)
* dsgetdcname: remove invalid assumptions when using DNS for the DC query.Günther Deschner2008-05-071-11/+2
| | | | | Guenther (This used to be commit a81818ae54159755df441cc6421e5b272035f412)
* mailslot/cldap: use nt_version bits in queries.Günther Deschner2008-05-061-1/+4
| | | | | Guenther (This used to be commit b261f063125f8454d8f4e8f6b6f8aa5bc393ea34)
* dsgetdcname: use correct dc name for name cache store.Günther Deschner2008-05-061-1/+1
| | | | | Guenther (This used to be commit ce1556d0fb993b78f02ac4cc4f8a45ab7a0b5397)
* mailslot/dsgetdcname: do what XP does and request nt_version 11.Günther Deschner2008-04-241-5/+32
| | | | | | | | | | 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 d8b2ff3c8769e8da9c21dec483e6edb7aa2d00f3)
* mailslot: allow to give back struct nbt_ntlogon_packet.Günther Deschner2008-04-241-1/+3
| | | | | Guenther (This used to be commit 2b178dcae608ecc05f62593a7a0c2a127b8b7ca2)
* mailslot: allow to define nt_version in send_getdc_request().Günther Deschner2008-04-241-1/+2
| | | | | Guenther (This used to be commit ce3728191b23badfd5eb92701e4cebf84273b61e)
* dsgetdcname: Fix discover_dc_dns().Günther Deschner2008-04-221-2/+2
| | | | | Guenther (This used to be commit ec86deb349850c634b49cd5a536e9281a4a6e7d8)
* dsgetdcname: add very basic flat name support.Günther Deschner2008-04-221-9/+168
| | | | | Guenther (This used to be commit bb72d0b71e2a85d50e7bd893670c3eec69717580)
* cldap: avoid duplicate definitions so remove ads_cldap.h.Günther Deschner2008-04-211-7/+7
| | | | | Guenther (This used to be commit 538eefe22ad69540b9f73ffaa613d6be045de199)
* cldap: add talloc context to ads_cldap_netlogon().Günther Deschner2008-04-211-2/+2
| | | | | Guenther (This used to be commit 4cee7b1bd5cd97c414b73d6f39238958480cdcf3)