summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2008-06-03netapi: add NetGroupAdd() example code.Günther Deschner2-1/+97
Guenther (This used to be commit 53272e29ad9c2a6c81ab35a405c57b1799f3f832)
2008-06-03netapi: implement NetGroupAdd_r().Günther Deschner1-2/+237
Guenther (This used to be commit b00bff961ea786b0cbd8ec7faf554efae72169ea)
2008-06-03netapi: Add NetGroupDel/NetGroupAdd header.Günther Deschner1-0/+71
Guenther (This used to be commit 84104cb900774fd2987636e59e562477c3ed2977)
2008-06-03libnetapi: add dummy implementation for NetGroupAdd() and NetGroupDel().Günther Deschner3-1/+157
Guenther (This used to be commit d690f9e9f8b8a0aeda311913589ae48805f7e3b8)
2008-05-28Security fix for CVE-2008-1105: Boundary failure when parsing SMB responsesJeremy Allison1-13/+5
can result in a buffer overrun. Jeremy. (This used to be commit 23b825e9d2c74c5b940cf4d3aa56c18692259972)
2008-05-28Fix Bug #5285. (libcap header mismatch)Günther Deschner1-0/+5
Can someone with gpfs available test this ? The only codepath using this function is the modules/gpfs.c module. The fix resolves at least the build issues Samba has with recent kernel / libcap versions by using the portable cap_get_proc()/cap_set_proc() interface (instead of using capget/capset). Guenther (This used to be commit 177955141247a4eb56ba0d82dc1add7f52175c40)
2008-05-28lib/events: use mem_context given to event_context_init().Michael Adam1-1/+1
Michael (This used to be commit f872a1f4428ed64bcfd832d981eea6446f05339e)
2008-05-25Remove some references to get_current_username() and current_user_infoVolker Lendecke1-5/+3
(This used to be commit 344d69f95e217d16213eaa6b53141af6ab459708)
2008-05-23drsuapi: add all code required for our drsuapi rpc client.Günther Deschner2-0/+709
Guenther (This used to be commit 7c93190843e77764be4d0f6d4f0b93061c192c98)
2008-05-22libreplace: we need to use AC_TRY_LINK() to make sure HAVE_IPV6 is correctly ↵Stefan Metzmacher1-1/+1
detected metze (cherry picked from commit 84b5652d3e5766521436e4c7d59615b08b2bb198) (This used to be commit b28b63c911efe17ba37c15c9b74edd96e9584832)
2008-05-22libreplace: add test for HAVE_IPV6Stefan Metzmacher1-0/+29
Samba can later just check libreplace_cv_HAVE_IPV6 = yes. metze (cherry picked from commit e835e7eebcc064ce0813814796828f15ad112fbd) (This used to be commit 1ca4508f3a996982a528942da1b12b94b91e94cd)
2008-05-20Convert in_transaction to a bool. Add the same fix VolkerJeremy Allison1-4/+9
used for tdb_traverse() to tdb_traverse_read(). Jeremy. (This used to be commit bda0f03fb3fa8a7b14d4f54bee7076d691cad44f)
2008-05-20Cleanup size_t return values in callers of convert_string_allocateTim Prouty6-186/+221
This patch is the second iteration of an inside-out conversion to cleanup functions in charcnv.c returning size_t == -1 to indicate failure. (This used to be commit 6b189dabc562d86dcaa685419d0cb6ea276f100d)
2008-05-20Fix nesting tdb_traverse in a transactionVolker Lendecke1-3/+8
Calling tdb_traverse inside a transaction led to the transaction lock being held indefinitely. This was caused by the tdb_transaction_lock/unlock inside tdb_traverse: The transaction code holds the global lock at offset TRANSACTION_LOCK. The call to tdb_transaction_lock does nothing because the transaction_lock is already being held. tdb_transaction_unlock inside tdb_wrap resets tdb->have_transaction_lock but does not release the kernel-level fcntl lock. transaction_commit later on does not release that fcntl lock either, because tdb->have_transaction_lock was already reset by tdb_transaction(). This patch does fix that problem for me. An alternative would be to make tdb->have_transaction_lock a counter that can cope with proper nesting, maybe in other places as well. Volker (This used to be commit 80e700e3bd73f2ffa38046bdcba7f532e25198ef)
2008-05-20Fix bug #5477 - recvfile code was broken.Jeremy Allison1-0/+10
Jeremy. (This used to be commit 830337f054a6c0646d85df33d9958e99283e727a)
2008-05-20Fix memcache_flush()Volker Lendecke1-5/+34
I have no idea what I've been smoking when I checked this in :-( Karolin, this fixes the join bug 3.0.28->3.2.0rc1 Thanks, Volker (This used to be commit f845dbbceeff032cd248117ddf63af3d3736b21c)
2008-05-19Convert messages_local.c to use "struct tdb_wrap"Volker Lendecke1-15/+17
This works around a problem with smbcontrol opening messaging.tdb twice. Very likely this is not the right fix. Michael, please check. Volker (This used to be commit 9d52cf3f9394eb78465173bad53ea8dc86512213)
2008-05-19If no node number is given, default to the current node in smbcontrolVolker Lendecke1-1/+1
(This used to be commit b4b3b6b1c6a336220c6afd68b153a769397ecded)
2008-05-17lib/replace: move sys/sockio.h and sys/un.h checks into ↵Stefan Metzmacher2-1/+1
AC_LIBREPLACE_NETWORK_CHECKS metze (cherry picked from commit 7f26a5425e706a97cc07c5139b3fea4fde9e4020) (This used to be commit c97ff995e41d1cd31a7169e95ca415078da4a16c)
2008-05-17lib/replace: add checks for HAVE_SOCK_SIN_LEN and HAVE_UNIXSOCKETStefan Metzmacher1-0/+40
Moved from the samba specific locations metze (cherry picked from commit e674128ee2f11596f358ed46104c9d25eb2f754f) (This used to be commit 951b8c757ada337229a4efe81e6532d15fa0b63a)
2008-05-16netdomjoin-gui: before prompting for creds (for receiving joinable ous), ↵Günther Deschner1-1/+31
find a dc. Guenther (This used to be commit ae60695a349bccd1128e6c439664b0607627ef23)
2008-05-16libreplace: try to fix the build on HP-UX which has if_nametoindex() in -lipv6Stefan Metzmacher1-0/+13
metze (cherry picked from commit da2179ee5d5b6094ab63a9d9d6a8d59893937087) (This used to be commit 151d62da1321322615daadabb41d049974f5fe6a)
2008-05-16libreplace: make sure system/network.h is only used when ↵Stefan Metzmacher2-0/+5
AC_LIBREPLACE_NETWORK_CHECKS was used metze (cherry picked from commit 3fddd36e119f73a5021370450f9687ef9d252bab) (This used to be commit cd37fdb2401bfd6c23160e34f03238faa1f5cbd3)
2008-05-16libreplace: export LIBREPLACE_NETWORK_OBJS and LIBREPLACE_NETWORK_LIBS varsStefan Metzmacher1-17/+18
metze (cherry picked from commit aa7ef1af746319a3d771decd0ec03dabe8b8ad28) (This used to be commit dbbc05c87ba2b2d9b3247cfba58bc1a3f12ad4f5)
2008-05-16libreplace: include inet_ntoa.o when the system one is brokenStefan Metzmacher1-2/+3
metze (cherry picked from commit 67845d3471711d24069636d0d4032f9d53748334) (This used to be commit 734ade407ed8d5b61a831509c3efc90fc521fe1b)
2008-05-16libreplace: merge getifaddrs.m4 into libreplace_network.m4Stefan Metzmacher2-129/+127
metze (cherry picked from commit 0234d397fefee8e1d0dcd3402f748c2251021c90) (This used to be commit d7038405d68eb3c69ef10f63ce37db838eb44b7a)
2008-05-16libreplace: merge getaddrinfo.m4 into libreplace_network.m4Stefan Metzmacher2-33/+33
metze (cherry picked from commit 64591d064dc3da6074f0f7539911a6e433d9cc43) (This used to be commit 2f43e282e0fa723dd62e3b28e529c6eb01ef5b8a)
2008-05-16libreplace: merge socketpair.m4 into libreplace_network.m4Stefan Metzmacher2-2/+2
metze (cherry picked from commit f9f8f93adcc7161ebb18f5a0bf28c73d951a15ad) (This used to be commit 9aa0f6626d6a69ceeb8bb4ea71ea3d4a6157d101)
2008-05-16libreplace: merge inet_pton.m4 into libreplace_network.m4Stefan Metzmacher2-2/+2
metze (cherry picked from commit 3a70274c908e31453942b442351eab8423c1a53d) (This used to be commit b078ae2b56c9a932655ef619a7af5ce0aeb904dd)
2008-05-16libreplace: merge inet_ntop.m4 into libreplace_network.m4Stefan Metzmacher2-2/+2
metze (cherry picked from commit 223ef6c08efb52251d0a772bb0c481b2803cf0ce) (This used to be commit 438ddd9c81e74e3042154cf5f0416043ee6a8c35)
2008-05-16libreplace: merge inet_aton.m4 into libreplace_network.m4Stefan Metzmacher2-2/+2
metze (cherry picked from commit fba00736c870f449c0eee32fe0d7b0d539dca51f) (This used to be commit 7669daa9f536b73a0b933a3d3fcac68c1771dc15)
2008-05-16libreplace: merge inet_ntoa.m4 into libreplace_network.m4Stefan Metzmacher2-20/+20
metze (cherry picked from commit 82e826253b6d18832931dbb5c1dda009889bf9e0) (This used to be commit 09632f9694599e626e889e54310383878c51413f)
2008-05-16libreplace: merge socket.m4 into libreplace_network.m4Stefan Metzmacher2-40/+40
metze (cherry picked from commit c70eba87dbbac6c2c1e68c343cdd410577c1686f) (This used to be commit c48b2d8679dd139323936af68b48707c5a9f500c)
2008-05-16Fix typo.Jelmer Vernooij1-1/+0
(cherry picked from commit bd089818a3182698dfe85039c1b2e22d8c2835bb) (This used to be commit 6f5f736867a3c5b8c7e6f4e73b031e36783ed1bc)
2008-05-16Add undefined symbol flag for AIX.William Jojo1-0/+4
(cherry picked from commit dabdf24e86f038e3afc67532fa5bf60a37992161) (This used to be commit 104316884576a2d904d9d8b2d7c1e0dc80817b66)
2008-05-16libreplace: also use AC_LIBREPLACE_NETWORK_CHECKS for the standalone buildStefan Metzmacher1-0/+1
metze (cherry picked from commit 04f4523ed032946b8f0e74ac6f7458010159e3bb) (This used to be commit a3d675a7738cc04bb765064a060780198721d94a)
2008-05-16libreplace: use AC_LIBREPLACE_NETWORK_CHECKS only for sambaStefan Metzmacher2-1/+1
metze (cherry picked from commit 3451b54bf7f5e37a589ec261d28c2a8b6f9788ed) (This used to be commit 0987c32645e4851badab4c1daffb4ee7982ea153)
2008-05-16libreplace: split out network checks into a AC_LIBREPLACE_NETWORK_CHECKS macroStefan Metzmacher2-63/+73
Note: moving it out of AC_LIBREPLACE_BROKEN_CHECKS will be the next step metze (cherry picked from commit 55a904b1d7aeca849d450e371b18afca5b0c6218) (This used to be commit 2a3ddc23cc8d050dfe5b4e1c0e139a7c97cc3b59)
2008-05-16libreplace: always provide utime() and utimes()Stefan Metzmacher6-1/+200
I'd like to also provide futimes(), but it seems that some systems doesn't support a it at kernel level. If someone knows how to write a portable replacement for futimes() please tell me... metze (cherry picked from commit a9604fe4a323dccb537cf02ea7594437b4995803) (This used to be commit 8a241cf150fba787c82cbcb03730083ced442fbb)
2008-05-14AFS: The dummy afs_createtoken_str should return NULL, not False.Kai Blin1-1/+1
(This used to be commit c84d49429191423a81d558042fe949c26f5de5fe)
2008-05-10Remove "user" from connection_structVolker Lendecke1-1/+1
(This used to be commit 368454a27cb53a408ec416cbf37235b304592fb5)
2008-05-10Remove the unix token info from connection_structVolker Lendecke1-1/+1
(This used to be commit 2834dacc8d49f77fe55fb5d7e3eb2dda431d1d3d)
2008-05-10Use TALLOC_ZERO_P instead of separate ZERO_STRUCTP in dup_nt_tokenVolker Lendecke1-3/+1
(This used to be commit 124a2c71852f39fcfe62ea19a5a8d25638d47400)
2008-05-09Fix replacement getpass. If we ^C at the prompt echo was left off.Jeremy Allison1-5/+2
Jeremy. (This used to be commit e54c71954ae484fe4a4e195db33440490e78e256)
2008-05-09dsgetdcname: use existing messaging_context if possible.Günther Deschner2-3/+4
Guenther (This used to be commit 7889516a384c155a9045aad4409c041fddd0d98d)
2008-05-09Use strip_hostname after dsgetdcname/getdcname calls.Günther Deschner1-5/+12
Guenther (This used to be commit 82cbb3269b2e764c9c2a2fbcbe9c29feae07fb62)
2008-05-09util: add strip_hostname() to strip of leading '\\'.Günther Deschner1-0/+19
Guenther (This used to be commit dbf96120d8b33e592bfd3e9df1777f1670e218be)
2008-05-08Fix bug #5452 - smbclient put always creates zero lengthJeremy Allison1-2/+2
files. Thanks to Kai Engert <kengert@redhat.com> for reporting. Jeremy. (This used to be commit 687275cd532f8f8ad710acd222a0c76625da53c6)
2008-05-08gencache: add some const.Günther Deschner1-1/+1
Guenther (This used to be commit ec9f8c4cf67c82f4665ed51e4fd0181f5f147ea0)
2008-05-08netdomjoin-gui: before prompting for creds, ask dsgetdcname for a dc.Günther Deschner1-0/+35
Guenther (This used to be commit 47146effc1c2bca516d4fbccf221b5b0e02737bf)