1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

2300 Commits

Author SHA1 Message Date
Günther Deschner
fd288b4110 clikrb5: remove unrequired create_kerberos_key_from_string_direct() prototype.
Guenther
(This used to be commit ec86852fc6)
2008-06-17 19:51:52 +02:00
Günther Deschner
513bc4e791 dsgetdcname: allow to use NULL mem_ctx.
Guenther
(This used to be commit d20353d30c)
2008-06-17 19:51:24 +02:00
Volker Lendecke
dd30dd2a14 Fix a crash in add_failed_connection_entry
(This used to be commit 2a689aa66a)
2008-06-07 08:16:23 +02:00
Volker Lendecke
a191f3d2fe Make the gencache based conncache use talloc_tos()
(This used to be commit f7f912a478)
2008-06-07 08:16:23 +02:00
Marc VanHeyningen
d4cbc4408e Negative conn cache uses gencache
(This used to be commit 8765eb8ad7)
2008-06-07 08:16:23 +02:00
Jeremy Allison
48a2a3780b More correct fix (hopefully :-) for any memory leaks.
Jerry promised to check :-). Vl also please review.
Jeremy.
(This used to be commit 8abc6e7421)
2008-06-05 14:27:26 -07:00
Jeremy Allison
1c0a9759b9 Fix bug reported by David Eisner <deisner@gmail.com>. When allocating cli
buffers for large read/write - make sure we take account of the large
read/write SMB headers as well as the buffer space.
Jeremy.
(This used to be commit 19519bca9b)
2008-06-02 18:37:16 -07:00
Günther Deschner
39101acba5 errors: add more WERRORs.
Guenther
(This used to be commit 973de861c9)
2008-06-03 01:27:44 +02:00
Günther Deschner
ff7b8bcebf doserr: Add WERR_GROUP_EXISTS and WERR_SPECIAL_ACCOUNT.
Guenther
(This used to be commit 058cf7001e)
2008-06-03 01:27:40 +02:00
Chere Zhou
70b37891f9 minor memory leak fix
(This used to be commit 0c61631f34)
2008-05-30 17:55:14 -07:00
Jeremy Allison
d36434f312 Security fix for CVE-2008-1105: Boundary failure when parsing SMB responses
can result in a buffer overrun.
Jeremy.
(This used to be commit 23b825e9d2)
2008-05-28 09:31:42 -07:00
Jeremy Allison
d5d4a9511d Memory leak fixes from Chere Zhou <czhou@isilon.com>.
Jeremy.
(This used to be commit 201bcc8ed2)
2008-05-27 12:27:57 -07:00
Günther Deschner
c73cc63e92 dsgetdcname: use family (instead of sa_family).
Guenther
(This used to be commit 355fb81e9e)
2008-05-27 11:40:50 +02:00
Günther Deschner
372a6c0360 doserr: add WERR_REVISION_MISMATCH.
Guenther
(This used to be commit 017ad275e5)
2008-05-27 11:01:30 +02:00
Volker Lendecke
aacfa7b3ad Fix two bogus uninitalized variable warnings
(This used to be commit 194ea682d9)
2008-05-25 13:53:44 +02:00
Günther Deschner
6b3bcb3724 drsuapi: add all code required for our drsuapi rpc client.
Guenther
(This used to be commit 7c93190843)
2008-05-23 23:56:21 +02:00
Gerald W. Carter
4d2f71e53f Manually merge Steven Danneman's patch for SPNEGO auth to a trusted
Win2008 domain (merged from v3-0-test).

   commit 8dc4e97977
   Author: Steven Danneman <sdanneman@isilon.com>
   Date:   Wed May 7 13:34:26 2008 -0700

      spnego SPN fix when contacting trusted domains

      cli_session_setup_spnego() was not taking into consideration the situation
      where we're connecting to a trusted domain, specifically one (like W2K8)
      which doesn't return a SPN in the NegTokenInit.

      This caused two problems:

      1) When guessing the SPN using kerberos_get_default_realm_from_ccache() we
      were always using our default realm, not the realm of the domain we're
      connecting to.

      2) When falling back on NTLMSSP for authentication we were passing the name
      of the domain we're connecting to for use in our credentials when we should be
      passing our own workgroup name.

      The fix for both was to split the single "domain" parameter into
      "user_domain" and "dest_realm" parameters.  We use the "user_domain"
      parameter to pass into the NTLM call, and we used "dest_realm" to create an SPN
      if none was returned in the NegTokenInit2 packet.  If no "dest_realm" is
      provided we assume we're connecting to our own domain and use the credentials
      cache to build the SPN.

      Since we have a reasonable guess at the SPN, I removed the check that defaults
      us directly to NTLM when negHint is empty.
(This used to be commit b78b14c88e)
2008-05-23 16:01:45 -05:00
Jeremy Allison
b04bcefc58 Fix bug #5479, print spool shares require max_xmit to
be adhered to.
Jeremy.
(This used to be commit 478a359ede)
2008-05-21 12:39:08 -07:00
Volker Lendecke
e2d8b0a792 Fix some signed/unsigned warnings
(This used to be commit dbb4d8107a)
2008-05-20 23:06:38 +02:00
Tim Prouty
fb37f15600 Cleanup size_t return values in callers of convert_string_allocate
This patch is the second iteration of an inside-out conversion to cleanup
functions in charcnv.c returning size_t == -1 to indicate failure.
(This used to be commit 6b189dabc5)
2008-05-20 22:40:13 +02:00
Günther Deschner
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
Günther Deschner
4d593cdb19 dsgetdcname: add site support.
Guenther
(This used to be commit e305368538)
2008-05-15 16:59:46 +02:00
Günther Deschner
2e8b43c58d dsgetdcname: check for invalid sitename/flag combinations.
Guenther
(This used to be commit 255e509474)
2008-05-15 16:41:18 +02:00
Günther Deschner
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
Günther Deschner
c49487805b mailslot: Also pick domain name and pdc name from type 15 cldap reply.
Guenther
(This used to be commit 836877c400)
2008-05-14 09:45:39 +02:00
Volker Lendecke
44b7f672b8 Fix signing problem in the client with transs requests
This is a different fix than Jeremy put into 3-0-test with 040db1ce85 and other
branches with different hashes. Jeremy, I think your fix led to bug 5436, so I
reverted your fix. This fixes the original problem I found with the transs
requests for large rpc queries in a different way. Please check!

Thanks,

Volker
(This used to be commit c572d537e0)
2008-05-13 16:29:47 +02:00
Volker Lendecke
8ef2ada0ef Revert "Fix signing bug found by Volker. That one was *subtle*."
This reverts commit 816aea6c1a.
(This used to be commit e402e6508c)
2008-05-13 16:29:47 +02:00
Günther Deschner
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
Günther Deschner
d59cf703ba dsgetdcname: make use of nbt_cldap_netlogon_15.
Guenther
(This used to be commit 5b0eda98f3)
2008-05-09 17:41:50 +02:00
Günther Deschner
67c644aa59 dsgetdcname: use existing messaging_context if possible.
Guenther
(This used to be commit 7889516a38)
2008-05-09 14:59:20 +02:00
Günther Deschner
c58ab8f3b2 dsgetdcname: the forest name should never be empty.
Guenther
(This used to be commit 2c0a96f1e5)
2008-05-09 14:59:20 +02:00
Günther Deschner
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
Günther Deschner
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
Günther Deschner
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
Günther Deschner
5d7a60afd8 dsgetdcname: pure cosmetics.
Guenther
(This used to be commit 4b56c294e8)
2008-05-09 14:59:19 +02:00
Günther Deschner
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
Günther Deschner
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
Günther Deschner
eaef936523 dsgetdcname: remove invalid assumption in discover_dc_dns().
Guenther
(This used to be commit f48b2e844b)
2008-05-09 14:59:19 +02:00
Günther Deschner
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
Günther Deschner
926cc82897 dsgetdcname: wait a little longer for mailslot replies.
Guenther
(This used to be commit bc0d7a90dc)
2008-05-09 14:59:18 +02:00
Günther Deschner
9d99ef899c dsgetdcname: map additional flags to nt_version.
Guenther
(This used to be commit 1009123b86)
2008-05-09 14:59:18 +02:00
Günther Deschner
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
Günther Deschner
81aa670343 dsgetdcname: add make_dc_info_from_cldap_reply().
Guenther
(This used to be commit 9db2e50a20)
2008-05-09 14:59:18 +02:00
Günther Deschner
9b4ea32c2d dsgetdcname: add get_cldap_reply_server_flags().
Guenther
(This used to be commit 3c05c56d4c)
2008-05-09 14:59:18 +02:00
Günther Deschner
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
Günther Deschner
64cb9461fb dsgetdcname: add pull_mailslot_cldap_reply().
Guenther
(This used to be commit 95fb01d870)
2008-05-09 14:59:18 +02:00
Günther Deschner
fcdee39988 dsgetdcname: add map_ds_flags_to_nt_version.
Guenther
(This used to be commit 1809ea22c3)
2008-05-09 14:59:18 +02:00
Günther Deschner
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
Günther Deschner
611d79d0ed build: fix the build w/o ldap.
Guenther
(This used to be commit a159ec5f1f)
2008-05-06 09:48:16 +02:00
Günther Deschner
1f6065765c mailslot/cldap: use nt_version bits in queries.
Guenther
(This used to be commit b261f06312)
2008-05-06 09:41:41 +02:00