summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug 6157Volker Lendecke2009-06-101-0/+56
| | | | | | This patch picks the alphabetically smallest one of the multi-value attribute "uid". This fixes a regression against 3.0 and also becomes deterministic. (cherry picked from commit 47333fc8785457239a499a298536664f152b681d)
* s3-netapi: Fix Bug #6309: support remote unjoining of Windows 2003 or greater.Günther Deschner2009-06-101-1/+2
| | | | | | | | Found by David Markey <admin@dmarkey.com>. Thanks! Guenther (cherry picked from commit ab4b8c9c0438bc5afca17e3ebf05dde6f98bc0aa) (cherry picked from commit 242ae00e56ac553f9ac736b4c2a18b4610bdb6e9)
* Do not crash in ctdbd_traverse if ctdbd is not aroundVolker Lendecke2009-06-101-0/+5
| | | | (cherry picked from commit e5f0f6b7fb428e4cc8e5e782a0038a847d74edcc)
* Fix bug #6089 - Winbind samr_OpenDomain not possible with Samba 3.2.6+Jeremy Allison2009-04-173-37/+36
| | | | | | | | What a difference a name makes... :-). Just because something is missnamed SA_RIGHT_SAM_OPEN_DOMAIN, when it should actually be SA_RIGHT_SAM_LOOKUP_DOMAIN, don't automatically use it for a security check in _samr_OpenDomain(). Jeremy. (cherry picked from commit 8a985bcfe4aee7e602601fe78a94757dce645fcc)
* netdomjoin-gui: make sure to grey out change fields when not running as root.Günther Deschner2009-04-171-0/+15
| | | | | | | Guenther (cherry picked from commit ca3de0103b545c86c8507dfc7d042f1838d5dfb2) (cherry picked from commit cb96e70a1d9112d9e4fff1fda4cf64abc7985347) (cherry picked from commit 64c0c6cfc6d44a9bb8ea13e56ed6c3d1eee3861e)
* s3/smbconf_reg: Fix typo.Karolin Seeger2009-04-171-1/+1
| | | | | | | This used to be commit 6343cab3 in master. Karolin (cherry picked from commit 56e877662dd6da64b348803c24e85f60ee6b3d85)
* Tidy up some convert_string_internal error cases, found by Andrew Bartlett.Jeremy Allison2009-04-011-6/+19
| | | | | Jeremy. (cherry picked from commit e0f3ed481137d83087c4c6da6526eae3b9265838)
* Fix bug #6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb ↵Jeremy Allison2009-03-311-0/+27
| | | | | | | | | | | correctly. For the clustering case. Clustered setups should have only ever used the unsigned version of TDB_DATA in the first place so they can't be in this mess :-). Just do the normal upgrade in the clustered case. Jeremy. (cherry picked from commit 58d3ec1cb81d6086d65cd12acd16cd591cf0c71f)
* s3-net: Fix Bug #6102. NetQueryDisplayInformation could return wrong ↵Günther Deschner2009-03-271-6/+12
| | | | | | | information. Guenther (cherry picked from commit fe102f53d1ac6f888bd559eaf52b6a166d5f78d3)
* Avahi disables a timer by tv=NULL in avahi_timeout_update(), do not crashVolker Lendecke2009-03-271-0/+7
| | | | (cherry picked from commit 57301725e1c92676d3dbb62c81a41507ed1adb7b)
* Add event avahi bindingVolker Lendecke2009-03-271-0/+277
| | | | (cherry picked from commit cb18c1686b3cd20f0535458f8cee24a772560350)
* s3-netapi: Fix Coverity #774 (REVERSE_INULL).Günther Deschner2009-03-271-6/+3
| | | | | Guenther (cherry picked from commit 9bf3e129605d51483fd5ce47c90642f7e82ac102)
* s3-netapi: Fix Coverity #775 (REVERSE_INULL).Günther Deschner2009-03-271-6/+3
| | | | | Guenther (cherry picked from commit 3b0f612c52e992cd130f5176432722bada3c64e4)
* s3-netapi: Fix Coverity #776 (REVERSE_INULL).Günther Deschner2009-03-271-7/+3
| | | | | | Guenther (cherry picked from commit d2e348b191ada5492538b7bdae1bb7cd3f639aba) (cherry picked from commit 76c858c6fcb8111e3fd87a2a8aa2606ab06bb90a)
* version: fix handling of SAMBA_VERSION_VENDOR_PATCH.Michael Adam2009-03-271-1/+1
| | | | | | | We need a string version of this, or else version.c does not compile. Michael (cherry picked from commit f846e0fcdf62333b44a16e5a392930189b512f9b)
* build: fix detection of netinet/ip.h on FreeBSDTimur2009-03-271-0/+1
| | | | | | Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit a3d04991ef409591a7c8b9fbb01e024bd5aaa041) (cherry picked from commit ddcf94787f59cf682c51010b87d3624bbdd6b4a3)
* build: format the header check for netinet/ip.h more nicelyTimur2009-03-271-6/+8
| | | | | | Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit e8aa7169a6672bd32af6c5580f6e8ec7e99511bc) (cherry picked from commit 9baa0c3b119f41c7d65bc13f4f34c6e242ea1abc)
* s3:libsmbconf: add transactions to the libsmbconf apiMichael Adam2009-03-275-0/+57
| | | | | | | | | | | | This is useful for wrapping higher level aggregate operations in transactions. The text backend implementations just return WERR_OK, the registry backend implementatoins use the regdb_transaction_start|commit|cancel routines just added. Michael Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit 8dd46903944c48e171837729cbe937f54d9554b7)
* Add db_tdb_parseVolker Lendecke2009-03-271-0/+12
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit e5936d910cfc3590a3b015e627a5fa308861eaf4)
* Add dbwrap->parse_recordVolker Lendecke2009-03-271-0/+26
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit 68d4e25aad23b670e4ff735377de59ba396940cd)
* s3:dbwrap_ctdb_marshall_add: don't leak the ctdb_rec_data to the outsideMichael Adam2009-03-271-6/+6
| | | | | | | Michael Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit a470af9a18b328548f241dca4f744d25c7cdc13e)
* s3:smbconf: move smbconf_share_exists checks into backendMichael Adam2009-03-272-28/+9
| | | | | | | Michael Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit 11ed4d41906084a604797e761ffd27caf5c67ac3)
* Speed up "net conf list"Volker Lendecke2009-03-271-115/+41
| | | | | | | For 1000 shares this speeds up net conf list from .6 to .25 seconds on my box Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit f8fa246bbae0db96e16e8f3e327577920c6ecec5)
* Speed up "net conf list"Volker Lendecke2009-03-272-4/+3
| | | | | | | | With 1000 shares in the registry, this changed the time of "net conf list" from 1.1 seconds to .6 seconds. Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit c4a1fc734b70efa932df4d4f8d9c66ea4f83ad0b)
* s3: Fix a memleak in dbwrap_rbt.Michael Adam2009-03-271-4/+4
| | | | | | | | | | | | | | | | The SMB_MALLOC'ed rbt node data was not free'd on talloc free of the db context. This is a quick fix using talloc instead of malloc for allocation of the node data. Since malloc was originally used for performance reasons, one might want to reverse to malloc and create a talloc destructor that walks the tree and frees all the node data if this talloc approach proves to be too slow.. Michael Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit 6facbbb4020369c18b4312115fab9b8d6eceaf80)
* s3:smbconftort: don't use reserved words ('test:', 'failure:', 'success:')Stefan Metzmacher2009-03-271-31/+29
| | | | | | | | | Temporary results printfs should not contain reserved subunit words. metze Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit d5750eca159e0bf1095b102545838d771f26a7f7)
* s3:libsmbconf: include smbconf headers with lib/smbconf prefixMichael Adam2009-03-272-4/+4
| | | | | | | Michael Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit 5887fa35156df68416b4da4a45ef0576d8b203c1)
* s3:libsmbconf: use talloc_free instead of TALLOC_FREE in txt backendMichael Adam2009-03-271-5/+6
| | | | | | | Michael Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit 8589fa2cfe8fb549b013d2f15a598e43e28b64d7)
* s3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf_initMichael Adam2009-03-271-1/+1
| | | | | | | Michael Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit dc0583613dfd8ce8f9209a8fb56e6c41a14efd0a)
* s3:libsmbconf: use talloc_free instead of TALLOC_FREE in testsuiteMichael Adam2009-03-271-5/+5
| | | | | | | Michael Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit 9dfc6c9de92e58173e73d67a6dd56b4b4336909b)
* s3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf_util.cMichael Adam2009-03-271-2/+2
| | | | | | | Michael Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit a077a710b9d402ed7ac86ab98dc2a98776b8f9bc)
* s3:libsmbconf: use talloc_free instead of TALLOC_FREE in smbconf.cMichael Adam2009-03-271-2/+2
| | | | | | | Michael Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit 9685cbd3ab0304c0439f668d7b4963ab264729b2)
* s3:libsmbconf: remove the init headers from smbconf.hMichael Adam2009-03-275-19/+100
| | | | | | | | | | | | | give the smbconf_init() dispatcher and the backends (smbconf_reg and smbconf_txt) a header of their own each. This allows to use the basic infrastructure and single backends individually. Michael Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit defb4430114091474dfef0114ebb176bfb5026ea)
* libsmbconf: create text config in smbconftortMichael Adam2009-03-271-1/+38
| | | | | Michael (cherry picked from commit 13521c9c1e0f93ea956c1d0b22f1979e7124c72e)
* libsmbconf: return WERR_BADFILE when no path to text backend is provided.Michael Adam2009-03-271-1/+1
| | | | | Michael (cherry picked from commit 4a6c0a234ddfa545f137f8842a7e92224e72bcad)
* libsmbconf: fall back to file backend when no valid backend was foundMichael Adam2009-03-271-4/+5
| | | | | | | | | | Interpret the source string as a file name when it contains a ':' sign but the initial part is not a known backend. This might occur even implicitly when "%T" is used in an include file name (even though this is not realistic..). Michael (cherry picked from commit 8dd78e82ef694f35604f5328378f2422dcd561f5)
* libsmbconf: fix comment typo.Michael Adam2009-03-271-1/+1
| | | | | Michael (cherry picked from commit e035a2d419cab20e8cd8efd532b8388d4cc364a6)
* libsmbconf: remove unused define.Michael Adam2009-03-271-3/+0
| | | | | Michael (cherry picked from commit 85a90a26baaf916862b45ab2114edf9bf6f2e46d)
* s3:libsmbconf: use talloc_free instead of TALLOC_FREE in reg backendMichael Adam2009-03-271-20/+20
| | | | | Michael (cherry picked from commit 7deb120bf22dc5857af9051eeba7b8dabe4016e5)
* libsmbconf: add method is_writeable() and wrapper smbconf_is_writeable()Michael Adam2009-03-275-0/+29
| | | | | | | This allows for per-config-source checking of write support. Michael (cherry picked from commit 9cb280f7d721c71c5cecc2fd56cc75ce4b4a7e5b)
* libsmbconf: add backend_requires_messaging() method to libsmbconf.Michael Adam2009-03-275-0/+28
| | | | | | | | In a clustered environment, the registry backend needs messaging to be set up since ctdb requires this. Michael (cherry picked from commit 5d2255e13cf2e468887a61fb9a7e99d2ba665333)
* fixed a bug in message handling for code the change notify codeAndrew Tridgell2009-03-101-2/+16
| | | | | | | | | | | | | | | | | | The change notify code registered a separate message handler for each tree connect. This registration uses the global messaging context. The messaging code would consider a 2nd registration for the same messaging type as being an 'update' of the handler, rather than a new handler. It also would only call the first handler in the linked list for a given message type when dispatching messages. This patch changes the messaging code to allow for multiple registrations of the same message type, and allow for multiple calls to different messaging handler for one incoming message. This fixes the problem with the test_notify_tcon() test that I recently committed to the S4 smbtorture (cherry picked from commit 89e340e09fbdc375c0aa85506add525b8ba5dcd0)
* s3:lib: interfaces.c isn't used in the configure tests anymoreStefan Metzmacher2009-03-101-73/+1
| | | | | | | | | | libreplace always provides the getifaddr() function. This fixes the build on sles8. metze (cherry picked from commit 1410490fe769bc79f98b4ab364685c7aed253e09) (cherry picked from commit bac96af2053996f28894458fce87e84c5c2356ff)
* Fix a bug that prevent core files from being createdTim Prouty2009-03-061-1/+0
| | | | | | | | Removed an erroneous free() that was causing the corepath to be NULL during dump_core(). This prevented dump_core() from actually calling abort() to create a core file. The bug was introduced in December by: 0994b094569474d47e7b98e39438829e962a27e1 (cherry picked from commit a70bb435d339df52eef56fb0c5788534252d7ab7)
* More warning fixes for Solaris.Jeremy Allison2009-02-246-18/+10
| | | | | Jeremy. (cherry picked from commit aea38950ff4865f1d791cd19619fadcd59eaf480)
* all BSDs use this evironment variableBjörn Jacke2009-02-241-1/+1
| | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit cd6ae0de52164dd6f50b3614f2511acb3eb15993) (cherry picked from commit 1ad5f50bdab761c7d3894e94f8fe3b171ec1b219)
* enable IPv6 support for NetBSD, FreeBSDBjörn Jacke2009-02-161-0/+1
| | | | | most systems include netinet/in.h via netdb.h but *BSD don't. (cherry picked from commit 5b551d6e3ef2c69a5fd050abcecb4c6b0ab36402)
* Have nmbd check all available interfaces for WINS before failingAravind Srinivasan2009-02-161-2/+5
| | | | | | | | | | When nmbd is acting as WINS, it picks the first interface's IP as WINS server's IP. If the first interface's IP is zero, we will just quit (even though we might have other interfaces with valid IPs). This patch makes nmbd look at all interfaces and pick the first interface with a valid IP as the WINS server's IP. (cherry picked from commit d998ee9025f2ad2df73e25c12e35e9218b97147e)
* Fix bug #6082 - smbd_gpfs_getacl failed: Windows client can´t rename or ↵Jeremy Allison2009-02-161-1/+4
| | | | | | | | | | delete file This fixes the generic rename/delete problem for 3.3.0 and above. Fixed slightly differently to discussions, user viewable modified ACLs are not a good idea :-). Jeremy. (cherry picked from commit c5462c8b43435763783185a03029903efe3b0c11)
* add Tru64 sub-second resolution timestamp supportBjörn Jacke2009-02-161-0/+24
| | | | (cherry picked from commit 61465c57b9579a6f25381a9f16bca0852ca67f75)