1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-04 05:18:06 +03:00
Commit Graph

2463 Commits

Author SHA1 Message Date
Jelmer Vernooij
44b728958a Use common error definitions. 2008-10-23 15:35:21 +02:00
Günther Deschner
8a3bff343a s3-build: fix another build warning with the new ASN1 code.
Guenther
2008-10-23 11:46:18 +02:00
Günther Deschner
d115c4587f s3-build: fix some const build warnings.
Guenther
2008-10-23 01:43:41 +02:00
Günther Deschner
0f89871837 s3-build: fix the build.
Guenther
2008-10-22 22:45:04 +02:00
Günther Deschner
c0cf457c85 s3-asn1: make all of s3 asn1 code do a proper asn1_init() first.
Guenther
2008-10-22 21:37:36 +02:00
Günther Deschner
d9f1fff5b3 s3: use shared asn1 code.
Guenther
2008-10-22 21:37:36 +02:00
Günther Deschner
4b59ecb903 s3-build: no need to duplicate generated ndr_ prototypes.
Guenther
2008-10-20 19:47:00 +02:00
Jelmer Vernooij
7275952568 Add TALLOC_CTX pointer to generate_random_str(), for consistency with
Samba 4.
2008-10-19 10:05:48 +02:00
Tim Prouty
16bbfc2262 Fixed "argument differ in signedness" warning on linux 2008-10-14 17:31:07 -07:00
Jelmer Vernooij
4746f79d50 Use {u,}int64_t instead of SMB_BIG_{U,}INT. 2008-10-14 01:59:36 +02:00
Jelmer Vernooij
e779345bca Import changes from upstream libndr. 2008-10-13 15:01:28 +02:00
Jelmer Vernooij
a59ce1d94c Use common byteorder.h. 2008-10-12 16:17:21 +02:00
Volker Lendecke
3bcb76a924 Fix "warning: initialization discards qualifiers from pointer target type" 2008-10-12 14:13:24 +02:00
Jelmer Vernooij
cb78d4593b Cope with changed signature of http_timestring(). 2008-10-11 23:57:44 +02:00
Jelmer Vernooij
6a78e56277 Merge branch 'master' of ssh://git.samba.org/data/git/samba into arc4 2008-10-11 14:44:10 +02:00
Jeremy Allison
decd04d946 Ensure we handle signals correctly during the async calls.
Jeremy.
2008-10-09 15:40:00 -07:00
Jeremy Allison
e5692d4cbe Remove SEC_ACCESS. It's a uint32_t.
Jeremy.
2008-10-09 09:49:03 -07:00
Jeremy Allison
2024d87cf5 Make map_errno_from_nt_status() a generic call, not just a cli specific one.
Remove some unused calls from vfs_acl_xattr. Test for SD's on existing files.
Jeremy.
2008-10-07 14:43:42 -07:00
Volker Lendecke
41ee314438 Fix some nonempty blank lines 2008-10-05 22:16:07 +02:00
Volker Lendecke
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
Volker Lendecke
af1c802791 The IRIX compiler does not like embedded unnamed unions 2008-10-02 08:09:25 +02:00
Volker Lendecke
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
Günther Deschner
da955d7193 s3-nbt: further cleanup of dsgetdcname().
Guenther
2008-09-25 20:11:55 +02:00
Jelmer Vernooij
ddbddbd80c Fix build with arc4. 2008-09-24 19:20:33 +02:00
Jelmer Vernooij
edeb20b921 Merge branch 'master' of ssh://git.samba.org/data/git/samba into arc4
Conflicts:
	source3/include/includes.h
2008-09-24 18:38:45 +02:00
Jelmer Vernooij
d2062ab74f Use common crc32 implementation. 2008-09-24 16:46:02 +02:00
Jelmer Vernooij
da01822671 Use common arcfour implementation. 2008-09-24 16:04:43 +02:00
Günther Deschner
f07431f5ba s3-nbt: use the new generated nbt.
Guenther
2008-09-24 03:34:23 +02:00
Günther Deschner
de54bac54c s3: fix NETLOGON_NT_VERSION version flags.
Guenther
2008-09-23 23:20:10 +02:00
Günther Deschner
fd3ba988dc s3-nbt: fix remaining callers of ndr_push/pull_struct_blob.
Guenther
2008-09-23 09:49:56 +02:00
Günther Deschner
c48186f507 s3: use samba4 prototype for ndr_push/pull_struct_blob.
Guenther
2008-09-23 09:37:23 +02:00
Günther Deschner
e194ded26e netlogon: move password change code out to rpccli_netlogon_set_trust_password.
Guenther
2008-09-21 22:30:39 +02:00
Günther Deschner
6f9a83505f netlogon: refactor just_change_the_password a bit.
Guenther
2008-09-21 22:30:29 +02:00
Günther Deschner
ca56c02d4b netlogon: use init_netr_CryptPassword in "just_change_the_password"
Guenther
2008-09-21 22:30:21 +02:00
Volker Lendecke
2009229c84 Make use of TALLOC_ZERO_P 2008-09-21 16:32:40 +02:00
Volker Lendecke
eeac8d4fbe Remove a cast -- thanks metze 2008-09-17 17:45:17 +02:00
Volker Lendecke
ffbc38abe1 Factor out validate_smb_crypto
(This used to be commit 37fcc9dc46)
2008-09-12 23:09:17 +02:00
Volker Lendecke
ced409b5f7 Fix "make test" -- gna...
(This used to be commit c1d3ae80b5)
2008-09-12 22:29:56 +02:00
Volker Lendecke
d892b1c886 remove a pointless empty line
(This used to be commit fba250ece4)
2008-09-12 21:42:34 +02:00
Volker Lendecke
f8f1679bc4 Add a paranoia check on incoming PDUs
(This used to be commit 8b81b85200)
2008-09-12 21:42:34 +02:00
Günther Deschner
893f787314 doserr: add WERR_NO_SUCH_ALIAS.
Guenther
(This used to be commit e065802a61)
2008-09-12 14:10:26 +02:00
Volker Lendecke
9c28ca2b6c fix nonempty blank lines
(This used to be commit 3111428dd4)
2008-09-12 12:23:30 +02:00
Jeremy Allison
65ae60489d Fix bug #5751 cannot show ACLs on DFS reported by SATOH Fumiyasu <fumiyas@osstech.co.jp>.
Fix for smbclient and libsmbclient.
Jeremy.
(This used to be commit dbd5d6b145)
2008-09-11 16:20:59 -07:00
Jeremy Allison
3978317af0 Fix blocker bug 5745 kerberos authentication with (lib)smbclient is broken.
Jeremy.
(This used to be commit a59bd0e485)
2008-09-10 10:18:02 -07:00
Volker Lendecke
40b93006c1 Fix some bogus compiler warnings
(This used to be commit 84ed752d9f)
2008-09-10 11:57:10 +02:00
Volker Lendecke
a1d0f59f46 Fix make test on sparc and possibly also on AIX
(This used to be commit 5721205bff)
2008-09-09 22:23:05 +02:00
Volker Lendecke
7965249bd6 Convert cli_query_secdesc to the async trans call
(This used to be commit ab41017896)
2008-09-09 17:37:34 +02:00
Volker Lendecke
bb2a7183b9 Convert cli_qfileinfo to the async trans call
(This used to be commit ddc5e77b61)
2008-09-09 17:37:34 +02:00
Volker Lendecke
c81b5fd440 Add async trans/trans2/nttrans calls to libsmb
Logic stolen from Samba4, naturally the specific implementation differs a bit.
(This used to be commit 4b8bc5b03d)
2008-09-09 17:37:34 +02:00
Volker Lendecke
2a93452994 Move setting the mid field in req->outbuf from _cork to _uncork
The async trans calls need this, as for secondary trans calls they have to
modify the MID from what cli_request_chain() gave us.
(This used to be commit c85de4b7b5)
2008-09-09 17:37:34 +02:00
Volker Lendecke
6ba8c105c5 Add utility function cli_in_chain()
This gives a hint whether a function is called from within the middle of a
chain. In particular the trans calls don't really like this.
(This used to be commit 4252b32db5)
2008-09-09 17:37:34 +02:00
Volker Lendecke
6344b8ec27 make smb_bytes_push_str public
(This used to be commit d611f599b4)
2008-09-09 17:37:34 +02:00
Volker Lendecke
7fafa9756a Fix a memleak in cli_qfilename (only used in smbtorture)
(This used to be commit 7e0cca19fe)
2008-09-09 09:54:36 +02:00
Volker Lendecke
60255c3b2e Protect against a closed socket
(This used to be commit d6cb5fdafb)
2008-09-05 12:33:48 +02:00
Volker Lendecke
f912ac962a Do proper error handling if the socket is closed
(This used to be commit e5a27773f9)
2008-09-05 12:33:48 +02:00
Steven Danneman
304554115a Cleanup of DC enumeration in get_dcs()
This is a fix for a few small inefficiencies/bugs in the get_dcs() path.

* because the third add_one_dc_unique() loop was outside the ADS check all DCs
  returned from the non-sitename lookup were being tacked onto the dc_name_ip
  list twice.
* add_one_dc_unique() now checks if the given IP address already exists before
  adding it to the list, making the returned list actually unique
* added more thorough doxygen comment headers
(This used to be commit cb2d488e1d)
2008-09-04 11:50:25 -07:00
Günther Deschner
087a992b97 doserr: add WERR_WRONG_PASSWORD.
Guenther
(This used to be commit 977fec76b7)
2008-09-02 00:46:10 +02:00
Volker Lendecke
767130ebec Fix some nonempty blank lines
(This used to be commit 9336cd1c5e)
2008-09-01 23:32:42 +02:00
Volker Lendecke
cad04676ca Fix typo
(This used to be commit 544d1fd19a)
2008-09-01 23:31:42 +02:00
Volker Lendecke
06dd647fe0 Remove a duplicate retval check
Jeremy, please check!
(This used to be commit 6579005e64)
2008-08-31 11:45:12 +02:00
Günther Deschner
bff20e14c3 kerberos: use KRB5_KT_KEY macro where appropriate.
Guenther
(This used to be commit a042dffd71)
2008-08-29 11:01:34 +02:00
Günther Deschner
0380fe9d82 kerberos: move the KRB5_KEY* macros to header file.
Guenther
(This used to be commit c28fa17fff)
2008-08-29 10:59:28 +02:00
Volker Lendecke
f294f51bf0 Remove cli_request_get()
req->private_data==NULL at this point is definitely a bug.
(This used to be commit ce3dc9f616)
2008-08-28 18:22:49 +02:00
Volker Lendecke
228a12681b Add async smbecho client support
(This used to be commit c1d645fbe3)
2008-08-28 18:16:00 +02:00
Volker Lendecke
bb0fc9cfce Add cli_request->recv_helper
Necessary for requests with multiple replies
(This used to be commit cb2e338eb3)
2008-08-28 18:15:59 +02:00
Volker Lendecke
b054f14111 Activate code to enable chained requests
Add the CHAIN1 torture test
(This used to be commit 82992d74a9)
2008-08-28 18:15:59 +02:00
Volker Lendecke
65dcdf9c32 This adds the code to allow chained requests in libsmb/
This is not compiled yet, but it makes the patches much easier to read if it is
add in bulk.
(This used to be commit b4c539ba04)
2008-08-28 18:15:58 +02:00
Volker Lendecke
77d1b29e25 Move "struct cli_request" from client.h to async_smb.h
Also add some comments
(This used to be commit 2ecc311f78)
2008-08-28 17:53:37 +02:00
Volker Lendecke
128524930d Add cli_pull_reply
Along the lines of cli_request_send this abstracts away the smb-level buffer
handling when parsing replies we got from the server.
(This used to be commit 253134d3aa)
2008-08-28 17:53:37 +02:00
Volker Lendecke
2650207d4a Remove cli->event_ctx, pass it explicitly
Storing the event_context as permanent state in struct cli_state creates more
complex code than necessary IMO.
(This used to be commit debb37f703)
2008-08-28 17:53:37 +02:00
Volker Lendecke
de9fcfc795 Add async open&x
(This used to be commit faf353edd6)
2008-08-28 17:53:36 +02:00
Volker Lendecke
8f408a676e Add async cli_close
(This used to be commit f84a2b5dbf)
2008-08-28 17:53:36 +02:00
Volker Lendecke
58aa97c0d9 Refactoring: Add the routine cli_request_send()
cli_request_send() is supposed to bundle all generic SMB-header handling. This
makes cli_request_new static to async_smb.c.
(This used to be commit 7e73dd4e76)
2008-08-28 17:53:36 +02:00
Ephi Dror
1d26beb708 Correct the netsamlogon_clear_cached_user function.
(This used to be commit bb13312d9d)
2008-08-27 17:28:34 -07:00
Volker Lendecke
1924e7931c Revert "Protect against short read&x replies"
This reverts commit 4ed73cbbbe.

... how did this end up here??

Volker
(This used to be commit 7dd9fd0956)
2008-08-23 15:41:00 +02:00
Volker Lendecke
56cd17dfe1 Protect against short read&x replies
(This used to be commit 4ed73cbbbe)
2008-08-23 15:12:39 +02:00
Günther Deschner
b67adb49ec Fix Bug #5710 and make machine account password changing work again.
When we negotiated NETLOGON_NEG_PASSWORD_SET2 we need to use
NetrServerPasswordSet2 to change the machine password.

Tested with NT4, W2k, W2k3 and W2k8.

Guenther
(This used to be commit 5820360451)
2008-08-21 23:45:24 +02:00
Igor Mammedov
2597c97d3a Fix length error in wrapping spnego blob
(This used to be commit 16ee95494b)
2008-08-18 09:55:11 -07:00
Jim McDonough
b48ba00dc6 Prevent NT_STATUS 0xF1000000 errors from appearing when
dos errors are used and there is no error.  It should
be mapped directly to NT_STATUS_OK.  smbclient to older
servers didn't work.
(This used to be commit 78f009b7ef)
2008-08-14 11:22:46 +02:00
Volker Lendecke
8d03db99b8 Revert "If it is a forced DOS error, nt_errstr should say so"
This reverts commit ef5489ac80.
(This used to be commit e987e9956f)
2008-08-13 18:19:06 +02:00
Volker Lendecke
870c54ebb4 If it is a forced DOS error, nt_errstr should say so
(This used to be commit ef5489ac80)
2008-08-13 17:50:24 +02:00
Jeremy Allison
03991ab073 Fix bug 5686 - libsmbclient segfaults with more than one SMBCCTX.
Here is a patch to allow many subsystems to be re-initialized. The only
functional change I made was to remove the null context tracking, as the memory
allocated here is designed to be left for the complete lifetime of the program.
Freeing this early (when all smb contexts are destroyed) could crash other
users of talloc.
Jeremy.
(This used to be commit 8c630efd25)
2008-08-12 13:35:15 -07:00
Günther Deschner
050db35262 doserr: add WERR_MEMBER_IN_ALIAS.
Guenther
(This used to be commit b62de0d194)
2008-08-11 19:04:00 +02:00
Günther Deschner
c7257754cd fix build warning.
Guenther
(This used to be commit 85021d6a45)
2008-08-11 15:43:52 +02:00
Jeremy Allison
3acde0d747 One more build fix. Ensure we have KRB5_AUTH_CONTEXT_USE_SUBKEY defined before we compile the new code.
Jeremy.
(This used to be commit 7686752c5b)
2008-08-08 16:08:11 -07:00
Jeremy Allison
6d99eedafc Try and fix the build for systems that don't have krb5_auth_con_set_req_cksumtype().
Jeremy.
(This used to be commit 8598e7b06e)
2008-08-08 15:15:36 -07:00
Jeremy Allison
e8c7ff3e88 Add Derrick Schommer's <dschommer@F5.com> kerberos delegation patch. Some
work by me and advice by Love.
Jeremy.
(This used to be commit ecc3838e4c)
2008-08-08 14:32:15 -07:00
Jeremy Allison
617bf10c66 Fix bug #5675 with a varient of Tim Waugh's patch,
as proposed by James Peach.
Jeremy.
(This used to be commit 5c27ad7583)
2008-08-07 17:55:57 -07:00
Stefan Metzmacher
70c2a5b02e clikrb5: don't use krb5_keyblock_init() when no salt is specified
If the caller wants to create a key with no salt we should
not use krb5_keyblock_init() (only used when using heimdal)
because it does sanity checks on the key length.

metze
(This used to be commit c83de77b75)
2008-08-04 13:52:18 +02:00
Volker Lendecke
711efc06c8 cli_request_new() already gave use the req, remove a pointless function call
(This used to be commit 08e97bd369)
2008-08-01 20:46:10 +02:00
Volker Lendecke
bf622cb876 Fix a typo
(This used to be commit 37bd2815c7)
2008-08-01 20:46:00 +02:00
Volker Lendecke
45934af498 Remove one reference to PI_LSARPC
(This used to be commit 40247e8d3d)
2008-07-21 14:36:30 +02:00
Volker Lendecke
e0be03d8d5 Refactoring: Change calling conventions for cli_rpc_pipe_open_ntlmssp
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit a13f059955)
2008-07-20 17:37:11 +02:00
Volker Lendecke
1335da2a7c Refactoring: Change calling conventions for cli_rpc_pipe_open_noauth
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 9abc9dc4dc)
2008-07-20 17:37:11 +02:00
Andreas Schneider
c400d0a0af Use the macro to call samba_version_string().
Signed-off-by: Andreas Schneider <anschneider@suse.de>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit d2682295f5)
2008-07-17 14:16:33 +02:00
Derrell Lipman
cd90c85bab The compatibility function also should have a const buffer pointer
(This used to be commit b731447ec5)
2008-07-16 10:45:09 -04:00
Andreas Schneider
43892abff6 The buf in the smbclient write function should be const.
As we try to provide POSIX function, we should use const like all other
POSIX function.

Signed-off-by: Andreas Schneider <anschneider@suse.de>
Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
(This used to be commit 36e5df5954)
2008-07-16 10:41:43 -04:00
Derrell Lipman
db7bff1bab Merge branch 'v3-3-test' of ssh://git.samba.org/data/git/samba into v3-3-test
(This used to be commit 11d74fc51c)
2008-07-16 09:48:23 -04:00
Derrell Lipman
a49f6f17c6 Fix typos.
libsmbclient doesn't have bool defined; rather it uses smbc_bool

Derrell
(This used to be commit e1ade80f46)
2008-07-16 09:45:02 -04:00
Andreas Schneider
525a3f3c49 Release still reachable memory if the smbclient context is freed.
Signed-off-by: Andreas Schneider <anschneider@suse.de>
(This used to be commit 7a65053bc8)
2008-07-15 17:13:17 -07:00