summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* WHATSNEW: Rewording.samba-3.2.10Karolin Seeger2009-04-011-4/+4
| | | | | Karolin (cherry picked from commit c572b19ffcff201f9b8ad0af3bf5434dfe5d06bf)
* VERSION: Raise version number up to 3.2.10.Karolin Seeger2009-04-011-1/+1
| | | | | Karolin (cherry picked from commit 887420a30dbb178f29ee9313f2c19dd1b3c3c5e9)
* WHATSNEW: Prepare WHATSNEW for 3.2.10.Karolin Seeger2009-04-011-161/+11
| | | | | | | A release a day... ;-) Karolin (cherry picked from commit c9bee29bed290777a4ab32ffe2ed88029a3a6348)
* Tidy up some convert_string_internal error cases, found by Andrew Bartlett.Jeremy Allison2009-04-011-6/+19
| | | | | Jeremy. (cherry picked from commit 3797ddb3acc713cc200114e9e27dfb3901e5cdf1)
* s3: fix the fix for bug #6195 - dont let smbd child processes panicMichael Adam2009-04-011-2/+16
| | | | | | | | | | | | 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)
* WHATSNEW: Fix announcement.Karolin Seeger2009-03-311-4/+0
| | | | | Karolin (cherry picked from commit b3e838884350e4da19660f0c1078aabd8e55536b)
* VERSION: Raise version number up to 3.2.9.samba-3.2.9Karolin Seeger2009-03-311-1/+1
| | | | | Karolin (cherry picked from commit d999a7e99804bf71f62c905452a720c20016f8e9)
* WHATSNEW: Update changes.Karolin Seeger2009-03-311-0/+1
| | | | | Karolin (cherry picked from commit bee6e86c71278563d52f9bde19ffb4bda2a35d1b)
* Ensure files starting with multiple dots are hiddenJeremy Allison2009-03-311-4/+8
| | | | | | | 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)
* WHATSNEW: Update changes.Karolin Seeger2009-03-301-0/+5
| | | | | Karolin (cherry picked from commit e7634cd0c17d0fa4dcca5952313b6af750477dec)
* Fix the problem of 3.0.x passdb databases being versionJeremy Allison2009-03-301-5/+43
| | | | | | | | 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)
* [Bug 6228] SMBC_open_ctx failure due to path resolve failure doesn't set errnoDerrell Lipman2009-03-303-1/+15
| | | | | | | | | | | | | 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)
* Fix bug #6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb ↵Jeremy Allison2009-03-303-1/+31
| | | | | | | | | | | 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)
* WHATSNEW: Update changes since 3.2.8.Karolin Seeger2009-03-271-127/+116
| | | | | Karolin (cherry picked from commit 7fa853e490be446a6da2086e1749b59a8f741e09)
* Try and fix the build farm RAW-STREAMS errors. Ordering ofJeremy Allison2009-03-271-2/+2
| | | | | | | | 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)
* Fix bug #6224 - nmbd waits 5 minutes at startup before checking if it needs ↵Jeremy Allison2009-03-271-3/+0
| | | | | | | | | | 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)
* s3: parse_packet can return NULL which is then dereferenced in ↵Tim Prouty2009-03-271-0/+4
| | | | | | match_mailslot_name (cherry picked from commit d097e3f918853cf642c4a51f6ed3a4d8c85d283e)
* Fix a scary "fill_share_mode_lock failed" messageVolker Lendecke2009-03-271-1/+2
| | | | | | | | 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)
* s3-net: Fix Bug #6102. NetQueryDisplayInformation could return wrong ↵Günther Deschner2009-03-271-6/+12
| | | | | | | information. Guenther (cherry picked from commit 490ed838f2626893bb623ea6ad8d79595c8c44c4)
* s3-net: Fix Bug #6193: avoid messing with sync_context in ↵Günther Deschner2009-03-271-3/+0
| | | | | | | | | | | 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)
* winbind_pam: fix gcc 4.4 compile warningVolker Lendecke2009-03-271-1/+1
| | | | (cherry picked from commit 4a99f2f006e6324cf38b68f0f390daf52f24b1b3)
* Fix two memleaks in the encryption codeVolker Lendecke2009-03-271-1/+2
| | | | | | | | | | | 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)
* s3:smbd: if we allow trans2 on the IPC$ share, then we have to allow transs2 ↵Stefan Metzmacher2009-03-271-1/+1
| | | | | | | | | too. Otherwise we'll confuse the client signing engine, when we reply an error to each transs2. metze (cherry picked from commit e217138a36b1ba1eff164aecfa52ba6fe8864747)
* Fix bug 6097Volker Lendecke2009-03-272-1/+5
| | | | | | | | 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)
* s3:dsgetdcname: use parentheses in if condition to make negation clearBjörn Jacke2009-03-271-1/+1
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 87b428e424e2e3cca975ecd0efed327e72950a1d) (cherry picked from commit ca58d12b6513beb40c14fcab2758cf21af0179f3)
* s3-krb5: Fix Coverity #762 (REVERSE_INULL).Günther Deschner2009-03-271-6/+6
| | | | | | | Guenther (cherry picked from commit 97190ae184dff6450b1390c854f7426e2ee3f980) (cherry picked from commit 0f7757e94bfa35d22a7349d78578685c0dba22d7) (cherry picked from commit 66faa809847ad60b8027ae86068f8d62c0d181ed)
* s3-krb5: Fix Coverity #722 (RESOURCE_LEAK).Günther Deschner2009-03-271-12/+18
| | | | | | | Guenther (cherry picked from commit 1524abd8bf12d82e1fb0063585fc9a465fc7bf9c) (cherry picked from commit 3517388b5d5439ffe3f9629aaf826fa1dfbb4ba7) (cherry picked from commit 5ce5a9bea994d7db3d352d0800333d0fd0b833df)
* s3:libsmb: fix smb signing for fragmented trans/trans2/nttrans requestsStefan Metzmacher2009-03-271-23/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* fix build on old Heimdal based systemsBjörn Jacke2009-03-271-5/+3
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 011ad7245d53a716c4c766f5ef8d317bb3a53d0f) (cherry picked from commit 5eaa2541f19277bc00c47b944739c6732f90809b)
* Allow DFS client paths to work when POSIX pathnames have beenJeremy Allison2009-03-271-2/+12
| | | | | | selected (we need to path in pathname /that/look/like/this). Jeremy. (cherry picked from commit 0c11c2deee7ab9d281df6df91b793b7f1c1764a4)
* Fix bug #6196 - Unable to serve files with colons to Linux CIFS/VFS clientJeremy Allison2009-03-271-2/+7
| | | | | | | 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)
* Fix bug 6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb ↵Jeremy Allison2009-03-272-19/+206
| | | | | | | | | | 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)
* Fix a valgrind errorVolker Lendecke2009-03-271-1/+1
| | | | | Found in "make test" -- if we can't connect at all, "cli" is uninitialized (cherry picked from commit 8ffe7b07df753568d960155c27d57de2bd99993f)
* Fix #6130: Don't crash in winbindd_rpc lookup_groupmem() on unmapped membersVolker Lendecke2009-03-271-7/+8
| | | | | Thanks to François Legal <devel@thom.fr.eu.org> for reporting this bug (cherry picked from commit e6a23d498bfd4bbe19cecf24ba3f94af83c9bf8b)
* Fix a malloc/talloc mismatch when cli_initialise() failsVolker Lendecke2009-03-271-1/+1
| | | | (cherry picked from commit 20d378eebfcaca53f456f0fbae39d46031729de7)
* Don't log NDR_PRINT_DEBUG at level 0, this always ends up in syslogVolker Lendecke2009-03-271-2/+2
| | | | | I think we eventually need to pass down the debuglevel here. (cherry picked from commit b2f6110d3ac5d60054a7e5a1d365f0a1f67a2f42)
* fixed a bug in message handling for code the change notify codeAndrew Tridgell2009-03-271-2/+16
| | | | | | | | | | | | | | | | | | | 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)
* Revert "Revert "Fix a valgrind error / segfault in dns_register_smbd()""Volker Lendecke2009-03-271-1/+2
| | | | | This reverts commit 96c57d26ed790b3e94c935cc4faf5661ea43a80c. (cherry picked from commit 045933cf5bf27fbb704e446cf8686f2f761a1ced)
* Revert "Fix a valgrind error / segfault in dns_register_smbd()"Volker Lendecke2009-03-271-2/+1
| | | | | | | This reverts commit e47d2091136c4d870bb91b8a84eb9f6fd78eb971. No idea why, but this causes timeouts in the build farm all over the place (cherry picked from commit 0cf74151286238890ae0da0863e3a5807f4f3d81)
* Fix a valgrind error / segfault in dns_register_smbd()Volker Lendecke2009-03-271-1/+2
| | | | | (cherry picked from commit 4624451b7b78695b3f84e7fff91018ee9df0e589) (cherry picked from commit e47d2091136c4d870bb91b8a84eb9f6fd78eb971)
* s3:lib: interfaces.c isn't used in the configure tests anymoreStefan Metzmacher2009-03-271-73/+1
| | | | | | | | | | | 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)
* Get the sense of the integer wrap test the right way around. Sorry.Jeremy Allison2009-03-271-1/+1
| | | | | Jeremy. (cherry picked from commit b4d9e92dfaa84b1361cdd6e49ad88e252c8fed4d)
* Now we're allowing a lower bound for auth_len, ensure weJeremy Allison2009-03-271-1/+5
| | | | | | also check for an upper one (integer wrap). Jeremy. (cherry picked from commit f58a6c9e08b2b44399e0333b1358522aec70bbee)
* Fix bug #6161 - smbclient corrupts source path in tar modeJeremy Allison2009-03-271-0/+16
| | | | | | | 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)
* Complete the fix for bug 6100Volker Lendecke2009-03-271-1/+1
| | | | | | | | | | | | | | | | | | | 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)
* Fix an uninitialized variable warningVolker Lendecke2009-03-271-1/+0
| | | | (cherry picked from commit 43ea27319933f3b49b61decde8321d9162cfd9ef)
* s3/docs: Add missing full stop.Karolin Seeger2009-03-271-1/+1
| | | | | | | Karolin (cherry picked from commit 2ab9d365cfceb28c1280566b6fe8ec3767e18149) (cherry picked from commit aff67e24f3675ace3c69c210aa387bc008f1cbbc) (cherry picked from commit 0a9aff0bca4c49de0f87e496f62053787777f61d)
* Initialize the id_map status in idmap_ldap to avoid surpriseBo Yang2009-03-271-0/+8
| | | | (cherry picked from commit c23dffc930cb9852bb98c2a92f0215cf73f4572d)
* s3: fix guest auth when winbindd is runningSteven Danneman2009-03-271-7/+7
| | | | | | | | | | | | | | | | 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)
* Fix more POSIX path lstat calls. Fix bug where close can returnJeremy Allison2009-03-271-5/+17
| | | | | | | | | | 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)