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

2294 Commits

Author SHA1 Message Date
Jeremy Allison
19519bca9b 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.
2008-06-02 18:37:16 -07:00
Günther Deschner
973de861c9 errors: add more WERRORs.
Guenther
2008-06-03 01:27:44 +02:00
Günther Deschner
058cf7001e doserr: Add WERR_GROUP_EXISTS and WERR_SPECIAL_ACCOUNT.
Guenther
2008-06-03 01:27:40 +02:00
Chere Zhou
0c61631f34 minor memory leak fix 2008-05-30 17:55:14 -07:00
Jeremy Allison
23b825e9d2 Security fix for CVE-2008-1105: Boundary failure when parsing SMB responses
can result in a buffer overrun.
Jeremy.
2008-05-28 09:31:42 -07:00
Jeremy Allison
201bcc8ed2 Memory leak fixes from Chere Zhou <czhou@isilon.com>.
Jeremy.
2008-05-27 12:27:57 -07:00
Günther Deschner
355fb81e9e dsgetdcname: use family (instead of sa_family).
Guenther
2008-05-27 11:40:50 +02:00
Günther Deschner
017ad275e5 doserr: add WERR_REVISION_MISMATCH.
Guenther
2008-05-27 11:01:30 +02:00
Volker Lendecke
194ea682d9 Fix two bogus uninitalized variable warnings 2008-05-25 13:53:44 +02:00
Günther Deschner
7c93190843 drsuapi: add all code required for our drsuapi rpc client.
Guenther
2008-05-23 23:56:21 +02:00
Gerald W. Carter
b78b14c88e 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.
2008-05-23 16:01:45 -05:00
Jeremy Allison
478a359ede Fix bug #5479, print spool shares require max_xmit to
be adhered to.
Jeremy.
2008-05-21 12:39:08 -07:00
Volker Lendecke
dbb4d8107a Fix some signed/unsigned warnings 2008-05-20 23:06:38 +02:00
Tim Prouty
6b189dabc5 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.
2008-05-20 22:40:13 +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
836877c400 mailslot: Also pick domain name and pdc name from type 15 cldap reply.
Guenther
2008-05-14 09:45:39 +02:00
Volker Lendecke
c572d537e0 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
2008-05-13 16:29:47 +02:00
Volker Lendecke
e402e6508c Revert "Fix signing bug found by Volker. That one was *subtle*."
This reverts commit 816aea6c1a.
2008-05-13 16:29:47 +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
a159ec5f1f build: fix the build w/o ldap.
Guenther
2008-05-06 09:48:16 +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
Volker Lendecke
e7a4027acf Fix a C++ warning 2008-05-05 18:28:59 +02:00
Günther Deschner
d077ef64cd Fix client authentication with -P switch in client tools (Bug 5435).
Guenther
2008-05-05 16:59:53 +02:00
Günther Deschner
2c41d69bcf ntlmssp: replace UNKNOWN_02000000 with NTLMSSP_NEGOTIATE_VERSION.
Guenther
2008-04-30 18:55:57 +02:00
Günther Deschner
b9ac03bdfa errors: add WERR_NOT_FOUND.
Guenther
2008-04-29 20:22:01 +02:00
Günther Deschner
b11a5e70d3 errors: add WERR_INVALID_DOMAINNAME.
Guenther
2008-04-25 14:49:31 +02:00