summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug #7998.Samuel Thibault2011-06-071-1/+1
| | | | | | (fails to build on Hurd because of undefined IOV_MAX or UIO_MAXIOV) (cherry picked from commit af5f3ddc46b455163f0b322051230ba1886ea69e)
* struct make "struct shadow_copy_data" its own talloc context (cherry picked ↵Volker Lendecke2011-06-074-19/+7
| | | | | | | from commit d77854fbb22bc9237cea14aae1179bbfe3bd0998) The last 3 patches address bug #8189 (Snapshot display not supported over SMB2). (cherry picked from commit 6aeb13996b2a7c1529a9083ad1a41c724ae1a35c)
* s3: Remove SHADOW_COPY_DATA typedef (cherry picked from commit ↵Volker Lendecke2011-06-078-11/+19
| | | | | | 0ec9a90c29b86435f32c1d47d89df85fa51742f2) (cherry picked from commit 0b78d42187ea7da6c14e26dc56b02447aa42eb49)
* s3: Support shadow copy display over SMB2Volker Lendecke2011-06-071-0/+121
| | | | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue May 31 12:53:10 CEST 2011 on sn-devel-104 (cherry picked from commit 0fcafbf69b345b703dc759518afc8620a7d6f2e8) (cherry picked from commit 82187ece14c7162baec43a31970ef4ba2561f67b)
* Split the ACE flag mapping between nfs4 and Windows into two separate ↵Jeremy Allison2011-06-071-14/+59
| | | | | | functions rather than trying to do it inline. Allows us to carefully control what flags are mapped to what in one place. Modification to bug #8191 - vfs_gpfs dosn't honor ACE_FLAG_INHERITED_ACE (cherry picked from commit 06a02e2f698076bcb8164efa15cc7b79ac19c927)
* nfs4_acls: pass ACE_FLAG_INHERITED_ACE down from the clientGregor Beck2011-06-071-0/+3
| | | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit 817c64f5de65c6ba7cc535446279f769d6552618) Fix bug #8191 (cherry picked from commit 009ceeaad12d5b799c0a4249ce473da97a0e3fec)
* nfs4_acls: pass ACE_FLAG_INHERITED_ACE up to the clientGregor Beck2011-06-072-1/+5
| | | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit b0471303ba50caab7da5f50e6f7d8c4b1c664238) Fix bug #8191 (cherry picked from commit ab1fd07266075acb78276ed0e6347c6db11759c2)
* s3-docs: Fix version.Karolin Seeger2011-06-076-6/+6
| | | | | | | s/4.0/3.6/g Karolin (cherry picked from commit d6b991a6dc4ea572d6c1d7678a4649e932cec772)
* s3-winbind: BUG 8166 - Don't lockout users when offline.Jim McDonough2011-06-071-1/+4
| | | | | | | | | Windows does not track bad password attempts when offline. We were locking users out but not honoring the lockout duration. Autobuild-User: Jim McDonough <jmcd@samba.org> Autobuild-Date: Wed May 25 18:11:10 CEST 2011 on sn-devel-104 (cherry picked from commit b58534f1fca27e3e72f4f4107538ec05734bd42a) (cherry picked from commit c5b79122d9ea3945df721cb364249c5c33f35b19)
* s3: Safely mark our sconn as smb2 if we have that protocolVolker Lendecke2011-06-071-0/+2
| | | | | | | | | | | | | | | Otherwise smbd will crash at an unclean exit. Without this conn_close_all will do a close_cnum() on all connection_struct's. In smb2, those are talloc children of the smbd_smb2_tcon's. sconn is talloc_free'ed after the conn_close_all, but the smbd_smb2_tcon destructor will still reference tcon->compat_conn, referencing then free'ed (and null'ed out) memory. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon May 30 22:49:53 CEST 2011 on sn-devel-104 (cherry picked from commit c981d4fa1269569a1c2db4bf72a67a357aacd69f) Fix bug #8199 (potential crash in smbd handling smb2). (cherry picked from commit 43610924c0052d8ea2defb54493677607a06332a)
* s3:smbcacls: fix parsing of multiple flagsGregor Beck2011-06-071-1/+6
| | | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit c967e8fae5babf6e337c0e2b85fc42eccfe9e4c4) Fix bug #8192 (cherry picked from commit 28f0326b22483cce6cb86cfa9772bc5d4e3b7c5f)
* Improve documentation for net rpc trustSumit Bose2011-06-072-13/+136
| | | | | | | | | | | Add man pages entries and fix usage output. Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon May 30 20:05:34 CEST 2011 on sn-devel-104 (cherry picked from commit e10f27d5759b2d21c82fdb20f5641e1f6feab158) (cherry picked from commit 330d16f39097208c807526ccdc4ff7ab4e7d9c48)
* s3: Use the correct guest_login field in auth_serverVolker Lendecke2011-06-071-1/+1
| | | | | | | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun May 29 13:57:21 CEST 2011 on sn-devel-104 (cherry picked from commit 0969c3398e73e66c9e004740127da7c29e951050) The last 3 patches address bug #8185 (security=server does not obey guest login field). (cherry picked from commit 91447e8b49e27b9e2d76cf8f99efdc1faca49fc4)
* s3: Extract the guest_login field in sesssetupVolker Lendecke2011-06-072-4/+18
| | | | | (cherry picked from commit 01386ff3132ff5c786e83fc24328a80661de6bb7) (cherry picked from commit cce50095eaf4e0c040a4b1262b46d16890f6865a)
* s3: Fix wct check in cli_sesssetup_blob_doneVolker Lendecke2011-06-071-1/+1
| | | | | (cherry picked from commit 4ec00fd621e944ff979e9f0a20773202d8c66472) (cherry picked from commit 1afd58160f264079b9c25a1603590c72f68993fc)
* WHATSNEW: Update changes since rc1.Karolin Seeger2011-06-071-0/+9
| | | | | Karolin (cherry picked from commit a701f8f27e1b67c381f5c57603a461249e4c4e38)
* Fix bug #6911 - Kerberos authentication from vista to samba fails when ↵Jeremy Allison2011-06-071-3/+25
| | | | | | | | | | | | | | | | | | | | security blob size is greater than 16 kB We were not correctly checking the output of asn1_start_tag(). asn1_start_tag() returns -1 and sets data->has_error if the remaining blob size is too short to contain the tag length. We were checking data->has_error and returning NT_STATUS_OK (to allow the second asn.1 parse to fail in that case). We should not be checking data->has_error in this case, but falling through to the code that already checks the length. Thanks to Jim for reproducing this for me. We don't get bitten by this as we announce a max buffer size of 16k, greater than Windows's 4k, which means that most krb5 spnego packets already fit. Jeremy. (cherry picked from commit 2e490ae208d31c4112b851eeaf346837f637fcd3)
* s3-docs: Fix some typos.Benjamin Brunner2011-06-072-5/+5
| | | | | | | | | | | | | | | This patch is a manpage update addressing the typos and mistakes in the vfs_smb_traffic_analyzer manpage and the smbta-util manpage, which have been brought up in these threads on samba-technical: http://lists.samba.org/archive/samba-technical/2011-May/077801.html http://lists.samba.org/archive/samba-technical/2011-May/077800.html http://lists.samba.org/archive/samba-technical/2011-May/077753.html I have seen Volker already fixed the typos in 127d417e8ebc967572df7a75b342897a6a8fb71e , but I haven't found "Ultimatively" in any dictionary, so this patch just removes the word completely. Thanks to Samba-JP oota <ribbon@samba.gr.jp> for reporting. The last 2 patches address bug #8178 (Collection of manpage updates for SMB Traffic Analyzer). (cherry picked from commit 3e3b85f2796166109ce9a72f797a3ca708e7d186)
* s3: Fix a typoVolker Lendecke2011-06-071-1/+1
| | | | | | Thanks to Samba-JP oota <ribbon@samba.gr.jp> (cherry picked from commit 127d417e8ebc967572df7a75b342897a6a8fb71e) (cherry picked from commit b747545fa4cd8985f4e06a08623d38205fa5d0cf)
* Fix our asn.1 parser to handle negative numbers.Jeremy Allison2011-06-071-0/+9
| | | | | | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue May 24 22:57:16 CEST 2011 on sn-devel-104 (cherry picked from commit e719dfd4dc178f001a5f804fb1ac4e587574415f) Fix bug #8163 (asn.1 library does not correctly read negative integers). (cherry picked from commit 859d13141cd831488b60e413f7141514ae4464b5)
* Actually make use of the SMBTA_SUBRELEASE define in smb_traffic_analyzer.h. ↵Holger Hetterich2011-06-072-1/+12
| | | | | | | This will allow to introduce new features or fixes into the protocol after the 3.6.0 release. The client software is designed to take care for the subrelease number. Fix bug #8154 (Actually make use of SMBTA subversion numbers). (cherry picked from commit 12c0c8bc79ec762f983be6955fe14f8561bf6bfd)
* Fix bug #7054 - X account flag does not work when pwdlastset is 0.Jeremy Allison2011-06-072-3/+11
| | | | | | | | | | | | | | Don't allow pass_last_set_time to be set to zero (which means "user must change password on next logon") if user object doesn't allow password change. Don't automatically allow user object password change if "user must change password on next logon" is set. Jim please check. Jeremy. (cherry picked from commit 4ae564df76c99a3866188dfb7e5a236188e97350)
* s3-testparm Warn about incorrect use of 'password server'Andrew Bartlett2011-06-071-3/+18
| | | | | The last 5 patches address bug #8151 (deprecate security parameters for 3.6). (cherry picked from commit c173b7bc0bf1e93406b692b27e1987928e81b47c)
* s3-param Depricate 'password server = foo:12389' syntaxAndrew Bartlett2011-06-071-0/+5
| | | | | | | | | | This was originally intended to allow the LDAP port on a DC to be varied, but makes little sense to change one port when in an environment where krb5, ldap, smb and potentially DCE/RPC over TCP are involved. Andrew Bartlett (cherry picked from commit 7938753a2973f596bc4cfac7d7829faeb550e7c1)
* s3-param Deprecate a number of security parameters for 3.6Andrew Bartlett2011-06-076-85/+81
| | | | | | | | | | | | This follows up on the agreement on the samba-technical list in Jan 2011 to deprecate these options, and to possibly remove these in the 4.0 release after user feedback. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri May 13 19:51:41 CEST 2011 on sn-devel-104 (cherry picked from commit da3c01387dc0ae0be0de768b4240f164b0a96c25)
* docs: Clarify the 'security=server' fails for NTLMv2Andrew Bartlett2011-06-071-0/+3
| | | | (cherry picked from commit 6fc56d402ecbb864f3b906f096ac9e2c77b9fbab)
* docs: Rewrite 'password server' documentationAndrew Bartlett2011-06-071-52/+54
| | | | | | | I think this new version is more clear. Andrew Bartlett (cherry picked from commit 168522c1cbb7981e87cc05bf619f65867e5d3cb3)
* Fix bug #8150 - Ban 'dos charset = utf8'Jeremy Allison2011-06-071-1/+39
| | | | (cherry picked from commit 0b45809109bfbb5bca7913091b465afbd1462103)
* s3: Document "async smb echo handler"Volker Lendecke2011-06-071-0/+15
| | | | | | | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu May 26 12:50:55 CEST 2011 on sn-devel-104 (cherry picked from commit 875e29ba830b269faf8ca7ff7cd7fc95c0c18f28) Fix bug #7571 (Documentation on new "async smb echo handler" parameter is missing). (cherry picked from commit 341694edc159b8b923ce4d5c22bebed6e1e7ad1b)
* WHATSNEW: Start adding changes since rc1.Karolin Seeger2011-06-071-1/+34
| | | | | Karolin (cherry picked from commit 9a01a1569359ab7d527c2a080fb7861a03a8fe12)
* Fix bug #8157 - std_pcap_cache_reload() fails to parse a cups printcap file ↵Jeremy Allison2011-06-071-8/+5
| | | | | | | | correctly. The parsing code made some strange assumptions about what is a printer name, and what is a comment. (cherry picked from commit bc602ad464291380d4dea007668d453439467cc4)
* Patch for bug #8156 - net ads join fails to use the user's kerberos ticket.Jeremy Allison2011-06-071-10/+27
| | | | | | | If kerberos_get_realm_from_hostname() or kerberos_get_default_realm_from_ccache() fails due to a misconfigured krb5.conf, try the "realm =" from smb.conf as a fallcback before going back to NTLMSSP (which we'll do anyway). (cherry picked from commit ccab9efb653cfacdd357986f7a8a85c17df7abbb)
* s3: Remove two false references to cli->inbuf (cherry picked from commit ↵Volker Lendecke2011-06-071-2/+2
| | | | | | | | b1a7bdb93c7fda54a29284f1691de1dc4f3bbf6b) Fix bug #8159 (Memory corruption in fetching cli->server_domain from the server.). (cherry picked from commit d4c8b92a29aa9dcc976185aeb35ead8e911aab9c)
* s3: Fix a leftover from fstring removal in cli_stateVolker Lendecke2011-06-071-4/+7
| | | | | | Jeremy, please check! (cherry picked from commit 9514f96856ccf822b683b5362fd2eb4a4e9e418a) (cherry picked from commit 0f574d1a2fbc1b043c96b103bda1b74b1088fd5b)
* Fix bug 8133 - strange behavior for the file (whose filename first character ↵Jeremy Allison2011-06-071-2/+3
| | | | | | | | | | | is period ) in SMB2 case. When doing SMB2 renames, we need to match all filetypes (no attributes field in the SMB2 call). By default a file starting with a period is returned as FILE_ATTRIBUTE_HIDDEN in Samba. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri May 20 19:26:04 CEST 2011 on sn-devel-104 (cherry picked from commit 318c77ec46c3769d462bada130956d0081c48be2)
* Optimization. If the attributes passed to can_rename() include both ↵Jeremy Allison2011-06-071-5/+8
| | | | | | FILE_ATTRIBUTE_HIDDEN and FILE_ATTRIBUTE_SYSTEM then there's no point in reading the source DOS attribute, as we're not going to deny the rename on attribute match. (cherry picked from commit e66e505db8e3e6c7938eb09dc55e080f7754ddd1)
* Make protocol version 2 the default protocol, and only run on version 1 if ↵Holger Hetterich2011-06-072-10/+11
| | | | | | | | | | | | | | | | | | V1 is explcitly given as a module option. I haven't received a single line of feedback on protocol v1 for at least 1 1/2 years, whereas protocol v2 has an active userbase and more people developing around it. This patch includes a manpage update, describing the new version handling, as well as documenting the recent changes making the module transfer the IP address of the client machine as submitted with 464c69609aa7e582f484c1d357b7c6d3eb2bcbe3. Bug #8148 (Default to protocol version 2 for SMB Traffic Analyzer in Samba 3.6.0). (cherry picked from commit 9231770df9189701da7020c77ebd672942f25773)
* s3-epmapper: Fixed endpoint registration.Andreas Schneider2011-06-071-4/+4
| | | | | | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Fri May 20 12:03:18 CEST 2011 on sn-devel-104 (cherry picked from commit 7ab9e26b601e4e51736ce6eace46e6588fa1148f) Fix bug #8155 (Registering only named pipes on EPM for a service doesn't work). (cherry picked from commit aba30a8d502f0a425672205734bfb91d4286fc14)
* Fix bug 8153 found when building on an IPv6-only system by Kai Blin.Jeremy Allison2011-06-071-3/+16
| | | | | | | | | | | | | | | | When building on IPv6-only, doing: hints.ai_family = AF_INET; getaddrinfo("0.0.0.0", NULL, &hints, &ppres) fails as AF_INET is unavailable on an IPv6-only system. This causes us to fallback to our replacement getaddrinfo code which is IPv4-only. As we're only trying to detect a specific AIX bug here, broaden the tests to find that bug, and also test for working getaddrinfo in an IPv6-only safe way. (cherry picked from commit 85468960ebdb3d813bd863e57f6dca6bab61bec2)
* Fix Bug 8152 - smbd crash in release_ip()Christian Ambach2011-06-072-0/+8
| | | | | | | | | | release_ip() needs the private_data, but it was never saved away to feed it into release_ip() later Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Thu May 19 21:21:14 CEST 2011 on sn-devel-104 (cherry picked from commit 642c6ba2b9c581bacfcb9a6cb4c5c95d446263ce) (cherry picked from commit 72e50d34eeac4cd72ec2f6b3609b5373f1f1ec15)
* s3:rpc_server: create lp_ncalrpc_dir() with 0755 before lp_ncalrpc_dir()/np ↵Stefan Metzmacher2011-06-071-0/+11
| | | | | | | | | | | | | with 0700 metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue May 17 13:01:14 CEST 2011 on sn-devel-104 (cherry picked from commit cb227d6d1492247d8aff03807cac0b7266202a38) The last 2 patches address bug #8141 (wrong permissions on lp_ncalrpc_dir()). (cherry picked from commit ba6f63ca67fc9e0b2bfa54ccf2cf0b78c53db74b)
* ncalrpc: Force ncalrpc dir to be mode 755 in all usersAndrew Bartlett2011-06-072-2/+9
| | | | | | | | | This allows this directory to be shared between Samba3 and Samba4 in a Franky-style setup easily. Andrew Bartlett (cherry picked from commit aae9353ecf56323b63da66aa84d8a0a4f219d94d) (cherry picked from commit 6e89c230046f1b7300ba5f76dfbc81c57af69fe5)
* talloc: splitout _talloc_free_children_internal()Stefan Metzmacher2011-06-071-50/+27
| | | | | | | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue May 17 10:49:13 CEST 2011 on sn-devel-104 (cherry picked from commit df2cb2f672569e5d113fe2e77fdc1ee16c8b646d) The last 9 patches address bug #8140 (talloc: valgrind false positives and other backports). (cherry picked from commit 7304370a2423230120a9ceebd1016966658f713f)
* talloc: fixed a use after free error in talloc_free_children()Stefan Metzmacher2011-06-071-1/+16
| | | | | | | | This is similar to commit 6f51a1f45bf4de062cce7a562477e8140630a53d. metze (cherry picked from commit 38633c9f0b7f86673f08903999583ad5b62c3548) (cherry picked from commit e3ff6f5bbe09913b45ea1aef613c8790b25a978c)
* talloc: use _talloc_free_internal() in talloc_free_children()Stefan Metzmacher2011-06-071-1/+1
| | | | | | metze (cherry picked from commit f3b855d2ff9576715afe50d75678829c6bc0842d) (cherry picked from commit d54493b4b43cc0d299486e571d813f90a7b22059)
* talloc: test talloc_steal out of a talloc_poolStefan Metzmacher2011-06-071-0/+69
| | | | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue May 17 09:43:01 CEST 2011 on sn-devel-104 (cherry picked from commit 37b2130ed9612a7334888ecd2fee26b0b45ac271) (cherry picked from commit ac6bb22a8c054e5949e07f563bf9fba46d22358d)
* talloc: add memset() calls to test_pool()Stefan Metzmacher2011-06-071-0/+17
| | | | | | | | This way we the pool based valgrind code. metze (cherry picked from commit 16cc52cf70a9918843f9761baf483338c80bf1d0) (cherry picked from commit ade2fe7e8fc299e01ba13a08c95598eefa5b99b5)
* talloc: setup the new 'tc' before TC_UNDEFINE_GROW_CHUNK() _talloc_realloc()Stefan Metzmacher2011-06-071-0/+1
| | | | | | metze (cherry picked from commit c281f2fc1a359d0d3b91b94438f11bb7c88170b5) (cherry picked from commit 75ce3de1eb2e7042c7a4ffcb6f0f6aa2a41c19b5)
* talloc: make really sure only optimize realloc if there's only one pool chunkStefan Metzmacher2011-06-071-1/+6
| | | | | | | | | *talloc_pool_objectcount(pool_tc) == 2 doesn't mean the one of the objects is the pool itself! So we better check for == 1 and calculate the chunk count. metze (cherry picked from commit 7102105c8954627dc30a851327cf2642ac0783d5) (cherry picked from commit 8e95d3201adc546000ca29816c83aba6fab52b1a)
* talloc: make use of _talloc_free_poolmem() in _talloc_realloc()Stefan Metzmacher2011-06-071-15/+1
| | | | | | | | This should follow the same logic... metze (cherry picked from commit 14b662ee4f278764b9dfd620851e908d29f29fc4) (cherry picked from commit dc8b2979168c6688c647cdc39d321eb54bd0aa5b)