summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Improve configure.in so it can be used outside the Samba source tree.v3-6-testRichard Sharpe2011-11-251-2/+3
| | | | | | | | | Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Thu Nov 17 07:00:38 CET 2011 on sn-devel-104 (cherry picked from commit f50aa988c201c2fe78e467f1a419bedc741e1d31) Fix bug #8607 (The configure.in in examples/VFS does not easily allow building modules outside the Samba source tree).
* s3:libsmb: only align unicode pipe_name (bug #8586)Stefan Metzmacher2011-11-251-7/+11
| | | | | metze (cherry picked from commit 48bcb8c846532ccd5489ef705182fb81c5278b04)
* s3-winbind: Don't fail on users without a uid.Andreas Schneider2011-11-251-1/+18
| | | | | | | | | | | | | | | | | | | This fixes bug #8608. If you join samba with idmap_ad backend to an AD. When you try to enumerate users with 'getent passwd' and the user doesn't have a uid set, then getent is aborted cause of NT_STATUS_NONE_MAPPED. If we can't map a user we should not stop but continue enumerating users. This normally happens with the default user 'krbtgt' with idmap_ad but could also happen with other backends. Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Tue Nov 15 16:52:04 CET 2011 on sn-devel-104 (backported from commit 10b285ccc29b106f164a6c18116e237634867717) Signed-off-by: Andreas Schneider <asn@samba.org>
* lib/util/ Fix crash bug caused by gfree_debug()Andrew Bartlett2011-11-191-1/+1
| | | | | | | | | | The issue is that we should reset the debug_num_classes to 0 when we un-initialise the debug system. Andrew Bartlett (cherry picked from commit 5db0cd55d4db9cc71f32dc0097e2f014c22967bc) Fix bug #8623 (Crash when trying to browse samba printers).
* s3: allow to set TCP_NODELAYACK socket option on AIX (#8616)Björn Jacke2011-11-191-0/+3
| | | | | | | this is the AIX way to disable delayed ACKs, the same like TCP_QUICKACK on Linux this is a backport of 383a918322c1edd1977fdbce19e52e8c8e6ffac1
* s3/packaging: Fix rpm build issues on RHEL4.Karolin Seeger2011-11-191-1/+13
| | | | | | | | | | | Second part of a fix for bug #7705 (RHEL samba.spec broken - and fix). Based on patches of Jason Haar and Daniël van Eeden. Thanks a lot! Karolin Autobuild-User: Karolin Seeger <kseeger@samba.org> Autobuild-Date: Fri Nov 18 22:13:06 CET 2011 on sn-devel-104 (cherry picked from commit 1d471ee393b0a0c1f9cc4256217acabcd98a5dbf)
* s3/packaging: Fix rpm build issues on RHEL.Karolin Seeger2011-11-191-24/+5
| | | | | | | | | | | Fix bug #7705 (RHEL samba.spec broken - and fix). Based on patches of Jason Haar and Daniël van Eeden. Thanks a lot! Karolin Autobuild-User: Karolin Seeger <kseeger@samba.org> Autobuild-Date: Thu Nov 17 23:05:28 CET 2011 on sn-devel-104 (cherry picked from commit 32e825d60df26fa1d4cf5c8c7cb37ca0523847ca)
* Fix bug #8562 - talloc: double free error.Jeremy Allison2011-11-171-2/+9
| | | | | | | | Ensure we don't access an undefined pointer. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Nov 4 00:09:46 CET 2011 on sn-devel-104 (cherry picked from commit 767c54d8dd9596718579699398392ae234b40aa2)
* libcli-cldap: avoid the case local == remote == NULL (cherry picked from ↵Matthieu Patou2011-11-161-1/+5
| | | | | | | | commit 4d2d33ee09941ddb211e21788c01d886730224c2) Signed-off-by: Stefan Metzmacher <metze@samba.org> The last 2 patches address bug #8600 (cldap doesn't work over ipv6).
* libcli/cldap: make sure the local and remote address family matchesStefan Metzmacher2011-11-161-5/+25
| | | | | | | metze Signed-off-by: Matthieu Patou <mat@matws.net> (cherry picked from commit 66530e91498cfa77a9d2e3a031f8a2e1c5ee6804)
* s3:libsmb: consistently use state->size in cli_write_andx_create() (bug #5326)Stefan Metzmacher2011-11-161-1/+1
| | | | | | | | | | | | | Otherwise we may get unexpected results. This is a fix that was missing in commit 95595dd93fd04999fcf56ecaab7c29b064d021f8 (s3:libsmb: fix cli_write_and_x() against OS/2 print shares (bug #5326)) metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Nov 9 10:13:32 CET 2011 on sn-devel-104 (cherry picked from commit 4b31c4273c45faa639445614061f3da548eb8505)
* s3:libsmb: fix cli_write_and_x() against OS/2 print shares (bug #5326)Stefan Metzmacher2011-11-161-4/+15
| | | | | | | | | | | Print shares doesn't support CAP_LARGE_WRITEX, while it's negotiated by the file server part. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Nov 8 17:01:36 CET 2011 on sn-devel-104 (cherry picked from commit 95595dd93fd04999fcf56ecaab7c29b064d021f8)
* Ensure we correctly calculate reply credits over all returnedJeremy Allison2011-11-161-4/+13
| | | | | | | | | | SMB2 replies, and do as Windows does and return the total in the last SMB2 reply. Fixes an issue found by Christian M Ambach <christian.ambach@de.ibm.com> (and thanks to Christian for the initial patch this was based on). (cherry picked from commit 65566dfa8629136eaf0dc1491502dc651d1a4858) Fix bug #8614 (SMB2: not granting credits for all requests in a compound request).
* s3:smb2_flush: outbody only needs 4 bytesStefan Metzmacher2011-11-161-1/+1
| | | | | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Nov 14 10:01:30 CET 2011 on sn-devel-104 (cherry picked from commit 72cabbbe50a36986dde823f0ba60abf9052c535a) Fix bug #8579 (smb2_flush sends uninitialized memory).
* Fix bug #8561 - Password change settings not fully observed.Jeremy Allison2011-11-163-5/+36
| | | | | Based on commit 3ede4ffe969f806ba2363b62c09673c32a4ec296 in master (with a change to set the header prototype in the correct file).
* s3:smb2_server: grant credits in async interim responses (bug #8357)Stefan Metzmacher2011-11-141-1/+3
| | | | | | | | | | | | The first fix for bug #8357 intruduced a regression, so that we no longer grant credits for real async interim responses with STATUS_PENDING. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Nov 9 11:56:29 CET 2011 on sn-devel-104 (cherry picked from commit ffbd1ed2797616226a7987efd4b4dd4275c8c9d0)
* s3:smbd: don't limit the number of open dptrs for smb2 (bug #8592)Stefan Metzmacher2011-11-141-3/+12
| | | | | | | | | | | This fixes a crash bug that is triggered, when a client has more than 256 directory handles with searches. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Nov 10 14:08:14 CET 2011 on sn-devel-104 (cherry picked from commit 22ddbb50534aa73240a171732d4ac1fa884fa412)
* s3:smbd: fully construct the dptr before allocating a dnum in the bitmapStefan Metzmacher2011-11-141-27/+29
| | | | | metze (cherry picked from commit 39bb5a62977261d0926f56b792aacaa5e772ff6f)
* s3:smbd: avoid string_set() in dir.cStefan Metzmacher2011-11-141-2/+9
| | | | | | | And do some more error checks. metze (cherry picked from commit 7644547a5523b77bd49d9a5d979d5e4939153401)
* samr: filterModuleName is a lsa_String in userPwdChangeFailureInformation.Günther Deschner2011-11-142-1/+3
| | | | | | | | | | | | | | | | The entire marshalling of samr_ChangePasswordUser3 broke with c2685cdedb430ae75a94e86f34484292b4269363. Matthias, the bad effect of this change was that actually all failed password change attempts will always return NT_STATUS_OK because the last 4 bytes (the resulting status code) were not marshalled anymore. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Nov 9 00:41:13 CET 2011 on sn-devel-104 (cherry picked from commit 8a18edf1c2d553105cfcadec4d892e4e5a0fdba1) The last 2 patches address bug #8591 (samr_ChangePasswordUser3 IDL incorrect).
* s4-smbtorture: demonstrate how broken our samr_ChangePasswordUser3 ↵Günther Deschner2011-11-141-0/+32
| | | | | | | marshalling is... Guenther (cherry picked from commit bfe084bd8bbdfa0a0fa31521584f3bc142785fb8)
* s3:idmap_autorid: document allocation poolChristian Ambach2011-11-101-1/+6
| | | | | | | | | | | document the need that excessive use of local users/group might require increasing the rangesize Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Fri Oct 21 18:04:50 CEST 2011 on sn-devel-104 The last 4 patches address bug #8444 (idmap_autorid does not have allocation pool).
* s3:idmap_autorid: add an allocation range to autoridChristian Ambach2011-11-101-1/+94
| | | | | | | | | | this is needed to allocate gids for BUILTIN\Users and BUILTIN\Administrators and for local users/group that admins might want to create autorid will now allocate one range for this purpose and can so give out as many uids and gids as the configured rangesize allows
* s3:idmap_autorid: move HWM initialization into a functionChristian Ambach2011-11-101-11/+24
| | | | | we will need some more HWM soon, so move out initialization and optimize the logic using the new interface of dbwrap_fetch_uint32
* s3:idmap_autorid: use strings as parameter for range allocatorChristian Ambach2011-11-101-14/+14
| | | | | this prepares for allocation of non-domain ranges that cannot be expressed by a SID (e.g. an allocation pool)
* systemd: Fix dependencies.Andreas Schneider2011-11-092-3/+2
| | | | | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Fri Nov 4 12:36:04 CET 2011 on sn-devel-104 (cherry picked from commit 4f3e86f62398218c454b979aaad75c7d7d3d8546) The last 3 patches address bug #8575 (Add systemd files to 3.6).
* pkg: add comments to the systemd sysconfig fileDavid Disseldorp2011-11-091-5/+13
| | | | | | Autobuild-User: David Disseldorp <ddiss@samba.org> Autobuild-Date: Thu Nov 3 15:11:27 CET 2011 on sn-devel-104 (cherry picked from commit 0f61eb5e299abfa0ffe5e0dd92a40e582021a5b2)
* Add systemd service files.Andreas Schneider2011-11-094-0/+44
| | | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Fri Oct 28 11:34:27 CEST 2011 on sn-devel-104 (cherry picked from commit 7d7ba3ba40895090d9bd791f210f89c5d5d2582e)
* s3:libsmb: the workgroup in the non-extended-security negprot is not aligned ↵Stefan Metzmacher2011-11-091-4/+21
| | | | | | | | | (#8573) I've tested the fix against NT4 sp6a, W2K sp4, W2K8R2 and Win8pre0. metze (similar to commit aea76a3aaa7ea52f563e7bc8a8ed60d9651f9e34)
* s3-wafbuild: Fix inotify detection (bug 8580)Björn Baumbach2011-11-091-2/+3
| | | | | | | | | | Enable inotify if sys or kernel inotify is available. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Nov 7 16:28:38 CET 2011 on sn-devel-104 (cherry picked from commit b9e6c48678624ba5335d00906c558ea9e0086699)
* s3-build: Fix inotify detection (bug 8580)Björn Baumbach2011-11-091-2/+4
| | | | | | | Enable inotify if sys or kernel inotify is available. Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 846809853acd53a733fa6057436c6e51843d8fab)
* s3:smb2_server: FLAG_CHAINED means we always use the last session_id and tidStefan Metzmacher2011-11-094-34/+20
| | | | | | | | | Based on master commit 91648aeb6409787c7766943225f5c7a9c695aa0b. metze The last 4 patches address bug #8560 (SMB2 doesn't handle compound request headers in the same way as Windows).
* smb2_constants: add SMB2_HDR_CREDIT_CHARGEStefan Metzmacher2011-11-091-1/+2
| | | | | | | | | | | | | | SMB2_HDR_EPOCH was never used and SMB 2.10 uses it as SMB2_HDR_CREDIT_CHARGE. We keep SMB2_HDR_EPOCH as alias for now, until all callers are fixed. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Aug 30 23:49:56 CEST 2011 on sn-devel-104 (cherry picked from commit 480a031c5b9a2ffe1e03e3fcb197e526e6d69e72)
* s3:smb2_server: don't reset the tid and session id in the out hdr of ↵Stefan Metzmacher2011-11-092-15/+0
| | | | | | | | | | | compound requests Windows also leaves tid (0xFFFFFFFF) and session id (0xFFFFFFFFFFFFFFFF) as the client requested them. Based on commit 8d07d7148bf47ea14e62d39ed8a8cc4f1366810e from master. metze
* s3:smb2_server: echo the SMB2_HDR_CREDIT_CHARGE and SMB2_HDR_SIGNATURE fieldsStefan Metzmacher2011-11-091-2/+4
| | | | | | | Windows just echos back the given values by default. metze (cherry picked from commit c7d3b6b2c38711943910aebff72b0188b0c346db)
* s3:smbd increase a debug levelChristian Ambach2011-11-091-3/+4
| | | | | | logging disconnected clients with level 1 swamps the logs (This fixes Bug #8585 Disconnecting clients swamp the logs)
* Properly fix bug #8384 - Windows XP clients seem to crash smbd process every ↵Henry Wong2011-11-091-0/+1
| | | | | | | | | | once in a while. Ensure we correctly null out the referenced pointer when we decrease the ref. count. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Nov 4 21:12:13 CET 2011 on sn-devel-104 (cherry picked from commit 51c86c8e67c3b026f49136f5b6743c279cc206d2)
* examples: Fix perl path.Günther Deschner2011-11-031-1/+1
| | | | | Fix bug #8176 (wall.perl example uses /usr/loca/bin for pat to perl binary). (cherry picked from commit 2bec3bd80fc16699dfe8cc6aa3afd97881b8bfe9)
* s3-netlogon: Fix setting the machinge account password.Andreas Schneider2011-11-011-0/+4
| | | | | | | | This bug has been found with uid wrapper. (cherry picked from commit bda9752b1036c4d4db76a526a79a091419bf757c) Fix bug #8550 (Calls inside netr_set_machine_account_password() to set the machine account password must be done as root).
* Fix bug #8548 - winbind_samlogon_retry_loop ignores logon_parameters flags.Jeremy Allison2011-11-011-2/+2
| | | | | | | | Fix confirmed by reporter. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Oct 28 23:04:47 CEST 2011 on sn-devel-104 (cherry picked from commit f30f71c14a0b89dea296910ac9b92d3ae4016613)
* Fix bug #8542 - smbclient posix_open command fails to return correct info on ↵Jeremy Allison2011-10-261-2/+2
| | | | open file.
* Third part of fix for bug #8541 - readlink() on Linux clients fails if the ↵Jeremy Allison2011-10-261-2/+1
| | | | | | | symlink target is outside of the share. Missed passing ucf_flags instead of hard coded flags in findfirst call. (cherry picked from commit 49d2a796bed0273327d8919755023c4dbd6d8232)
* Second part of fix for bug #8541 - readlink() on Linux clients fails if the ↵Jeremy Allison2011-10-263-2/+12
| | | | | | | | symlink target is outside of the share. The statcache has to do lstat instead of stat when returning cached posix pathnames. (cherry picked from commit 305d7d7f7d76e37d82ce6ac257f178ce654b26db)
* Fix bug #8541 - readlink() on Linux clients fails if the symlink target is ↵Jeremy Allison2011-10-264-11/+43
| | | | | | | | outside of the share. The key is to only allow the lookup to succeed if it's a UNIX level lookup or readlink, but disallow all other operations. (cherry picked from commit d2ec9d20858b8e5256bf8339395c6f47793e0975)
* Use existing ISDOT and ISDOTDOT macros.Jeremy Allison2011-10-261-2/+1
| | | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Jul 28 02:09:20 CEST 2011 on sn-devel-104 (cherry picked from commit d82256ca119eb8315cc69ba725ba71c386caa901)
* s3-netapi: remove pointless use_memory_krb5_ccache.Günther Deschner2011-10-262-20/+0
| | | | | | | | This breaks the ABI. Guenther See bug #7465 for more details.
* s3:Makefile: make DSO_EXPORTS_CMD more portable (#8531)Björn Jacke2011-10-211-1/+1
| | | | | | | | | | It sems like every not completely trivial sed expression should be tested with Solaris' sed. Its regexp engine is way more limited than the one of GNU sed. Thanks to Michael Pelletier for finding this! This fixes bug #8531 Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Thu Oct 20 23:15:05 CEST 2011 on sn-devel-104 (cherry picked from commit 37be1df3d7534c2cc8e1e25614164c2178372b94)
* Add new contributing FAQ announcing acceptance of corporate (C).Jeremy Allison2011-10-201-0/+120
| | | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Oct 12 03:46:41 CEST 2011 on sn-devel-104 (cherry picked from commit bd01ae227bc567fd7953e446236364fc4d110a48)
* Fix sys_fseek wrapperBrad Smith2011-10-203-3/+5
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> Fix bug #8525 (Bug with sys_fseek() wrapper on *BSD / OS X).
* s3:registry: fix the test for a REG_SZ blob possibly being a zero terminated ↵Michael Adam2011-10-201-1/+10
| | | | | | | | | | | | | | | ucs2 string 1. catch data blobs with odd number of bytes (not an ucs2 string at all) 2. test the right ucs2 character to be 0 (prevent out-of bounds access/potential segfault) Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Sun Oct 2 01:26:05 CEST 2011 on sn-devel-104 (cherry picked from commit 95bb2c23e6e9c52a1e34916dff05b1d306278bc6) The last 2 patches address bug #8528 (SEGFAULT from net registry export on not zero terminated REG_SZ values).