summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* print correct test statusHerb Lewis2008-08-131-1/+1
| | | | (cherry picked from commit ccd413b8b10c99f18b6369717116765c3397edfb)
* Fix bug 5686 - libsmbclient segfaults with more than one SMBCCTX.Jeremy Allison2008-08-138-38/+63
| | | | | | | | | | Here is a patch to allow many subsystems to be re-initialized. The only functional change I made was to remove the null context tracking, as the memory allocated here is designed to be left for the complete lifetime of the program. Freeing this early (when all smb contexts are destroyed) could crash other users of talloc. Jeremy. (cherry picked from commit 4779f1efccc8364fd8b3ba446aa96ba0bddec689)
* fix build warning.Günther Deschner2008-08-121-1/+1
| | | | | Guenther (cherry picked from commit eb7c3dc2ca92ef7885eef8f89e4397b5df486b65)
* WHATSNEW: Update changes since 3.2.1.Karolin Seeger2008-08-111-0/+30
| | | | | Karolin (cherry picked from commit 0099cb0741c159db7f389bcca52a3cc6a3762771)
* fix smb_len calculation for chained requestsVolker Lendecke2008-08-111-3/+5
| | | | | | I think chain_reply() is one of the most tricky parts of Samba. This recursion needs to go away, we need to sequentially walk the chain list. (cherry picked from commit 34b56cb54e06f9b38d2bb0a626ec7b04030fc4fa)
* Fix andx offset calculation for more than 2 chained requestsVolker Lendecke2008-08-111-1/+7
| | | | | | Untested code is broken code.... Test follows later, it's quite an intrusive change to libsmb/ (cherry picked from commit 2abeea64e15f0e8e8c413744de9194bdcedd6f16)
* One more build fix. Ensure we have KRB5_AUTH_CONTEXT_USE_SUBKEY defined ↵Jeremy Allison2008-08-111-3/+3
| | | | | | | before we compile the new code. Jeremy. (cherry picked from commit fc309e41a45079d58c03dc6fb0c35ceb4517f0ae)
* Try and fix the build for systems that don't have ↵Jeremy Allison2008-08-112-3/+4
| | | | | | | krb5_auth_con_set_req_cksumtype(). Jeremy. (cherry picked from commit 02862653724355b32e0c6e38e0ebcbb1a9954759)
* Add Derrick Schommer's <dschommer@F5.com> kerberos delegation patch. SomeJeremy Allison2008-08-113-3/+186
| | | | | | work by me and advice by Love. Jeremy. (cherry picked from commit 5f419135ba1acae6bc37692fa77ae1162b62e0e3)
* using NGROUPS_MAX instead of 32 for the max group value in rep_initgroups() ↵Yannick Bergeron2008-08-111-1/+1
| | | | | | subroutine in lib/replace/replace.c (cherry picked from commit 6d6b205e444154e1bd2993d964eff4cf532bacd8)
* Fix bug #5675 with a varient of Tim Waugh's patch,Jeremy Allison2008-08-113-4/+4
| | | | | | as proposed by James Peach. Jeremy. (cherry picked from commit 1ee1e8306f3578c19fe015145eb8da1013f7b820)
* Solve an IBM XL C/C++ compiler error encountered in get_exit_code() ↵Yannick Bergeron2008-08-111-1/+2
| | | | | | auth_errors array initialization in client/smbspool.c (cherry picked from commit f6ffc95a363d3ed8aa480ac25e440d2472551891)
* fixed permissions on ctdb databasesAndrew Tridgell2008-08-111-0/+5
| | | | | (cherry picked from commit 123fc3980a83d956bffaa689f3af81bbf81ce1c1) (cherry picked from commit 61274204b63cf077a826671a9e0d807bd17dfec3)
* fixed a fd leak when trying to regain contact to a domain controllerAndrew Tridgell2008-08-111-0/+1
| | | | | | | | | | | | | in winbind When a w2k3 DC is rebooted the 139/445 ports come up before the udp/389 cldap port. During this brief period, winbind manages to connect to 139/445 but not to udp 389. It then enters a tight loop where it leaks one fd each time. In a couple of seconds it runs out of file descriptors, and leaves winbind crippled after the DC does finally come up (cherry picked from commit 57187cafbcc053e75bb54750494df9feabe3a738) (cherry picked from commit 892e41d60469e1e8adccd2b1ff860210db58dcb0)
* dbwrap: add comment describing behaviour of dbwrap_change_int32_atomic().Michael Adam2008-08-111-0/+7
| | | | | | Michael (cherry picked from commit f8f21c8e3922806230e240cb54205fc2db7a3619) (cherry picked from commit 0bdab793c1da9b56790d37ac7d064b67ec51e3a4)
* secrets: fix replacemend random seed generator (security issue).Michael Adam2008-08-111-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | This is a regression introduced by the change to dbwrap. The replacement dbwrap_change_int32_atomic() does not correctly mimic the behaviour of tdb_change_int32_atomic(): The intended behaviour is to use *oldval as an initial value when the entry does not yet exist in the db and to return the old value in *oldval. The effect was that: 1. get_rand_seed() always returns sys_getpid() in *new_seed instead of the incremented seed from the secrets.tdb. 2. the seed stored in the tdb is always starting at 0 instead of sys_getpid() + 1 and incremented in subsequent calls. In principle this is a security issue, but i think the danger is low, since this is only used as a fallback when there is no useable /dev/urandom, and this is at most called on startup or via reinit_after_fork. Michael (cherry picked from commit bfc5d34a196f667276ce1e173821db478d01258b) (cherry picked from commit c0e764d3878120e9612bbd847e581c6fd6c79532)
* dbwrap: add comment describing behaviour of dbwrap_change_uint32_atomic().Michael Adam2008-08-111-0/+7
| | | | | | Michael (cherry picked from commit 7edfb54c865ddcfd5cdcc8c2184b96aaac2d2ec0) (cherry picked from commit c601ad0d1c5b7f3568fef7592e501b8f6be9c469)
* idmap_tdb2: fix a race condition in idmap_tdb2_allocate_id().Michael Adam2008-08-111-2/+6
| | | | | | | | | | | | | | | | | | The race is a regression introduced by the change to dbwrap. It might have led to two concurrent processes returning the same id. This fix is achieved by changing dbwrap_change_uint32_atomic() to match the original behaviour of tdb_change_uint32_atomic(), which is the following: *oldval is used as initial value when the value does not yet exist and that the old value should be returned in *oldval. dbwrap_change_uint32_atomic() is used (only) in idmap_tdb2.c, to get new ids. Michael (cherry picked from commit 72bd83fea7572a6202027b200d192c05023aa633) (cherry picked from commit f3cdf9e646180837a470e90f8a17d933f07b60c3)
* Without stdlib.h we don't get a prototype for free().Andrew Bartlett2008-08-111-0/+1
| | | | | | | | | | | This test fails if GCC emits any warnings (presumably to detect the function propertly), but unless we include this message then free() fail. Why we need to call free in a configure test is probably something to blame on valgrind... Andrew Bartlett (cherry picked from commit d013f6fadc3e80fabb4a1784207dabc84f9b7dc2) (cherry picked from commit 91c17ecfd7b07ff948874c3eb7013eb79c5b66ab)
* WHATSNEW: Start WHATSNEW for 3.2.2.Karolin Seeger2008-08-051-116/+6
| | | | | Karolin (cherry picked from commit c06ee7cd99c44f10fd7cf9926fe1511664f53ac3)
* VERSION: Raise version number up to 3.2.2.Karolin Seeger2008-08-051-1/+1
| | | | | Karolin (cherry picked from commit c6d2845fddb6eefc78435356f2d004e4dc95d803)
* man pages: Improve description of boolean values in smb.conf.5.Karolin Seeger2008-08-051-1/+1
| | | | | | | | | | This fixes bug #5378. Thanks Morton K. Poulsen <morten+bugzilla.samba.org [at] afdelingp.dk> for reporting! Karolin (cherry picked from commit 8195ca2132cbdba396dc35e9d04d4bdc3a8a666c) (cherry picked from commit 6cb22c3722df8cce64d923034ffb32eb12e23572)
* man pages: Add documentation about smbclient command "rename".Karolin Seeger2008-08-051-0/+7
| | | | | | | | | This fixes bug #5268. Thanks to Alexander Franz <a.franz [at] gmx.net> for reporting! Karolin (cherry picked from commit 0a93fd2dedfa7fed1ad0b8a5e079bf7be72a4bd5) (cherry picked from commit 29de36037d9fc4c8eb58059a9c4caccfb2b4d069)
* WHATSNEW: Update changes since 3.2.0.samba-3.2.1Karolin Seeger2008-08-051-0/+4
| | | | | Karolin (cherry picked from commit bdbc8f821063df8f612b83ce6c903270fa985cbf)
* Compile error on AIX 6.1Yannick Bergeron2008-08-051-8/+8
| | | | (cherry picked from commit afe139e3272b324df2dec2d4066b351b03792dc8)
* Samba3 HowTo: Fix duplicate chapter id.Karolin Seeger2008-08-011-1/+1
| | | | | | Karolin (cherry picked from commit f67b6fd97e177a527e896861f337c2e70541f697) (cherry picked from commit 7359f89ded09a0916a42d696a217d3100aab25d2)
* WHATSNEW: Update changes since 3.2.0.Karolin Seeger2008-07-311-0/+5
| | | | | Karolin (cherry picked from commit b562b97872f51abe1bd2fb4d61d91c464d1d0840)
* Fix uninitialized variable.Jeremy Allison2008-07-311-0/+1
| | | | | Jeremy. (cherry picked from commit 5fb17b866642a9f971cce6d9f228b4d52618e42b)
* rpc_client: Bug 5616 - fix session keys also in rpccli_netr_LogonSamLogonEx ↵Günther Deschner2008-07-311-9/+6
| | | | | | | | wrapper. Guenther (cherry picked from commit fef58091408cce0d7870c86f28f78cf9400cf2b6) (cherry picked from commit 4f62fa50c7d542db4a2b8976d85da590194203f0)
* winbindd: handle trusted domains without sid.Günther Deschner2008-07-312-4/+17
| | | | | | Guenther (cherry picked from commit 0c1efc6c89b1a51a94d10971bf0fc515416709b3) (cherry picked from commit 4f5255d1e5025c4c9ebb0b1f22d800e26bcdfb7f)
* libwbclient: let wbcStringToSid handle the global NULL sid.Günther Deschner2008-07-311-1/+1
| | | | | | Guenther (cherry picked from commit 09fed085bea9dae5bb8aacd986deed3d458e3574) (cherry picked from commit fba8506112938bf714c06da08e0e0725a7eecf3a)
* man pages: Fix typos in man smbclient.Karolin Seeger2008-07-311-2/+1
| | | | | | Karolin (cherry picked from commit db843d2faafb3487e3c7df4a3a52d6c71f369e1d) (cherry picked from commit 3a3640a85daa1a85415c949f9c2b804b4f067dd7)
* Attempt to fix bug 5616Volker Lendecke2008-07-311-9/+6
| | | | | We were calculating the session key but did not return it to the caller... (cherry picked from commit 8ab79b1d009d53e414b90e4a0ab8fc7a4889b6df)
* WHATSNEW: Update changes since 3.2.0.Karolin Seeger2008-07-281-0/+1
| | | | | Karolin (cherry picked from commit 0d4a3c2dfb07663dc9fded298e6b7b6c67029f71)
* Fix an incompatible pointer warningVolker Lendecke2008-07-281-2/+2
| | | | (cherry picked from commit 3282f7289b7b33beeaa1ca649651cca6537a69af)
* Fix bug creating files using DOS clients with mixedJeremy Allison2008-07-281-1/+1
| | | | | | | | | | case files. Reported by Daniel Johnson <Progman2000@usa.net>. The smb_set_file_time() call to set the filetimes is failing because it's using the unmodified name passed in by the client, not the modified name (matching case on the disk) that comes out from create_file(). Jeremy. (cherry picked from commit d54fe83b16c187847a975df373e73d56111d7f21)
* WHATSNEW: Update changes since 3.2.0.Karolin Seeger2008-07-251-0/+7
| | | | | Karolin (cherry picked from commit a1d0fb1f00432f3bc4d7175dbff1354724ea2b67)
* Fix a race condition in winbind leading to a crashVolker Lendecke2008-07-251-4/+3
| | | | | | | | | | | | | | | When SIGCHLD handling is delayed for some reason, sending a request to a child can fail early because the child has died already. In this case async_main_request_sent() directly called the continuation function without properly removing the malfunctioning child process and the requests in the queue. The next request would then crash in the DLIST_ADD_END() in async_request() because the request pending for the child had been talloc_free()'ed and yet still was referenced in the list. This one is *old*... Volker (cherry picked from commit 8691709626b0d461de91b8fc9d10c730d1f183dd)
* talloc_string_sub2: Don't return NULL if src is empty.Karolin Seeger2008-07-251-1/+1
| | | | | | | | | | | | | | | | | This fixes BUG #5635. Finished print jobs were not removed from the $PRINTER.tdb file if "printing=cups". In print_queue_update, talloc_string_sub2 is used to assemble the "lprm command". In the case of using "printing=cups", the default "lprm command" is an empty string. talloc_string_sub2 is called with this empty string and returns NULL which leads to exiting print_queue_update without doing the actual print queue update. Signed-off by Michael Adam <obnox@samba.org> (cherry picked from commit 03d66554d1bbd9d6c72a3dd5203e5305343c76b8) (cherry picked from commit c6ca0f7d462c51122ccb1068306410ccdbee7b00)
* If we're not allowing streams on this conn ptr,Jeremy Allison2008-07-251-0/+5
| | | | | | | then don't allow create_file() to call down to create_file_unixpath() with a stream name. Jeremy. (cherry picked from commit 7f749a10eff0bb469e6eb50b02cb60fd65c23f9e)
* Remove trailing withespace from wbinfo -m which breaks gdm auth.Andreas Schneider2008-07-251-4/+5
| | | | | Signed-off-by: Andreas Schneider <anschneider@suse.de> (cherry picked from commit cdf10e6ee9faff42693bb39ede535cc6611a8fc9)
* Remove test changes added in error.Jeremy Allison2008-07-251-6/+1
| | | | | Jeremy. (cherry picked from commit 218ffbe3876dbd58f56e107819dec2e74f5d2f1a)
* Use sys_getgrnam not getgrnam. Pointed out by Herb.Jeremy Allison2008-07-252-7/+12
| | | | | Jeremy. (cherry picked from commit 2518197d7f3833b5d85fe42b05b51d89fa69eb75)
* get rid of unused variable warnings when HAVE_IPV6 not definedHerb Lewis2008-07-251-2/+2
| | | | (cherry picked from commit 2b5425efddfccb1010d082e6133cfdd79d72729e)
* pdb_ldap: Raise level for debug message to avoid log file flooding.John H Terpstra2008-07-241-1/+1
| | | | | (cherry picked from commit 9b863a10da8762f715c16f147d6cd1e79422d248) (cherry picked from commit 1c3187fd250e5219197206cb7c7345ea9d649e74)
* Update RoadmapVolker Lendecke2008-07-221-13/+7
| | | | (cherry picked from commit d1c3b57085b493b47398daf71ce18f16ece57da0)
* man pages: "printcap name" is a global parameter, not a share specific one.Karolin Seeger2008-07-221-1/+1
| | | | | | Karolin (cherry picked from commit 9cde2525560536e16e2dbf991dbeb446260dd0df) (cherry picked from commit 76061eee93fd67b96916a088c64a038e47a48814)
* testsuite: fix expr error on Tru64, triggered by uninitialized failed variable.Michael Adam2008-07-211-0/+2
| | | | | | Michael (cherry picked from commit 25cd227aaecf91dfa3114ae0fd2b47c783434aad) (cherry picked from commit 90f33570e45159193d9336c742bf53d51573849b)
* testsuite: fix another expr syntax error. in tests_all.sh.Michael Adam2008-07-211-1/+1
| | | | | | Michael (cherry picked from commit 486b1bc5b5021565ec443fd463c8287c02c686b3) (cherry picked from commit 4038363b72eb852d462234a1ec85c3cc68765f0d)
* testsuite: fix expr syntax error in net registry test.Michael Adam2008-07-211-1/+1
| | | | | | | | Pointed out by Björn Jacke <bj@sernet.de>. Michael (cherry picked from commit 63e7d9adb7a51b3790eb431615cb6e450391a894) (cherry picked from commit 0dbb8def6b9647bb01f4544361cb87bafdfb3fc8)