summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2008-07-09Revert "tdbtool: fix off-by-one error in argument length. (bug #2344)"Michael Adam1-1/+1
This reverts commit fafb8ad2b81b9a46cf8259bedc1dca5023b06115. This fix is not valid: 1. convert_string() is not only used for key strings but also for data. 2. Some databases use string_tdb_data() i.e. non-null-terminated strings as keynames and others (like the one I was using), use string_term_tdb_data(), i.e. zero-terminated key strings. After discussion with Metze, the easiest (and proper way) to handle this is to specify key names as "keyname\0" for databases which use string_term_tdb_data(). Sorry for the noise... Michael (cherry picked from commit 17c012c4645f4e9542537c15f80d9b4e74304d11) (This used to be commit 42c953c106b3da90e8c3452c4a246392502c200d)
2008-07-08Merge branch 'v3-3-test' of ssh://git.samba.org/data/git/samba into v3-3-testDerrell Lipman1-2/+2
(This used to be commit 2dab9ad77954dc608f8910bf4d3cb92fcaad5cb6)
2008-07-08[BUG 5580] Allow access to DFS shares via libsmbclientDerrell Lipman1-0/+5
Brian Sheehan provided a nice patch intended for the 3.0 code base. This commit applies a similar patch for the 3.3 code base. It adds a new public function to libsmbclient -- smbc_set_credentials() -- that may be called from the authentication callback when DFS referrals are in use. Derrell (This used to be commit 888f922bd0d1c84a687d404e95ae314a9dd0aee1)
2008-07-08Minor style correctionZach Loafman1-2/+2
Set sin[6]_family instead of ss_family in in[6]_addr_to_sockaddr_storage so that assignments look like they're going to the same place. (This used to be commit 3d19112f645fb0f4bb6b644207ed2cee0b6b3ea9)
2008-07-08tdbtool: fix off-by-one error in argument length. (bug #2344)Michael Adam1-1/+1
This prevented all commands operating on keys (all non-traverse commands) in tdbtool to fail with a "fetch failed" or "delete failed" message. It seems that it fixes bug #2344 ... Apparently this bug was introduced with 94e53472666ed in 2005. Either nobody is using tdbtool or else tdb_find() has become more strict about the key legth in the meantime. :-) Michael (This used to be commit 9be6b46f7715cdc7f77308d7613e8df73effe3c1)
2008-07-03Remove gencache_[un]lock_entryVolker Lendecke1-25/+0
Günther agreed that it might be unnecessary in dsgetdcname_cache_store() :-) (This used to be commit 7a5a575ffe5196caecedc93970a25abfbe6f8059)
2008-07-03Return timed out entries from gencache_get if timeout param != NULLVolker Lendecke1-10/+15
net cache get was the only one interested in the timeout. That single caller can take care of the timeout itself then. With this API change idmap_cache.c can be converted to gencache. (This used to be commit 2954b2be563149380e1fae7fe088b98d6cbd42e7)
2008-07-03netapi: fix doxygen warning.Günther Deschner1-1/+1
Guenther (This used to be commit cfd59383d680e41a885e546842b0eb8585123acb)
2008-07-02Remove worrying warning message when safe_strcpy tries to copy a pseaudo ↵Jeremy Allison1-1/+1
interface name that's too long. Reported by James Kosin <JKosin@intcomgrp.com>. Jeremy. (This used to be commit 3a7542fd495223c3a504571a52e2d00551fea0e2)
2008-07-02Fix bug #5578, reported by sendel2000@hotbox.ru. Bad (non-Samba) use of ↵Jeremy Allison1-0/+3
strlcat gives error. Jeremy. (This used to be commit d7c82997bdcf1acd7ac104efa0ad05e0b94935ea)
2008-07-01MSG_DEBUG now forwarded to all the winbindd children by parent.Darshan Purandare1-1/+1
smbcontrol winbindd debug level would only set the debug level of the parent winbindd process and not the child processes. This patch adds the functionality of broadcasting the debug message to all winbindd children. Now the debug level message is propagated to all the winbindd processes that includes parent and children. (This used to be commit cfbcfc3ffe74f28ec874a6bf1ab93f55f405b6e6)
2008-07-01Jim Brown <jim.brown@miami.edu> was right, this needs to be a signed int orJeremy Allison1-1/+1
the loop never terminates. Jeremy. (This used to be commit 80e547665d104a6db376ff4c48bcc01dfd3513ee)
2008-07-01Fix problem noticed by Jim Brown <jim.brown@miami.edu>. When reverse ↵Jeremy Allison1-1/+1
searching decrement index, not increment. Michael please check ! Jeremy. (This used to be commit d89f9d404f478fc9887bb6e67ce28a61464bcf93)
2008-06-27Do not segfault if corepath is not set up properlyVolker Lendecke1-0/+5
(This used to be commit 41d1b9541ccb802f01f12038b3b81853b3b7c32d)
2008-06-27Fix warnings on SuSE 9.0.Karolin Seeger1-0/+8
The macros "[un]likely" are already defined on SuSE 9.0. Patch from Volker. (This used to be commit 30d181c92463aecd6e649330d3645d86d5a17e43)
2008-06-26ctdbd_connect: bump debug level to 1 for "connect failed" message.Michael Adam1-1/+1
Leave level 0 message for higher level callers. Michael (This used to be commit fee770e5d080b0513418e61e469f2824a1d771ec)
2008-06-26messages: bump debug level to 1 for "messaging_ctdb_init failed".Michael Adam1-2/+2
Leave level 0 messages to higher level callers. Michael (This used to be commit 7bbf29137bf051044cbf0db8d9fe564a7c9d7a29)
2008-06-25netapi: add NetUserChangePassword() example code.Günther Deschner2-0/+105
Guenther (This used to be commit ac5aaf29004584d0f1821689eb985d837cda1aa1)
2008-06-25netapi: add NetUserChangePassword() to public headers.Günther Deschner1-0/+20
Guenther (This used to be commit 5d06891238d7dddedeb6fe2aca677c765b90c74a)
2008-06-25netapi: add NetUserChangePassword skeleton.Günther Deschner3-0/+72
Guenther (This used to be commit f4ce6887103d0f50bf9a91251e2aceb77674604f)
2008-06-24libads: use ads_connect_user_creds in some places.Günther Deschner1-1/+1
Guenther (This used to be commit ebf31203e7cf22e32b986c536279688b17a65d22)
2008-06-23time: move uint64s_nt_time_to_unix_abs() to lib/time.cGünther Deschner1-0/+7
Guenther (This used to be commit 58f54f180f0a942776455ab6e813628422493dac)
2008-06-23libsmbconf: add "includes" to the forbidden_valnames[].Michael Adam1-0/+1
This removes the warning messages 'Unknown parameter encountered: "includes"'. Michael (This used to be commit b20019ceaaf4a8964792f6ba37f50f91b6847e7f)
2008-06-23libsmbconf: fastpaths first in smbconf_reg_valname_valid().Michael Adam1-2/+2
Before dropping into lp_parameter_is_valid(). Michael (This used to be commit 59beb7acd777a4c224dce90fbbff7a137d2b89c1)
2008-06-23init_shared_module -> init_samba_moduleVolker Lendecke2-4/+4
(This used to be commit 9b174871a87677f7dfbd897a80e526f203906bea)
2008-06-21Use "init_shared_module" instead of "init_module" for initializing .so'sVolker Lendecke2-5/+7
(This used to be commit 0c2fd687b25e32d446ef799927db6933bc61223d)
2008-06-20Fix bug #5531 - fix conversion of ns units when converting from nttime to ↵Jeremy Allison1-2/+6
timespec. Fix from hkurma@datadomain.com. Jeremy. (This used to be commit 8c87a4319cc83f55fb105cae81a8efbc3fb5b98b)
2008-06-19Wrap the unix token info in a unix_user_token in auth_serversupplied_infoVolker Lendecke1-1/+1
No functional change, this is a preparation for more current_user ref removal (This used to be commit dcaedf345e62ab74ea87f0a3fa1e3199c75c5445)
2008-06-19Fix the build on FreeBSD 4.6.2Volker Lendecke1-4/+5
(This used to be commit 4f50cb63e9b565ae0747127baa651a1a1874298b)
2008-06-18Fix Bug #5548 (segfauls in handle_include with %m macro expansion).Michael Adam1-1/+4
In alloc_sub_basic, when expanding '%m', substitute "" instead of NULL for remote_machine when this is NULL. Else a NULL string is returned. Michael (This used to be commit c65b456c6a145d15b7fd27a2a3440a0709fc3277)
2008-06-17netapi: use NetUserEnum filter in example code.Günther Deschner1-1/+1
Guenther (This used to be commit ad105177686da823ef9cce1c1bedaf0f84a49b8c)
2008-06-17netapi: add NetUserEnum filter constants to public headers.Günther Deschner1-0/+6
Guenther (This used to be commit 32a66131eb56e1c66b89e348141047c6b98cf35e)
2008-06-17netapi: implement NetUserEnum filters.Günther Deschner1-1/+22
Guenther (This used to be commit 0bd69df7704789888eba2a07aba505dce037c4eb)
2008-06-17netapi: add NetRemoteTOD example code.Günther Deschner2-1/+90
Guenther (This used to be commit 2b82779a401dd1d14f5842872ac37b2454efc92b)
2008-06-17netapi: implement NetRemoteTOD().Günther Deschner1-2/+32
Guenther (This used to be commit 76877680a8a6400bc2d3b5e3b788b7d5fc683850)
2008-06-17netapi: make NetRemoteTOD() headers public.Günther Deschner1-0/+31
Guenther (This used to be commit 1262ab1843a8a8cb794f6bbfb113bd2d99ffba22)
2008-06-17netapi: add NetRemoteTOD() skeleton.Günther Deschner3-0/+67
Guenther (This used to be commit 78bc98cb55e36ef175f9c0f6fcd943781a514005)
2008-06-17netapi: Fix Bug #5545 (libnetapi_init without $USER)Günther Deschner1-2/+6
Based on patch from Erik van Pienbroek. Guenther (This used to be commit 71f4cf773022525ba617f09c495dbff97f8eb2d5)
2008-06-13Fix a handle leak for error returns in ldb_try_load_dsoVolker Lendecke1-1/+7
Coverity ID 464 (cherry picked from commit 496d44d2f21661c85bf07e8eb7cae6298fefd900) (This used to be commit f30bc6503de6c712101e04fe26c004eeffcd300e)
2008-06-11Fix max_fd calculation in event_loop_onceVolker Lendecke1-1/+1
For some bugs I really wonder how they can go undetected for so long. Fix a bug reported by Mathias Dietz. No samba bugzilla entry, but still 100% needed for 3-2-stable. Volker (cherry picked from commit 82c994dabc47bb4755c883a1f3651bb5d65cf2c5) (This used to be commit 91c73e093a03b10426b671cb3e1dffb8a2455d47)
2008-06-10Correctly find a [u]int32_t replacementVolker Lendecke1-6/+15
(cherry picked from commit 346375cda557a675f8f882ca2ae8edffec725a72) (This used to be commit 15a53945c9563b4517bd8b69a9bb0554eef5edff)
2008-06-10socket_wrapper: truncate packets to a 1500 byte payloadStefan Metzmacher1-0/+8
Truncate sendto(), recvfrom(), send() and recv() to 1500 bytes so that're getting a correctly formatted pcap file and the result look more like real network traffic. metze (cherry picked from commit 5b01206f1bb2e62c08bda34b45904ec4f83ac5de) (This used to be commit eb8c37a1ca97b41de00ec937a90bfdbe9cd21531)
2008-06-10socket_wrapper: sync missing stuff from v4-0-testStefan Metzmacher5-8/+17
metze (This used to be commit b03c2793548834a1dc0483b03081d872ab1e17f0)
2008-06-10Factor out IP marshalling into separate function.Jelmer Vernooij1-36/+43
(cherry picked from commit 2548c2a1e7dab8abc00f8f49374a08cc0b427552) (This used to be commit e4e015caac88f6e31ca6d8fcda5a97a11aee226d)
2008-06-10r25783: socket_wrapper: don't include "includes.h"Stefan Metzmacher1-12/+5
metze (cherry picked from commit 47f865165e772540334dcbcf80cfc1999b0132fa) (This used to be commit 4d5bfcc731b44267e2c30fccdca72b6058b16bfb)
2008-06-10r23420: try to make the IBM checker happyStefan Metzmacher1-3/+8
metze (cherry picked from commit 96f1a0dfaa18a432fca4b5432d929d8daed0abb1) (This used to be commit 801ed0b79956133f2baa6b2db4a7dd5a68060edc)
2008-06-10r22236: Update to Heimdal's socket_wrapper, which supports IPv6.Stefan Metzmacher1-161/+391
To make this pass, I needed to add support for 6 and 17 as valid protocol values to socket(). Andrew Bartlett (partly cherry picked from commit 2254e61a1e5b29a64c5a24aac029ace193057e24) metze (This used to be commit 66b9f6f3722defd0863b055916b302478715704b)
2008-06-10r21729: Some more testsJelmer Vernooij2-6/+29
(cherry picked from commit d2baa8218cf504d6631d610f9fd393ad8c61574c) (This used to be commit cf6d815ba82a25c1e1f1dfdb8548cc588d44d1aa)
2008-06-10r21671: Add initial simple tests for socket wrapperStefan Metzmacher3-1/+84
(partly cherry picked from commit 872e2ad541478597191ca9e31872d5c8e2bbb832) metze (This used to be commit 8003f00a28bb7237ec1b1f4eb9687c542a86c2b2)
2008-06-10r19409: Pull in <sys/time.h> for struct timeval for non samba build (don'tLove Hörnquist Åstrand1-0/+1
depend on namespace pollution) (cherry picked from commit 5052d2d10693e67f1b7c6c71277c8d1bc9c8b612) (This used to be commit d22701b196bded3294776b144a7a990de23741e9)