summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Fix bug #7067 - Linux asynchronous IO (aio) can cause smbd to fail ↵samba-3.4.7Karolin Seeger2010-03-083-71/+5
| | | | | | | | to respond to a read or write." This reverts commit c81c109a6ce83741bb5149a51ceb4ab30855e9f9. This fixes bug #7222 (All users have full rigths on all shares)(CVE-2010-0728).
* WHATSNEW: Prepare release notes for Samba 3.4.7.Karolin Seeger2010-03-081-8/+13
| | | | Karolin
* WHATSNEW: Start release notes for Samba 3.4.7.Karolin Seeger2010-03-081-2/+47
| | | | | Karolin (cherry picked from commit c8fbbbb888a6cc67e603ba04510f5504596b67d8)
* VERSION: Raise version number up to 3.4.7.Karolin Seeger2010-03-081-1/+1
| | | | | Karolin (cherry picked from commit b280381ed338920b1746d0b2b7cd6ea6eb1f92b9)
* WHATSNEW: Fix typo.samba-3.4.6Karolin Seeger2010-02-231-1/+1
| | | | | Karolin (cherry picked from commit 7ca9130556239eca52ecf8586c19e77780851d93)
* WHATSNEW: Update changes since 3.4.5.Karolin Seeger2010-02-221-0/+7
| | | | | Karolin (cherry picked from commit 7b195c33584ed1c8125c174518fe8e3cd5337ded)
* librpc/ndr: don't overwrite the content in ndr_push_relative_ptr2_end()Stefan Metzmacher2010-02-221-2/+8
| | | | | | | | | metze (cherry picked from commit 76aa37f653fec2d511921768381db7da661750cb) The last 25 patches address bug #6888 (REGRESSION: printing support for 64 bit windows clients broken). (cherry picked from commit 58b089f2176e564bf5563fbffa034cd22525ed6e)
* spoolss: use ndr_push_spoolss_PrinterInfo2 hand-marshalled version (moves ↵Günther Deschner2010-02-224-238/+238
| | | | | | | devmode relative pointer down to sd). Guenther (cherry picked from commit 31a097560efddfabf31c4cc54e683603ee24521f)
* spoolss: add spoolss_security_descriptor.Günther Deschner2010-02-225-52/+114
| | | | | Guenther (cherry picked from commit 18564787e2f169cac26d361201c1a954b7e263b7)
* s3: re-run make samba3-idl.Günther Deschner2010-02-225-1204/+1568
| | | | | Guenther (cherry picked from commit d35eb81c50340ed2ac14cdb9965fd13876ea8e64)
* security: make two bitmaps public.Günther Deschner2010-02-221-2/+2
| | | | | | Guenther (cherry picked from commit f10a2d773d141f67319e19b45c40101bb9cb6cf4) (cherry picked from commit b9748d59c09ffe9de7cbb953939cf89017dc8087)
* spoolss: make two bitmaps public.Günther Deschner2010-02-221-2/+2
| | | | | Guenther (cherry picked from commit b64cd9857086f56e1e698ae34e51413b6414eb0b)
* spoolss: make all security descriptors and devicemodes 4 byte aligned and ↵Stefan Metzmacher2010-02-221-8/+8
| | | | | | | | add missing subcontexts. Guenther (cherry picked from commit 8f52957369bf8ce7591d5d9a1436ccb7e384c612) (cherry picked from commit a4cb14987143c2c1f28e82e5b6476e079ea051d3)
* spoolss: set NDR_RELATIVE_REVERSE flag for various unions that have relative ↵Günther Deschner2010-02-221-10/+10
| | | | | | | | pointers. Guenther (cherry picked from commit 6d0a39741dacd81e33b25a91fa28cdf983d10d84) (cherry picked from commit 93aab77e24ecdd95ced8efe0c0f7bcdfb5ed2a1b)
* ndr_spoolss_buf: use LIBNDR_FLAG_NO_NDR_SIZE in NDR_SPOOLSS_SIZE_*Stefan Metzmacher2010-02-221-2/+2
| | | | | | metze (cherry picked from commit 2059a165ee6f4d231aa4075d8ddea70b8df8944f) (cherry picked from commit 3174acb66089b649ec2b859c1ef673814c44ffa4)
* spoolss: use subcontext in NDR_SPOOLSS_PUSH_ENUM_OUT macro.Stefan Metzmacher2010-02-221-1/+4
| | | | | | metze (cherry picked from commit a4c3aeb79306190b09e284a6a28e3b40fbc5823b) (cherry picked from commit 4a8dda5b149a82b83d22dc7b0cf77573ef35580d)
* libndr: fix ndr_size_* calculation with relative reverse buffersStefan Metzmacher2010-02-221-0/+6
| | | | | | metze (cherry picked from commit 8310f02414efd3b792857ed20c636c4c114e1ba2) (cherry picked from commit 56a6011221aec94b64ac4499b825ff96d1ed22b4)
* libndr: for now align reverse relative pointers to 2 bytes by default.Stefan Metzmacher2010-02-221-0/+3
| | | | | | | | | This is just a hack and we should let the callers use FLAG_ALIGN2 explicit in future. metze (cherry picked from commit 4a76d29374769ba4c075b8d5767498848d2e17d6) (cherry picked from commit 00d97b0a06bd1c2d0cb6d15b5560f2850323c1a9)
* libndr: implement LIBNDR_RELATIVE_REVERSE handlingStefan Metzmacher2010-02-222-3/+87
| | | | | | | | This is based on Guenther's initial code. metze (cherry picked from commit 31c7780c16651b284009874cf3da04587dc36d19) (cherry picked from commit 33d03a884eefad8d8c43f3dbe457866282219965)
* libndr: store a subcontext buffer size in ndr_push_subcontext_start.Günther Deschner2010-02-222-0/+2
| | | | | | Guenther (cherry picked from commit 05347754ee61f06466d6d9b7f390001992f793ce) (cherry picked from commit 4efead4bea29aee555473e1350c3f5671b56c829)
* libndr: give an error when ndr_push_relative_ptr2_start()/_end() is used ↵Stefan Metzmacher2010-02-221-1/+6
| | | | | | | | with the RELATIVE_REVERSE flag metze (cherry picked from commit b5f9c44da55abb28222441a7e064a2a25891981f) (cherry picked from commit 2f8872bdff4f193043f5195f11ec6a8b44e0f8f1)
* libndr: add LIBNDR_FLAG_NO_RELATIVE_REVERSE so that relative reverse ↵Günther Deschner2010-02-223-0/+7
| | | | | | | | processing can be disabled for single structure elements. Guenther (cherry picked from commit a2c34296fa6ca2ffb69cb69698a9b5f81803e8a8) (cherry picked from commit a026311c81bc8d7f154dad96b77c6121432384a3)
* libndr: add LIBNDR_FLAG_RELATIVE_REVERSE flag.Günther Deschner2010-02-222-0/+4
| | | | | | Guenther (cherry picked from commit ee13a51b0514ec3ac4ca9c532c2b101a08ec9784) (cherry picked from commit d0eb23b3cd9dbdd174d2c0cdbcdb41fbf2a6df53)
* libndr: change subcontext buffer allocation to allocate on subcontext_start.Günther Deschner2010-02-221-3/+7
| | | | | | Guenther (cherry picked from commit c9fa97b01774d767acfabaf1eec7a6aad1510440) (cherry picked from commit d2bb2f150a8cf4e18c0bbbc357e237261942dccb)
* librpc/ndr: make ndr_push_relative_ptr2() staticStefan Metzmacher2010-02-222-2/+1
| | | | | metze (cherry picked from commit d4606cd2663823831d61a98ee719d6121cdcf450)
* librpc/ndr_krb5pac: use ndr_push_relative_ptr2_start()/_end()Stefan Metzmacher2010-02-221-1/+2
| | | | | | metze (cherry picked from commit e03591111a1b9c2f05c29a7afac4641f23f455f4) (cherry picked from commit 8abc4b5dc5e06e846f0966c74a75f22e27504287)
* librpc/ndr_drsblobs: use ndr_push_relative_ptr2_start()/_end()Stefan Metzmacher2010-02-221-2/+4
| | | | | | metze (cherry picked from commit b423bd2115e006f9af5d40cf5b651e03739d53a0) (cherry picked from commit c495dd164771cfc8358713c5b07ddd07642fd33c)
* spoolss: fix relative pointers in ndr_push_spoolss_DriverInfo101.Günther Deschner2010-02-221-10/+20
| | | | | | Guenther (cherry picked from commit bfd6edb3e9339d602eb6514ff50c3bb6c671174e) (cherry picked from commit 8232ada560194fc967cfcb4cb3d14e55e221c321)
* s3: re-run make full_idl.Günther Deschner2010-02-225-156/+312
| | | | | Guenther (cherry picked from commit 9be36f59cfd1d973feeb045da975aafc869abfbd)
* pidl: use ndr_push_relative_ptr2_start and ndr_push_relative_ptr2_end.Günther Deschner2010-02-221-1/+5
| | | | | | Guenther (cherry picked from commit a049d75193b284fe9efb28d303ea46ba407e5a7a) (cherry picked from commit c1c56a0ebd6a8c777d8aa8b7d45858d03e7dce57)
* libndr: add ndr_push_relative_ptr2_start and ndr_push_relative_ptr2_end.Günther Deschner2010-02-222-0/+26
| | | | | Guenther (cherry picked from commit f52de6e2293de4a7ba4726025dd936228b51b5b5)
* Fix bug #7154 - mangling method = hash can crash storing a name not ↵Jeremy Allison2010-02-221-3/+5
| | | | | | | | | | | containing a '.' Fix use of uninitialized variable. This can lead to crashes if mangling = hash processes names with no '.'. Jeremy. (cherry picked from commit df13b1303a751962d8f7d5298b39e4a7500fef15) (cherry picked from commit 7eaeb891c8aee880fb06733f998b2feb95ef9c36)
* Fix bug #7155 - valgrind Conditional jump or move depends on uninitialised ↵Jeremy Allison2010-02-221-0/+1
| | | | | | | | | | | | value(s) error when "mangling method = hash" The charset array allocated in init_chartest() is allocated by MALLOC, but only some elements of it being set after allocation. Fix is to memset to zero after allocation. Jeremy. (cherry picked from commit a4e8210ba7d6d471cb9f17754244393b9c1e5930) (cherry picked from commit fcca63d5fd0b900bc4bdcfbfb21b14f655abbbf7)
* Fix bug #6557 - Do not work VFS full_auditJeremy Allison2010-02-221-18/+16
| | | | | | | | | | | | Re-arrange the operations order so SMB_VFS_CONNECT is done first as root (to allow modules to correctly initialize themselves). Reviewed modules to check if they needed CONNECT invoked as a user (which we previously did) and it turns out any of them that cared needed root permissions anyway. Jeremy. (cherry picked from commit 2eb33851a753cbd5594d44243802388cff5ae152)
* WHATSNEW: Update changes since 3.4.5.Karolin Seeger2010-02-171-2/+64
| | | | | Karolin (cherry picked from commit 05e26adc494ad9066e2d4f438368a782db553916)
* cifs.upcall: allocate a talloc context for smb_krb5_unparse_nameJeff Layton2010-02-171-1/+4
| | | | | | | | | | | | | | | | | | | | cifs.upcall calls smb_krb5_unparse_name with a NULL talloc context. Older versions of this function though will conditionally use SMB_REALLOC instead of TALLOC_REALLOC when a NULL context is passed in. To make it more consistent, just spawn a talloc context that we can pass into this function. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=565446 https://bugzilla.samba.org/show_bug.cgi?id=6868 Reported-by: Ludek Finstrle <luf@seznam.cz> Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit a8cc2fa09ed43a167f62711bef363a5ac335dc78) Fix bug #6868 (make bin/cifs.upcall fails). (cherry picked from commit fa8d57323c0ff4f92f0aca57b41d237340121720)
* s3-docs: Add missing para end tag.Karolin Seeger2010-02-151-0/+1
| | | | | | Karolin (cherry picked from commit b78de63ef3cde53e3aabbe46654aac5a335f16a8) (cherry picked from commit d3738dbe1cabb0ad0acf5f8c9b5e8106285ca9a1)
* spoolss: disable GetPrinterDriver level 101 (as called by XP).Günther Deschner2010-02-151-5/+7
| | | | | | | | | | We still dont get the marshalling right, disable and XP will just fall back to level 6. Guenther Fix bug #7136 (spoolss getprinterdriver2 level 101 marshalling bad). (cherry picked from commit 4a55047465029f302c92c7490aeebc1daa7b4e85)
* s3-docs: fix eventlogadm manpage typo.Günther Deschner2010-02-151-1/+1
| | | | | | | | Guenther (cherry picked from commit c1ca00047d26ace240fa5f34b428392b5d61e6c3) Fix bug #7137 (eventlogadm manpage typo for dump command). (cherry picked from commit 5c4fff696638d3e682fa3c8951d560e891196fc4)
* Fixes issue with preexec scripts creating a share directory, and problems if ↵Jeremy Allison2010-02-153-29/+68
| | | | | | | | | | | | | | | | | | a smb.conf reload turns wide links back on after a connection is establised. Includes git refs : cd18695fc2e4d09ab75e9eab2f0c43dcc15adf0b 94865e4dbd3d721c9855aada8c55e02be8b3881e 5d92d969dda450cc3564dd2265d2b042d832c542 02a5078f1fe6285e4a0b6ad95a3aea1c5bb3e8cf a6f402ad87ff0ae14d57d97278d67d0ceaaa1d82 from master. Jeremy. Fix bug #7104 ("wide links" and "unix extensions" are incompatible.) (cherry picked from commit 16e73d88944ce644cccfa19a99338f5903c061f0)
* s3: Fix typo found by jhell <jhell@DataIX.net>Volker Lendecke2010-02-151-2/+2
| | | | | | (cherry picked from commit 271a4c60dbec0d001dc55df58de8e54274137853) (cherry picked from commit eb390b8f917f52eb28f46f39a19abdc717051f3d) (cherry picked from commit f8dbb021393edf9d8394b5b7adf03c3432257ce7)
* s3-spoolss: implement spoolss_EnumJobs level 3.Günther Deschner2010-02-151-0/+76
| | | | | | | | | | | | | | Level 3 has been added with NT 4.0 and Windows 7 (at least 64bit version) makes use of it in order to display queued jobs. Windows 7 will *not* fall back to level 2 if we just return WERR_UNKNOWN_LEVEL, instead there will be no printjobs displayed at all. Guenther (cherry picked from commit 25001bbd1b0b32073073dab7cf5b78a2b902163f) (cherry picked from commit eacb3b7be16884bb6bfcc3b4db97708566d66c40) Fix bug #7130 (enumjobs level 3 is required by win7). (cherry picked from commit 7132ca8d41ce936287e5f64e3596c5d1d1b67769)
* s3:passdb: only use gid_to_sid() result if the result is a group of our ↵Stefan Metzmacher2010-02-151-4/+16
| | | | | | | | | | | | | | | local sam Otherwise retry with pdb_gid_to_sid(). metze (cherry picked from commit 4dc2be2264926fe415e4e40e212f94793c9831d1) Last seven patches address bug #7116 (pdb_ldap performance fixes). (cherry picked from commit 8946a47fcebe57f459c59ee2cb163e15901ff996) Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 5b5df3d1223d15d4fde9a2a2db83c60aaa266ca4)
* s3:pdb_ldap: don't search for the users primary group, if we already know itStefan Metzmacher2010-02-151-31/+35
| | | | | | | | | metze (cherry picked from commit 6753fb1cf6a834b12b2a9dce3b1a9555390c17be) (cherry picked from commit da7cb9feacc7cb84499c73ef463d187a7b2754e8) Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 0b2dd730a52ae9dbd622c50fb70492398f6503d9)
* s3:pdb_ldap: optimize ldapsam_alias_memberships() and cache ldap searches.Stefan Metzmacher2010-02-152-7/+34
| | | | | | | | | | | | | | ldapsam_alias_memberships() does the same LDAP search twice, triggered via add_aliases() from create_local_nt_token(). This happens when no domain aliases are used. metze (cherry picked from commit 49ace81e19de231825216cbf07c7422687131bb6) (cherry picked from commit cb31c1df92b195b3fb80b6e21bfba83b8cd867fd) Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 8f1c7c117b3bca058024daa34f777efa5ece88f8)
* s3:pdb_ldap: try to build the full unix_pw structure with ldapsam:trusted ↵Stefan Metzmacher2010-02-151-5/+85
| | | | | | | | | | | | | support And also store the gid_to_sid mappings in the idmap_cache. metze (cherry picked from commit 25038fa85ff69962ca0975f31802218a897aa1ec) (cherry picked from commit 66a48d2226d245c373b744c7edea60b3daa57f0f) Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit a2ff5f0dd08c40fdbea8cb11e1b18d996a4d8c39)
* s3:passdb: speed up pdb_get_group_sid()Stefan Metzmacher2010-02-151-5/+28
| | | | | | | | | | | | | | | Use the cached version gid_to_sid() instead of pdb_gid_to_sid(). And also avoid the expensive lookup_sid() call for wellkown domain groups. metze (cherry picked from commit e10d0869567436902c8b8cfb50f8c64148d554cb) (cherry picked from commit b0c8ff971934ef8aa21abece8693807e0a2ca722) Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 5d97d5703dcf62f2c610316b2ba47483652368b3)
* s3: Make pdb_copy_sam_account also copy the group sidVolker Lendecke2010-02-151-0/+4
| | | | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit b99046fed1bf4a908ed856afb17c3c934c6d305d) (cherry picked from commit a1862c23346959cd0aa77653bf488e0686d14376) Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 66b472fdd6e55550abe4db04b0666d56ec700a0e)
* s3: shortcut gid_to_sid when "ldapsam:trusted = yes"Stefan Metzmacher2010-02-151-0/+72
| | | | | | | | | | | | | | | | The normal gid_to_sid behaviour is to call sys_getgrgid() to get the name for the given gid and then call the getsamgrnam passdb method for the resulting name. In the ldapsam:trusted case we can reduce the gid_to_sid operation to one simple search for the gidNumber attribute and only get the sambaSID attribute from the correspoinding LDAP object. This reduces the number of ldap roundtrips for this operation. metze (similar to commit 0fb99386d41241f62312d4bb535976344e5d6492) (cherry picked from commit 479087716f50e8a1961163750b1d651dcd23dfc2)
* s3:is_trusted_domain: shortcut if domain name == global_sam_nameMichael Adam2010-02-151-0/+4
| | | | | | | | | | | A domain can't have a trust with itself. This saves some roundtrips to the ldap server for ldapsam. Michael (cherry picked from commit dc3a90cf21813526854c12db126d08ebf32f8ae5) Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit c48405ed0ab0e3c3a0c1472e3bf874a4a64c0261)