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

4189 Commits

Author SHA1 Message Date
Jeremy Allison
7752494cf1 Fix up the comments on security=share to explain we're
ignoring passwords.
Jeremy.
(This used to be commit e7b6ea46532a26611dfd9d9e2727d52ba6a9cf50)
2008-03-27 16:08:39 -07:00
Michael Adam
3c213a1f8d posix_acls: clarify loop condition code, removing unneeded counter variable.
Coverity ID 545 falsely classified this as a NULL dereferencing bug.
By putting the loop of walking the list of aces more naturely not using
additional counters, it becomes much more obvious that it is not entered
when dir_ace == NULL.

The same modifications are done for the file_ace loop.

Michael
(This used to be commit 6dab6cf0647d7db01e5e472f8b5cf21395b7dbf0)
2008-03-27 10:09:24 +01:00
Eric Cronin
2c5c3a0ba9 Missing HAVE_UPDWTMPX check before using updwtmpx().
In 10.5 Mac OS X added enough utmpx support to make it past the
first two preprocessor checks around line 390 of src/smbd/utmp.c
and on to the utmpx block which uses updwtmpx().  Unfortunately,
as ./configure correctly surmised, 10.5 doesn't have that.

https://bugzilla.samba.org/show_bug.cgi?id=5184
(This used to be commit f19d1e3d93d0d9dfe80372c6c5635f1047f9aa88)
2008-03-24 12:33:04 -07:00
Michael Adam
be2fab1fef smbd: fix session setup with security = share.
Broken by pstring removal in 9ed12bfc48fe7f9b1863a9dd88e881974083053c.
Jeremy, please check.

Thanks to Yannick Bergeron <yaberger@ca.ibm.com> for noting this.

Michael
(This used to be commit 008c4bdbe5de064b4469fc1f7c7173290f35b3ef)
2008-03-20 17:00:36 +01:00
root
3d2ec80693 Port 3c1f1f0797e from 3-0-ctdb
We need to inform ctdb about the client's TCP connection so that after a fail
over ctdbd can trigger the client to reconnect very quickly
(This used to be commit ddc989886deff173b8a2a2a753a896770efe7545)
2008-03-20 16:54:05 +01:00
Andrew Tridgell
f152fe2103 [samba-3-0-ctdb.tridge @ tridge@samba.org-20070602053809-kpw5kjkcyjs8yjbl]
suppress that darn message
(cherry picked from commit 542e46a21898f6fcc8a0aeb63925607a60e0b99f)
(This used to be commit 5e8c624c9c9775f255632717e6898d5f190ba51b)
2008-03-18 17:12:08 +01:00
Volker Lendecke
c5356479c1 Some simplifications
(This used to be commit b59b436997fba47afd02ffb6f1194dfaef229d44)
2008-03-17 21:10:16 +01:00
Marc VanHeyningen
e06aa46b9f Coverity fixes
(This used to be commit 3fc85d22590550f0539215d020e4411bf5b14363)
2008-03-17 20:52:25 +01:00
Michael Adam
6476313b6d Add a debug message.
Michael
(This used to be commit a39807044879ad9df7614e010db6ea16b51000a0)
2008-03-12 02:12:34 +01:00
Jeremy Allison
7d2c9c67fd Using Metze's S4 nttrans rename test, the nttrans rename
behaves the same as the trans2 one.
Jeremy.
(This used to be commit c4fa4917dad97c5047f7336c6675739b44da256b)
2008-03-11 15:26:02 -07:00
Jeremy Allison
792c972538 Metze pointed out this we don't need FILE_ATTRIBUTE_READ here.
Jeremy.
(This used to be commit 923aa9f330cb370221af6b66cf0f237a9bd06f8e)
2008-03-11 13:59:04 -07:00
Jeremy Allison
b7a014a6ee Allow us to pass RAW-RENAME by testing that the connection struct
connection paths are equal, not just the conn structs themselves.
Jeremy.
(This used to be commit 632f3fe66fbcbe3cc25d070c3885177264f5ad65)
2008-03-11 13:38:25 -07:00
Jeremy Allison
bac7b5b19e Try and fix bug #5315, as well as S4 torture tests RAW-OPLOCK BATCH19,
BATCH20 and RAW-RENAME.
Jeremy.
(This used to be commit 9065792d4bc42522f12f9732de3c0ad82c72a2d3)
2008-03-11 13:27:33 -07:00
Jeremy Allison
380fcfa600 Fix S3 to pass the test_raw_oplock_exclusive3 test.
Jeremy.
(This used to be commit 028302fac53083d66c969b876db1d831e53b8e35)
2008-03-11 12:37:01 -07:00
Michael Adam
67536eddc3 registry shares: prevent creating regular share called "global".
This is a first quick fix.
Registry shares should be rewritten to use libnet_conf.

Michael
(This used to be commit 71bd0bd0ea018e8c5033bbf904333c596330855a)
2008-03-11 11:15:50 +01:00
Volker Lendecke
d634ab06b3 Convert secrets_lock_trust_account_password to talloc
This is preparing the conversion of secrets.c to ctdb
(This used to be commit 1307f0130c47b8d740d2b7afe7a5d8d1a655e2a2)
2008-03-10 21:08:45 +01:00
Volker Lendecke
6a2dbea794 Fix some typos
(This used to be commit cfa1b838144800c0758969921b8904fd62e46c07)
2008-03-08 12:31:21 +01:00
Günther Deschner
23cd8e5ea7 Be more verbose why create local token has failed during
NTLMSSP and Kerberos session setup

Guenther
(This used to be commit 18b8c2c19e50aee8fc900c7507244cb95014a4fa)
2008-03-06 12:27:11 +01:00
Volker Lendecke
43491db17c Fix inotify detection
Bug 5271 -- thanks to Tiziano Müller
(This used to be commit 4a1a138b0fe0f2200e5a37a0609481e4340a896c)
2008-02-25 12:58:56 +01:00
Volker Lendecke
fcee8fee63 Allow "max mux" async i/o requests
In the negprot reply, we allowed the client to issued "max mux" concurrent
requests. The OS might allow less, for example AFAIK AIX has a configurable
limit of concurrent AIO requests. We will fall back to sync operation for the
requests that are too many when aio_read/aio_write return an error.

Jeremy, please check!
(This used to be commit 8f86f7f25c4eb71bbdfcc6bf2d12eaaae9a8d9ec)
2008-02-24 11:39:59 +01:00
Volker Lendecke
21b6a03678 Export aio_request_done()
This is for external modules implementing the Posix AIO API that not
necessarily depend on the signal mechanism to indicate completion.
(This used to be commit 9a069d306bb6f8a2cd51b8ba87b433884942d13f)
2008-02-24 11:39:57 +01:00
Volker Lendecke
db9db9cef9 AIO on streams does not work (yet...)
(This used to be commit 1ba223f202a070a695581e0d7161473a3ebf4332)
2008-02-24 00:05:40 +01:00
Jeremy Allison
6cdd527fed Fix debug messages.
Jeremy.
(This used to be commit d265cedb55b07c6b8a13b9632fbdf8a05fbba886)
2008-02-22 16:12:57 -08:00
Volker Lendecke
14aa57a9e3 Don't use fname after create_file has been called
create_file calls unix_convert internally, so modifies fname. So we can't use
"fname" after create_file has returned. Use fsp->fsp_name instead.

Found during a lengthy debugging session with Karolin testing the xattr_tdb
module...
(This used to be commit 183fe570469963923864b732817a87f8660341ed)
2008-02-22 17:15:09 +01:00
Volker Lendecke
4c4c1bfb79 Update position information also for AIO
Necessary to survive RAW-SEEK with AIO enabled.

Jeremy, please check!
(This used to be commit e2ca12c2345c0e3916dd09d097b2ba1ce2989fa8)
2008-02-19 16:19:49 +01:00
Volker Lendecke
e12cd305dd Inform level II oplock holders when we write using AIO
Jeremy, please check!
(This used to be commit 81d823e026fb332a88b6e1f15030fe49719f2522)
2008-02-19 16:19:49 +01:00
Tim Potter
a8fbb92146 Check return code of secrets_init() function.
(This used to be commit 2b1eead269e95142576d0c8c259874324ba83502)
2008-02-18 10:15:44 +01:00
Günther Deschner
65fc3ae070 Use new structs in reply_spnego_kerberos().
Guenther
(This used to be commit c55160f8e866d9b24a4dad234af78ae46c236a37)
2008-02-17 02:11:59 +01:00
Jeremy Allison
4754c2bafe Correctly use SPNEGO to negotiate down from krb5 to NTLMSSP.
Previously we didn't implement the 'NEGO' part of SPNEGO :-).
Jeremy.
(This used to be commit 8767a0dab95c544878b4187157e494e740974bb8)
2008-02-14 18:10:50 -08:00
Jeremy Allison
81d6133b03 Currently we don't SPNEGO negotiate back to NTLMSSP. Note this.
Jeremy.
(This used to be commit 8cd04b948bfba3896d40c9e314a197f60ad76833)
2008-02-14 18:07:27 -08:00
Jeremy Allison
0a89940df5 Ensure invalidate_vuid() deletes any ntlmssp state.
Jeremy.
(This used to be commit b41799c351c72b268ef094047a51766747671280)
2008-02-14 18:06:16 -08:00
Stefan Metzmacher
de48cd925a smbd: use make usage of wbcDomainInfo()
metze
(This used to be commit 9d6b43ea106df188b51060a8055fe5168220c314)
2008-02-11 18:14:15 +01:00
Karolin Seeger
2a6a2288c5 Fix some typos.
Karolin
(This used to be commit 2bec0a1fb7857e6fb8ec15e5f597b2d4125f105b)
2008-02-08 10:05:32 +01:00
Jeremy Allison
a33236f4aa Make operator precedence very clear.
Jeremy.
(This used to be commit 4f125110cfe25b499eb628b5b08fdb610a5d972c)
2008-02-06 10:31:22 -08:00
Alexander Bokovoy
a4436154b8 Change the file time before we change the file mode.
This doesn't matter for most applications, but for offline files it matters as it allows you to set
files offline from windows clients even with HSM systems that refuse to offline newly created files.
Merge from Tridge's v3-0-ctdb tree.
(This used to be commit 7da6c675440b0253ab37ee6097f769a2e45c7b7b)
2008-02-06 09:10:50 +03:00
Alexander Bokovoy
1ae0f2d02e Allow actual call to set file offline
Dos mode calculation was masking out FILE_ATTRIBUTE_OFFLINE so that code to set file offline
was never called before. Merge from Tridge's v3-0-ctdb git tree.
(This used to be commit 9827d5ff416479408b19a8964c2321ea2517aa74)
2008-02-06 09:09:23 +03:00
Alexander Bokovoy
d022ed3eec Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into dmapi-integration
(This used to be commit f59d3786abcc53065c838a2fa82ec2f4b577b16f)
2008-02-06 08:58:20 +03:00
Jeremy Allison
47666c93a7 Fix a couple of "might be used uninitialized" warnings.
Jeremy.
(This used to be commit b3ac8073a23afbba19d045302aa0700197c58bd5)
2008-02-05 13:36:17 -08:00
Karolin Seeger
55af880341 Fix typo.
Karolin
(This used to be commit 3745e398b1cc4d1b76a7cb4ee9c998ff16b454b9)
2008-02-05 16:22:59 +01:00
Volker Lendecke
b361956942 str_list_free is not needed anymore
(This used to be commit feddc1447d585fd108d22a36bccc576fa81197ef)
2008-02-04 21:05:41 +01:00
Volker Lendecke
2762b9a975 Always pass a TALLOC_CTX to str_list_make and str_list_copy
(This used to be commit e2c9fc4cf5f0ff725330fa44f53782db65fca37e)
2008-02-04 20:57:49 +01:00
Volker Lendecke
e8f1edb9cd Remove smb_read_error global
YESS :-)
(This used to be commit 26771bdca0e6837db267f4db7907e489acd92fc6)
2008-02-02 11:03:23 +01:00
Volker Lendecke
9e5a5d49de Remove dependency on get_srv_read_error() from main loop
(This used to be commit fad87968921eca0b5144760c412c5f599f9066f3)
2008-02-02 11:03:23 +01:00
Volker Lendecke
eaf7621c51 Convert receive_message_or_smb to NTSTATUS
(This used to be commit 0f7d360a01baf02e251846118cb36e6a1cdcbeb9)
2008-02-02 11:03:23 +01:00
Volker Lendecke
b42a5d68a3 Convert read_data() to NTSTATUS
(This used to be commit af40b71023f8c4a2133d996ea698c72b97624043)
2008-02-02 11:03:23 +01:00
Volker Lendecke
21e7344d2f Make get_srv_read_error static to process.c
(This used to be commit 9e2947039ef70cab8bbd6027182d9c721eac3194)
2008-02-02 11:03:23 +01:00
Volker Lendecke
88c27f83d4 Convert receive_smb_raw to NTSTATUS
(This used to be commit ba771bd858602452a9e58c3aab1336f2ac8a25ef)
2008-02-02 11:03:23 +01:00
Volker Lendecke
6ddfa6ae77 read_socket_with_timeout_ntstatus->read_socket_with_timeout
(This used to be commit 90554799afa42855c3e7b87dc632e67f0952f988)
2008-02-02 11:03:22 +01:00
Volker Lendecke
5e43eeb1b6 Get rid of read_socket_with_timeout
(This used to be commit f9c8ac83ff42137d2101d3bb17e5dcc3c3d70a8f)
2008-02-02 11:03:22 +01:00
Volker Lendecke
e514cd0af5 Convert receive_smb_talloc to NTSTATUS
(This used to be commit ddbdd11a49fba9ec4834807dec385cdf3120ce00)
2008-02-02 11:03:22 +01:00