| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Karolin
(cherry picked from commit c572b19ffcff201f9b8ad0af3bf5434dfe5d06bf)
|
|
|
|
|
| |
Karolin
(cherry picked from commit 887420a30dbb178f29ee9313f2c19dd1b3c3c5e9)
|
|
|
|
|
|
|
| |
A release a day... ;-)
Karolin
(cherry picked from commit c9bee29bed290777a4ab32ffe2ed88029a3a6348)
|
|
|
|
|
| |
Jeremy.
(cherry picked from commit 3797ddb3acc713cc200114e9e27dfb3901e5cdf1)
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch makes sure the original and temporary TDBs are closed
_before_ the rename. Originally, the open TDB was renamed, and so
the name passdb.tdb.tmp stayed around in the db context. Hence
upon client connect, the smbd children died because reinit_after_fork()
calling tdb_reopen_all() would try to reopen passdb.tdb.tmp which
existed no longer...
Michael
(cherry picked from commit 1ab40fbca806f1136dd1d65edd688beb5ec592c7)
|
|
|
|
|
| |
Karolin
(cherry picked from commit b3e838884350e4da19660f0c1078aabd8e55536b)
|
|
|
|
|
| |
Karolin
(cherry picked from commit d999a7e99804bf71f62c905452a720c20016f8e9)
|
|
|
|
|
| |
Karolin
(cherry picked from commit bee6e86c71278563d52f9bde19ffb4bda2a35d1b)
|
|
|
|
|
|
|
| |
if "hide dot files" is set. Thanks to Barry Kelly <bkelly.ie@gmail.com>
for pointing this one out.
Jeremy.
(cherry picked from commit 5bdc16a867b9c14682b327c79f79834edcd6842d)
|
|
|
|
|
| |
Karolin
(cherry picked from commit e7634cd0c17d0fa4dcca5952313b6af750477dec)
|
|
|
|
|
|
|
|
| |
3 but using a different hash calculation than 3.2.x passwd
databases (also version 3). Introduces a minor version
number.
Jeremy.
(cherry picked from commit 10b518592e616ecfaadd829ecd0674a04510b422)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed.
It turns out there were a number of places where cli_resolve_path() was called
and the error path upon that function failing did not set errno. There were a
couple of places the failure handling code did set errno to ENOENT, so I made
them all consistent, although I think better errno choices for this condition
exist, e.g. EHOSTUNREACH.
Derrell
(cherry picked from commit f4e68b09a6ba30d968bccfad8bf6b67b4456b111)
|
|
|
|
|
|
|
|
|
|
|
| |
correctly. For the clustering case.
Clustered setups should have only ever used
the unsigned version of TDB_DATA in the
first place so they can't be in this mess :-).
Just do the normal upgrade in the clustered case.
Jeremy.
(cherry picked from commit 52fe104996439db24a7e6b17baa7fec47ba230bb)
|
|
|
|
|
| |
Karolin
(cherry picked from commit 7fa853e490be446a6da2086e1749b59a8f741e09)
|
|
|
|
|
|
|
|
| |
modules shouldn't matter, so as vfs_streams_depot doesn't
implement get/setxattrs then call into the full VFS stack
at the top.
Jeremy
(cherry picked from commit a1d9b31a0c8a38dbfa94f578830d5d35695aff3b)
|
|
|
|
|
|
|
|
|
|
| |
to run elections
Fix logic bug that causes nmbd to wait 5 minutes before
looking for a master browser. This one is *old* :-). Thanks
for Simo for bugging me on this.
Jeremy.
(cherry picked from commit 857c2e4407a0f4fcee721372ffed5366bc3051f9)
|
|
|
|
|
|
| |
match_mailslot_name
(cherry picked from commit d097e3f918853cf642c4a51f6ed3a4d8c85d283e)
|
|
|
|
|
|
|
|
| |
To me "fill_share_mode_lock failed" is a "can't happen" alert. There is
however a perfectly valid case in get_file_infos() when the file is not open.
Change the corresponding debug message to level 10 and explain more.
(cherry picked from commit f73d4cf1fcfd8f9e2543a222faed133472fd890c)
|
|
|
|
|
|
|
| |
information.
Guenther
(cherry picked from commit 490ed838f2626893bb623ea6ad8d79595c8c44c4)
|
|
|
|
|
|
|
|
|
|
|
| |
fetch_database_to_ldif().
We absolutely need to avoid messing with the sync_context as that breaks the
stream of replication data coming from the DC (only replicates ~350 instead of
~4000 groups).
Guenther
(cherry picked from commit 1a1823c357fb8e01ac0e8c8749e6f5004bf3cf3e)
|
|
|
|
| |
(cherry picked from commit 4a99f2f006e6324cf38b68f0f390daf52f24b1b3)
|
|
|
|
|
|
|
|
|
|
|
| |
ntlmssp_seal_packet creates its own signature data blob, which we then
have to free.
Jeremy, please check and merge appropriately (Yes, I'm asking you to do the
janitor work, I want you to *look* at this :-))
Volker
(cherry picked from commit 525af716cd52500a4e3dccf9eeb9ea85f86be7ca)
|
|
|
|
|
|
|
|
|
| |
too.
Otherwise we'll confuse the client signing engine, when we reply an error to each transs2.
metze
(cherry picked from commit e217138a36b1ba1eff164aecfa52ba6fe8864747)
|
|
|
|
|
|
|
|
| |
A client sent a SID with authority 0 and 0 sub-authorities. W2k3 replies with
NT_STATUS_INVALID_SID, even if other SIDs in the list are valid.
Thanks to Pavel <wylda@volny.cz> for the bug report!
(cherry picked from commit bb76066e8797599e5ca75821a686e32dd0c97a74)
|
|
|
|
|
|
| |
Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 87b428e424e2e3cca975ecd0efed327e72950a1d)
(cherry picked from commit ca58d12b6513beb40c14fcab2758cf21af0179f3)
|
|
|
|
|
|
|
| |
Guenther
(cherry picked from commit 97190ae184dff6450b1390c854f7426e2ee3f980)
(cherry picked from commit 0f7757e94bfa35d22a7349d78578685c0dba22d7)
(cherry picked from commit 66faa809847ad60b8027ae86068f8d62c0d181ed)
|
|
|
|
|
|
|
| |
Guenther
(cherry picked from commit 1524abd8bf12d82e1fb0063585fc9a465fc7bf9c)
(cherry picked from commit 3517388b5d5439ffe3f9629aaf826fa1dfbb4ba7)
(cherry picked from commit 5ce5a9bea994d7db3d352d0800333d0fd0b833df)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before we send the secondary requests we need to remove the
old mid=>seqnum mapping and reset cli->mid and make the new
mid=>seqnum mapping "persistent".
The bug we had in cli_send_trans was this:
The first cli_send_smb() incremented cli->mid
and the secondary requests used the incremented mid,
but as cli->outbuf still had the correct mid,
we send the correct mid to the server. The real problem
was that the cli_send_smb() function stored the seqnum
under the wrong mid.
cli_send_nttrans() was totally broken and now follows the
same logic as cli_send_trans().
The good thing is that in practice the problem is unlikely to happen,
because max_xmit is large enough to avoid secondary requests.
metze
(cherry picked from commit 880fbc4e8cd67de73c4bcda94489eb1e1422a04b)
(cherry picked from commit 70466990b4b7c68ae95dbbcf741cd3f41f2dd0b3)
(cherry picked from commit d01cca5e3ddb925696d49a1ea728013ec1032372)
(cherry picked from commit 6c13360e195189f7afc70c5fda6ef27f46145b0b)
|
|
|
|
|
|
| |
Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 011ad7245d53a716c4c766f5ef8d317bb3a53d0f)
(cherry picked from commit 5eaa2541f19277bc00c47b944739c6732f90809b)
|
|
|
|
|
|
| |
selected (we need to path in pathname /that/look/like/this).
Jeremy.
(cherry picked from commit 0c11c2deee7ab9d281df6df91b793b7f1c1764a4)
|
|
|
|
|
|
|
| |
Looks like the pathname parsing for POSIX paths got
broken when the code for doing Windows streams parsing got added.
Jeremy.
(cherry picked from commit 985ba585207e840caa17c3d87d93ef1ba5f15cbb)
|
|
|
|
|
|
|
|
|
|
| |
correctly.
This is a really nasty one to fix as in order to successfully update the
passdb.tdb we must do the equivalent of a tdbbackup to move to the new hash
values before we do the upgrade.
Jeremy.
(cherry picked from commit b5d794d5de872bcf757c8021c103b6b3d320b8db)
|
|
|
|
|
| |
Found in "make test" -- if we can't connect at all, "cli" is uninitialized
(cherry picked from commit 8ffe7b07df753568d960155c27d57de2bd99993f)
|
|
|
|
|
| |
Thanks to François Legal <devel@thom.fr.eu.org> for reporting this bug
(cherry picked from commit e6a23d498bfd4bbe19cecf24ba3f94af83c9bf8b)
|
|
|
|
| |
(cherry picked from commit 20d378eebfcaca53f456f0fbae39d46031729de7)
|
|
|
|
|
| |
I think we eventually need to pass down the debuglevel here.
(cherry picked from commit b2f6110d3ac5d60054a7e5a1d365f0a1f67a2f42)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The change notify code registered a separate message handler for each
tree connect. This registration uses the global messaging context.
The messaging code would consider a 2nd registration for the same
messaging type as being an 'update' of the handler, rather than a new
handler. It also would only call the first handler in the linked list
for a given message type when dispatching messages.
This patch changes the messaging code to allow for multiple
registrations of the same message type, and allow for multiple calls
to different messaging handler for one incoming message.
This fixes the problem with the test_notify_tcon() test that I
recently committed to the S4 smbtorture
(cherry picked from commit 89e340e09fbdc375c0aa85506add525b8ba5dcd0)
(cherry picked from commit 733881d22f9864ea371b29d7d1817fb4af6b865c)
|
|
|
|
|
| |
This reverts commit 96c57d26ed790b3e94c935cc4faf5661ea43a80c.
(cherry picked from commit 045933cf5bf27fbb704e446cf8686f2f761a1ced)
|
|
|
|
|
|
|
| |
This reverts commit e47d2091136c4d870bb91b8a84eb9f6fd78eb971.
No idea why, but this causes timeouts in the build farm all over the place
(cherry picked from commit 0cf74151286238890ae0da0863e3a5807f4f3d81)
|
|
|
|
|
| |
(cherry picked from commit 4624451b7b78695b3f84e7fff91018ee9df0e589)
(cherry picked from commit e47d2091136c4d870bb91b8a84eb9f6fd78eb971)
|
|
|
|
|
|
|
|
|
|
|
| |
libreplace always provides the getifaddr() function.
This fixes the build on sles8.
metze
(cherry picked from commit 1410490fe769bc79f98b4ab364685c7aed253e09)
(cherry picked from commit bac96af2053996f28894458fce87e84c5c2356ff)
(cherry picked from commit 8c50d89743a8e9024d238c6613ceea35cf160aa0)
|
|
|
|
|
| |
Jeremy.
(cherry picked from commit b4d9e92dfaa84b1361cdd6e49ad88e252c8fed4d)
|
|
|
|
|
|
| |
also check for an upper one (integer wrap).
Jeremy.
(cherry picked from commit f58a6c9e08b2b44399e0333b1358522aec70bbee)
|
|
|
|
|
|
|
| |
This was my fault. I broke the smbclient tar argument processing
in creating the string for chdir when removing pstrings.
Jeremy.
(cherry picked from commit 750f9d94b0a1208d45cc117df68042e1d83044bf)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
According to [MS-RPCE].pdf, section 2.2.2.11:
----
A client or a server that (during composing of a PDU) has allocated more space
for the authentication token than the security provider fills in SHOULD fill in
the rest of the allocated space with zero octets. These zero octets are still
considered to belong to the authentication token part of the PDU.<36>
----
RPC implementations are allowed to send padding bytes at the end of an auth
footer. Windows 7 makes use of this.
Thanks to Nick Meier <nmeier@microsoft.com>
Volker
(cherry picked from commit 91e2cd86e24cead352f07cc1a6b4a8e3a364adb5)
|
|
|
|
| |
(cherry picked from commit 43ea27319933f3b49b61decde8321d9162cfd9ef)
|
|
|
|
|
|
|
| |
Karolin
(cherry picked from commit 2ab9d365cfceb28c1280566b6fe8ec3767e18149)
(cherry picked from commit aff67e24f3675ace3c69c210aa387bc008f1cbbc)
(cherry picked from commit 0a9aff0bca4c49de0f87e496f62053787777f61d)
|
|
|
|
| |
(cherry picked from commit c23dffc930cb9852bb98c2a92f0215cf73f4572d)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This fix is very subtle. If a server is configured with "security = share"
and "guest ok = yes" and winbindd is running authorization will fail during
tree connect.
This is due to our inability to map the guest sid S-1-5-21-X-501 to a uid
through sid_to_uid(). Winbindd is unaware of the hard coded mapping
between this sid and whatever uid the name in lp_guestaccount() is assigned.
So sid_to_uid() fails and we exit create_token_from_username() without
ever calling pdb_getsampwsid() which IS aware of the hard coded mapping.
This patch just reorganizes the code, moving sid_to_uid() down to the
block of code in which it is needed, avoiding this early failure.
(cherry picked from commit 671812696217fe1337562b661d5131be79797f1c)
|
|
|
|
|
|
|
|
|
|
| |
failure if we have a pending modtime and the containing directory
of the file has been renamed (there is no POSIX "update time by
fd" call). This can't happen on Windows as the rename will fail
if there are open files beneath it. Will add a torture test
for this.
Jeremy.
(cherry picked from commit 5fb3b5e903c08013074ba473399ddee30f6c328f)
|