summaryrefslogtreecommitdiffstats
path: root/source
Commit message (Collapse)AuthorAgeFilesLines
...
* 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)
* VERSION: Raise version number up to 3.2.2.Karolin Seeger2008-08-051-1/+1
| | | | | Karolin (cherry picked from commit c6d2845fddb6eefc78435356f2d004e4dc95d803)
* Compile error on AIX 6.1Yannick Bergeron2008-08-051-8/+8
| | | | (cherry picked from commit afe139e3272b324df2dec2d4066b351b03792dc8)
* 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)
* 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)
* 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)
* 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)
* Use sys_getgrnam not getgrnam. Pointed out by Herb.Jeremy Allison2008-07-251-5/+5
| | | | | 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)
* 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)
* Fix the build of vfs_zfsacl.cVolker Lendecke2008-07-201-16/+1
| | | | (cherry picked from commit b83beeda44e1c8d485c2ad6bb8ee539cdcbe8bda)
* Change the directory parameter in streams_depot to become consistentVolker Lendecke2008-07-181-1/+1
| | | | | | This is not built by default and not documented in 3.2.0, so I doubt this will break any setups :-) (cherry picked from commit ca2dfb372cfd9096407fca67a6b65bceda6f72b6)
* From Jim McDonoughJeremy Allison2008-07-182-7/+14
| | | | | | | | | In reloading the smb.conf, if a "log file" is specified in smb.conf, winbind children will overwrite the logfile name to be the same as the parent. Jeremy. (cherry picked from commit 147dc45cfb0da3677e381bec3873b9645b320f60)
* allow SID with 0 in subauthority to be converted properlyHerb Lewis2008-07-181-1/+2
| | | | | from string representation. (cherry picked from commit eaee722ca74af274e628cbd868753800bddc3e97)
* Allow %u parameters for print job username - use advanced subBo Yang2008-07-181-2/+4
| | | | (cherry picked from commit 11a8f5161184914bec031c741c57bbce19998d2c)
* smbldap: Fix typo in debug message.Karolin Seeger2008-07-181-1/+1
| | | | | | Karolin (cherry picked from commit 6e9e85b897431d7378396aada2c32ae470af0edd) (cherry picked from commit 1e6ae16bce110e282400026c9af8e1b3d9f2e6b4)
* A brown paper bag bug fix for "net sam rights"Volker Lendecke2008-07-171-1/+1
| | | | | (cherry picked from commit 8a455b012827cfb917473a160c5710a90490451a) (cherry picked from commit 857e9d2b27eb6824a8056490076fa020fd185a6d)
* Release still reachable memory if the smbclient context is freed.Andreas Schneider2008-07-161-0/+19
| | | | | Signed-off-by: Andreas Schneider <anschneider@suse.de> (cherry picked from commit 88c9cf2fdc8f3d704f7f27c25ef6dc6940d451d3)
* Fix from Volodymyr Khomenko <Volodymyr.Khomenko@exanet.com>. Make ntimesJeremy Allison2008-07-161-2/+6
| | | | | | function more like POSIX and allow NULL arg. Help vfs developers. Jeremy. (cherry picked from commit a034ad5b28dc22b76ef91901306d5c4f9102178f)
* Fix swat. Bug #5613.Jeremy Allison2008-07-162-22/+18
| | | | | Jeremy (cherry picked from commit 1036bd6f8adcff316d2d86201b1a7097b4b9fe0c)
* testparm: refactor the per-share logic checks out into do_per_share_checks().Michael Adam2008-07-161-58/+67
| | | | | | | | Just to enhance clearness of the code. Michael (cherry picked from commit cd5d13dec0153c64d541e85bd13138b738cf50af) (cherry picked from commit 01b1aff4ac884b91d95d89ac7e53cb0e1a748787)
* testparm: skip the per-share logic checks when --skip-logic-checks is specified.Michael Adam2008-07-161-1/+1
| | | | | | Michael (cherry picked from commit 6cafee7e6ae02a32a9f2ddf313d2a20224fa22fe) (cherry picked from commit 3b8524957561911ae7943172fe775200fc98f75a)
* testparm: rename -g|--skip-global-ckecks to -l|--skip-logic-checksMichael Adam2008-07-162-4/+4
| | | | | | | | | | | as suggested by Karolin. That is what it really means. And per-share logic tests will be disabled by the same switch, too... Michael (cherry picked from commit 5b8a4c33482917a1ef7071df224957ba831d853a) (cherry picked from commit 04cdfbba747b928c3133e29446c0fe91c39a41f2)
* testsuite: fix bug #5594 by using the new --skip-global-ckecks switchMichael Adam2008-07-161-1/+1
| | | | | | Michael (cherry picked from commit 32f4b1443af12026c419684be45a7d8b96ccfaac) (cherry picked from commit 87c4f1fc67df146585a6e0862b701b6e6193f0f0)
* testparm: add a switch --skip-global-checks.Michael Adam2008-07-161-1/+5
| | | | | | | | | | This allows for successfully calling testparm without the need to "make install" before. Without this, testparm fails with the message that the lock directory does not exist... Michael (cherry picked from commit eeb018fad65c19804a4e96ea949fc2c64883439e) (cherry picked from commit 1f245e41fa41d2b67eaa7cc85c29da3384697275)
* Add fix from Simo for bug #5540 - missing code to substituteJeremy Allison2008-07-161-3/+6
| | | | | | %u. Make this the same as other uses. Jeremy. (cherry picked from commit 56d8ed48a94b558ad442e38c3d1925c4810dc508)
* build: use $(PAM_WINBIND_EXTRA_LIBS) instead of @PAM_WINBIND_EXTRA_LIBS@ in ↵Michael Adam2008-07-161-1/+2
| | | | | | | | | rules. Eliminate more potential traps for picky makes. Michael (cherry picked from commit 9a2870e936a967b82a100b1e26200d3665311f85)
* build: use $(WINBIND_NSS_PTHREAD) instead of @WINBIND_NSS_PTHREAD@ in rules.Michael Adam2008-07-161-1/+2
| | | | | | | Eliminate more potential traps for picky makes. Michael (cherry picked from commit 1aad6661adc5800243969b761c653b57ff280f69)
* build: use $(WINBIND_NSS_EXTRA_LIBS) instead of @WINBIND_NSS_EXTRA_LIBS@ in ↵Michael Adam2008-07-161-1/+2
| | | | | | | | | rules. Eliminate more potential traps for picky makes. Michael (cherry picked from commit 7420f409c2fbfd5f90d45a4a435489fe31016581)