summaryrefslogtreecommitdiffstats
path: root/source
Commit message (Collapse)AuthorAgeFilesLines
...
* Revert "build: use $(LIBNETAPI_LIBS) instead of @LIBNETAPI_LIBS@ in rules."Michael Adam2008-08-181-2/+1
| | | | | | | | | | This reverts commit 22d0f686eb6649b3d4a8c7f142257e303c54568e. In preparation of picking libraray creation/install fixes. To be re-added later. Michael (cherry picked from commit 61e32e9255fd06ecaabc3b27a6d7dc254a7cb521)
* Revert "build: use $(LDAP_LIBS) instead of @LDAP_LIBS@ in rules."Michael Adam2008-08-181-1/+1
| | | | | | | | | | This reverts commit a7ee1c16c234ad5d0aa8853081d8f5f4f763614b. In preparation of picking libraray creation/install fixes. To be re-added later. Michael (cherry picked from commit 69fafff2626841ce5e3832f9a96b78f2a2ed6d33)
* Revert "build: use $(WINBIND_NSS_EXTRA_LIBS) instead of ↵Michael Adam2008-08-181-2/+1
| | | | | | | | | | | | @WINBIND_NSS_EXTRA_LIBS@ in rules." This reverts commit 7420f409c2fbfd5f90d45a4a435489fe31016581. In preparation of picking libraray creation/install fixes. To be re-added later. Michael (cherry picked from commit e60e337807c5bb95268aadaf68e619cb6262f8e9)
* Revert "build: use $(WINBIND_NSS_PTHREAD) instead of @WINBIND_NSS_PTHREAD@ ↵Michael Adam2008-08-181-2/+1
| | | | | | | | | | | | in rules." This reverts commit 1aad6661adc5800243969b761c653b57ff280f69. In preparation of picking libraray creation/install fixes. To be re-added later. Michael (cherry picked from commit f6e5e3a98d6426052150ef35c6ddccac1367bcf9)
* Revert "build: use $(PAM_WINBIND_EXTRA_LIBS) instead of ↵Michael Adam2008-08-181-2/+1
| | | | | | | | | | | | @PAM_WINBIND_EXTRA_LIBS@ in rules." This reverts commit 9a2870e936a967b82a100b1e26200d3665311f85. In preparation of picking libraray creation/install fixes. To be re-added later. Michael (cherry picked from commit 3ae8e1ca573f19ecbdcb1a5fbc64fac22671a6aa)
* build: move libwbclient related target to libwbclient section in Makefile.inMichael Adam2008-08-181-23/+24
| | | | | | | | | Michael (cherry picked from commit 8f64706b095b9ca0e2a8f39cc3133bfd02f86158) resolved conflicts (cherry picked from commit ba6a10f28f5161f725fff929df6fb8a4fa81b061)
* build: move libtdb target further down following common schema like with ↵Michael Adam2008-08-181-2/+2
| | | | | | | | libtalloc Michael (cherry picked from commit f94b07f0c56928f890ffb1e2aca2c8bfcc954dd5) (cherry picked from commit ed8622ea9d58620bd5319e5cd5c32ebf7838d6fb)
* build: fix uninstalllibnetapi target - handle symlink libnetapi.soMichael Adam2008-08-181-5/+6
| | | | | | | | | and use the defined variables instead of hardcoded bits. Also move the target into the libnetapi section (forgotten last time). Michael (cherry picked from commit 21b6164795344cea45161bc01828ec1127b5b6ab) (cherry picked from commit f471bcda42f4d504830989f9c69382075c701b39)
* build: fix installlibnetapi target - install symlink libnetapi.so (if ↵Michael Adam2008-08-181-1/+7
| | | | | | | | appropriate) Michael (cherry picked from commit 59e7827e557c5096fb363051a4cf1835b2a53223) (cherry picked from commit e4a7abb5f978475493c8c1d10dd078b778a857bf)
* build: add a cleanlibnetapi target and use it in make cleanMichael Adam2008-08-181-3/+10
| | | | | | | | | Michael (cherry picked from commit ff62887a94a7dd6f09995c820db7d825828bacad) resolved conflicts (cherry picked from commit cf7c21409bce6fc39cf62ced54191e7a78ea470b)
* build: fix creation of the libnetapi shared lib: create soname libraryMichael Adam2008-08-181-3/+8
| | | | | | | | and add the .so file as symlink Michael (cherry picked from commit d9af2f7ab6b839e8074a69ce5d1fe66548c08e52) (cherry picked from commit e278895d41780ba7022a085229d2b0482be5f0ea)
* build: move libnetapi related definitions and targets together into the ↵Michael Adam2008-08-181-31/+32
| | | | | | | | | | | | | libnetapi section. in Makefile.in Michael (cherry picked from commit da29e1ce44d4f99b876259fbad892691e2c7d7e0) resolved conflicts (cherry picked from commit d3c483ffac09498fc0ebe23b7c9b890586849597)
* build: add an uninstalllibtdb target.Michael Adam2008-08-181-0/+6
| | | | | | Michael (cherry picked from commit c50c847f4b9772261f8011f32eec97d8244dccdd) (cherry picked from commit 25852c3df675cdbbac07d919cb5c088b7146d1ef)
* build: fix the installlibtdb target to install the soname file of libtdb.Michael Adam2008-08-181-1/+6
| | | | | | | | and create the .so file as a symlink (if appropriate) Michael (cherry picked from commit 5c090762f769b645c411333aef2085362bb2e6cb) (cherry picked from commit 1fc6b24ac85aee70802d88a9f8280776a0beb3ca)
* build: create a cleanlibtdb target and use it in target clean.Michael Adam2008-08-181-2/+10
| | | | | | | | | Michael (cherry picked from commit ebfe13b79b24791bd9c854ac2f239f02796da6bb) resolved conflicts (cherry picked from commit 2ae7ab1640b8f8da8c74be5e88480bd3293a4dbf)
* build: fix creation of the libtdb shared library.Michael Adam2008-08-181-5/+10
| | | | | | | | | Create the libtdb.so.1 file and create the .so file as the symlink. Not vice versa. Michael (cherry picked from commit 662d666b41b11ae70daf7422b1ced5f86209e608) (cherry picked from commit dfd2262ca469e7e409e0061ed62c14ac72d5440a)
* build: move libtdb related definitions and targets to libtdb section in ↵Michael Adam2008-08-181-16/+16
| | | | | | | | Makefile.in Michael (cherry picked from commit a4de301af48f4e5b4898751e8836bdb434d047a6) (cherry picked from commit d0fa43966e5486512e04bd28cf84f24896d035d1)
* build: move all libtalloc related definitions into the libtalloc section in ↵Michael Adam2008-08-181-14/+13
| | | | | | | | Makefile.in Michael (cherry picked from commit b330892f4b2f9f50fd192e37720217d15fedf1f0) (cherry picked from commit 8a2c96bd92e2090a7542709819b2f478247da6da)
* build: move top level targets for the libs into the corresponding sections ↵Michael Adam2008-08-181-8/+15
| | | | | | | | in Makefile.in Michael (cherry picked from commit 4092059ff0bbb638c937c3f2b977ad431d868331) (cherry picked from commit ddf6b352fe79e3118e20b50e0f0a981dc44634a9)
* build: add more structuring comments to Makefile.inMichael Adam2008-08-181-0/+46
| | | | | | | | for several shared libs and shared modules section Michael (cherry picked from commit 53cc6a3225c0c7baea4d8ea04eefc61283650434) (cherry picked from commit e5b3718913f52afe7df3b0e017451d9ece330191)
* build: add a "make shlibs" target to build all the shared libraries.Michael Adam2008-08-181-0/+2
| | | | | | Michael (cherry picked from commit 5a99f59d7514edadbab081dc0c5c28a6ea26972a) (cherry picked from commit 387707e4e48ebcaf1951d440362c301495903946)
* build: add structuring comments for libraries and libtalloc section.Michael Adam2008-08-181-0/+13
| | | | | | Michael (cherry picked from commit 3de000890447dd15962fbd6a9b1b3504b9bd1175) (cherry picked from commit b5ccce5db2f034dbeade68d97f55d973db241321)
* build: fix installlibtalloc to not install symlink if the library is not thereMichael Adam2008-08-181-1/+4
| | | | | | Michael (cherry picked from commit 52ccb52c8e42e748fcc05337849945ddc30d5efa) (cherry picked from commit 512cf07187c33f17e1724d345fffb4f813fa8768)
* build: move libtalloc related targets together.Michael Adam2008-08-181-16/+17
| | | | | | Michael (cherry picked from commit 01b1e642d72ecccac5277b5f071aab8f6df04c0d) (cherry picked from commit 9509bfbbb0581d71d15110aa8192c00ef3a89c40)
* build: add a cleanlibtalloc target.Michael Adam2008-08-181-3/+11
| | | | | | | | | Michael (cherry picked from commit 5d3c6c3c1c08747c521292ef09648ad528c2dca9) resolved conflicts (cherry picked from commit 76cfd3116a0d30301bdb1e728debe615e6caddc3)
* build: add an uninstalllibtalloc targetMichael Adam2008-08-181-0/+6
| | | | | | Michael (cherry picked from commit 4b6ef6202cd9b6e1e8949c43d0c45c04d4b97438) (cherry picked from commit 22e28489a7ae01bb7adc994008e6b062b2d74a66)
* build: fix creation of link libtalloc.so on some systems.Michael Adam2008-08-181-0/+1
| | | | | | | | | | ln -s -f seem to be unknown on some solaris versions (e.g.). so if there is an old libtalloc.so around, this will fail. use rm -f prior to creating the link to circumvent this. Michael (cherry picked from commit d913b1e7316e84c1430f9d577f49d3c3e4e7719b) (cherry picked from commit 1cf4d4aaa4bcec2dcc7b99288f4818b0535fdfad)
* build: fix the installlibtalloc target to install SONAME and \.so versions ↵Michael Adam2008-08-181-1/+3
| | | | | | | | of shared lib. Michael (cherry picked from commit 49919889892f258cc669b08417e7569e8f5efaf4) (cherry picked from commit 03f8b71417188e363d04eacff0904b693a06b339)
* build: fix creation of talloc shared lib.Michael Adam2008-08-181-4/+7
| | | | | | | | link the libtalloc.so.1 file and create libtalloc.so as a link Michael (cherry picked from commit 946537e6bec904d4a7937eeb6085dfac19c3e2b5) (cherry picked from commit f75a3ff33255ba3cc12535f1c0405c0a0b2ca410)
* build: add ability to use library files of the form NAME.so.VERSION to ↵Michael Adam2008-08-181-1/+1
| | | | | | | | create version script name. Michael (cherry picked from commit b8d13f8773f61863b71bfc9df468f0018b0db0d1) (cherry picked from commit 3b221c60cc92dfaa7ca7c45b1ee3d8efa0e15197)
* Add double-colon where it makes sense.Jelmer Vernooij2008-08-181-62/+62
| | | | | | | (cherry picked from commit 256200e951476ff31c95a7d5621a50ba297ea6e4) Conflicts resolved (obnox) (cherry picked from commit df52ff62eb890fd645b1c955d72f4bec90851929)
* Revert "build: fix bug #5608: link creation for libtalloc.so.1 (and friends) ↵Michael Adam2008-08-181-4/+0
| | | | | | | | | | | on solaris 8" This reverts commit f4d26db5dfccb962f5ca2cc03e9012a9883e16d8. In preparation of the library cration / installation changes. Michael (cherry picked from commit 8fd80452ec71b621adb48b735229f6214dfca85e)
* Fix show-stopper for 3.2. Smbd depends on group SIDJeremy Allison2008-08-151-0/+34
| | | | | | | | | | | position zero being the primary group sid. Authenicating via winbindd call returned a non-sorted sid list. This fixes is for both a winbindd call and a pac list from an info3 struct. Without this we mess up the primary group associated with created files. Found by Herb. Jeremy. (cherry picked from commit 5cfa78d6e45477cb952d3b12cc914635842d6251)
* Fix bug #5692 - Core dump in full_audit.so.Jeremy Allison2008-08-153-5/+4
| | | | | | There were some function mismatches in the various GET_NT_ACL modules (some places the fsp parameter has not been removed). Jeremy. (cherry picked from commit 12b4ed7c3c10a6a29d108f6a83d961bf19751ca7)
* smbspool: Fix printing on port 139.Karolin Seeger2008-08-141-1/+1
| | | | | | | | | | | This one was introduced with 8eff35bc. Thanks to Noèl Köthe for tracking that down! Karolin (cherry picked from commit 250f5a40d6e80305220d7cdc6a8f8459d8d0de74) (cherry picked from commit d7a50f1b22f5ccc5d027f8c2eeb73fa335d49f81) (cherry picked from commit 50d6d617e5b76c3566b719dffe0058c5a0599dd0) (cherry picked from commit 8e4f9b935f57f73c0f1a653ac02b59677c1192d1)
* Fix coverity CID: 594. Resource leak on error path.Jeremy Allison2008-08-141-2/+4
| | | | | Jeremy. (cherry picked from commit dcd28df09538922369cb613ac95c147365e02c42)
* Fix for bug #5688 from SATOH Fumiyasu <fumiyas@osstech.co.jp>. LPQ process ↵Jeremy Allison2008-08-141-1/+2
| | | | | | | | is orphaned if socket address parameter is invalid. If the "socket address" parameter is a null string that is an invalid value for Samba 3.2 but valid for Samba 3.0. Jeremy. (cherry picked from commit a46dc151f692e6b4bd14d3881f90bca5fe5b9474)
* Fix for bug #5617, reported and patched by Bartosz Antosik antosik@gmail.com.Jeremy Allison2008-08-141-0/+2
| | | | | | | xp/2003 explorer freezes browsing shares on samba ipv6 hosts. Caused by missing reply packet to SMB printclose packet. Jeremy (cherry picked from commit 93c977e80594e20ebd562b1eb8a03d57b9299461)
* Prevent NT_STATUS 0xF1000000 errors from appearing whenJim McDonough2008-08-141-0/+6
| | | | | | | dos errors are used and there is no error. It should be mapped directly to NT_STATUS_OK. smbclient to older servers didn't work. (cherry picked from commit 43054b199cb2a5f12c8e0c2bb14cf2328a945152)
* netapi: add c++ guard.Günther Deschner2008-08-131-1/+9
| | | | | Guenther (cherry picked from commit 5ea69915a75447d9f66b651ef5601c0a7ac6cfbb)
* Attempt to fix bug 5684Volker Lendecke2008-08-131-1/+1
| | | | | | | | | | | | | | With the ctdb checkin dde9f3f006 tdb optimized out write lock checks for write-enabled transaction. Sadly, this also removed the possibility to ever remove dead records left over from tdb_delete calls within a transaction. Tridge, please check this! Did dde9f3f006 have any reason beyond performance optimizations? Thanks, Volker (cherry picked from commit 96d683d3ec1e95cddf9ec96326ebaf8e9cc2079c)
* I found lots of places where we assume error will be set when callingAndrew Tridgell2008-08-132-4/+12
| | | | | | | | | | | | | | | | one of our virtualised functions, such as db_open(), but error is only set when a system call fails, and it is not uncommon for us to fail a function internally without ever making a system call. That led to us passing back success when a function had in fact failed. I found two places where we relied on map_nt_error_from_unix() returning success when errno==0, but lots and lots of places where we relied on the reverse, so I fixed those two places. map_nt_error_from_unix() will now always return an error, returning NT_STATUS_UNSUCCESSFUL if errno is 0 (cherry picked from commit 69d40ca4c1af925d4b0e59ddc69ef8c26e6501d1) (cherry picked from commit 8c66020a82d9b92fb10d14359b1381d58ad4972b)
* Fix unix_convert() for "*" after changing map_nt_error_from_unix().Michael Adam2008-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | map_nt_error_from_unix() now assumes that it is called in an error path and returns an error even for a given errno == 0. The original behaviour of unix_convert() used the mapping of errno == 0 ==> NT_STATUS_OK to return success through an error path. I think this must have been an oversight, and unix_convert() worked only by coincidence (or because explicitly using the knowledge of the conceptually wrong working of map_nt_error_from_unix(). This patch puts this straight by not interpreting errno == 0 as an error condition and proceeding in that case. Jeremy - please check! Michael (cherry picked from commit 736bdf15d934028b579a02dc411aed6c14a437f3)
* Make sure to always set errno on error path in OpenDir (and hence ↵Michael Adam2008-08-131-0/+1
| | | | | | | scan_directory). Michael (cherry picked from commit 06304f3c5f538c75bfc63c7abc1457d2b4dc0f0b)
* 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-136-38/+42
| | | | | | | | | | 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)
* 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)