1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-18 19:17:08 +03:00

3817 Commits

Author SHA1 Message Date
Volker Lendecke
344d69f95e Remove some references to get_current_username() and current_user_info 2008-05-25 11:43:57 +02:00
Günther Deschner
7c93190843 drsuapi: add all code required for our drsuapi rpc client.
Guenther
2008-05-23 23:56:21 +02:00
Stefan Metzmacher
b28b63c911 libreplace: we need to use AC_TRY_LINK() to make sure HAVE_IPV6 is correctly detected
metze
(cherry picked from commit 84b5652d3e5766521436e4c7d59615b08b2bb198)
2008-05-22 15:04:32 +02:00
Stefan Metzmacher
1ca4508f3a libreplace: add test for HAVE_IPV6
Samba can later just check libreplace_cv_HAVE_IPV6 = yes.

metze
(cherry picked from commit e835e7eebcc064ce0813814796828f15ad112fbd)
2008-05-22 13:02:58 +02:00
Jeremy Allison
bda0f03fb3 Convert in_transaction to a bool. Add the same fix Volker
used for tdb_traverse() to tdb_traverse_read().
Jeremy.
2008-05-20 14:18:58 -07:00
Tim Prouty
6b189dabc5 Cleanup size_t return values in callers of convert_string_allocate
This patch is the second iteration of an inside-out conversion to cleanup
functions in charcnv.c returning size_t == -1 to indicate failure.
2008-05-20 22:40:13 +02:00
Volker Lendecke
80e700e3bd Fix nesting tdb_traverse in a transaction
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
2008-05-20 21:59:44 +02:00
Jeremy Allison
830337f054 Fix bug #5477 - recvfile code was broken.
Jeremy.
2008-05-20 12:09:48 -07:00
Volker Lendecke
f845dbbcee Fix memcache_flush()
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
2008-05-20 18:38:31 +02:00
Volker Lendecke
9d52cf3f93 Convert messages_local.c to use "struct tdb_wrap"
This works around a problem with smbcontrol opening messaging.tdb twice. Very
likely this is not the right fix. Michael, please check.

Volker
2008-05-19 15:28:10 +02:00
Volker Lendecke
b4b3b6b1c6 If no node number is given, default to the current node in smbcontrol 2008-05-19 14:56:15 +02:00
Stefan Metzmacher
c97ff995e4 lib/replace: move sys/sockio.h and sys/un.h checks into AC_LIBREPLACE_NETWORK_CHECKS
metze
(cherry picked from commit 7f26a5425e706a97cc07c5139b3fea4fde9e4020)
2008-05-17 13:18:33 +02:00
Stefan Metzmacher
951b8c757a lib/replace: add checks for HAVE_SOCK_SIN_LEN and HAVE_UNIXSOCKET
Moved from the samba specific locations

metze
(cherry picked from commit e674128ee2f11596f358ed46104c9d25eb2f754f)
2008-05-17 13:18:32 +02:00
Günther Deschner
ae60695a34 netdomjoin-gui: before prompting for creds (for receiving joinable ous), find a dc.
Guenther
2008-05-16 12:11:43 +02:00
Stefan Metzmacher
151d62da13 libreplace: try to fix the build on HP-UX which has if_nametoindex() in -lipv6
metze
(cherry picked from commit da2179ee5d5b6094ab63a9d9d6a8d59893937087)
2008-05-16 08:51:53 +02:00
Stefan Metzmacher
cd37fdb240 libreplace: make sure system/network.h is only used when AC_LIBREPLACE_NETWORK_CHECKS was used
metze
(cherry picked from commit 3fddd36e119f73a5021370450f9687ef9d252bab)
2008-05-16 08:51:53 +02:00
Stefan Metzmacher
dbbc05c87b libreplace: export LIBREPLACE_NETWORK_OBJS and LIBREPLACE_NETWORK_LIBS vars
metze
(cherry picked from commit aa7ef1af746319a3d771decd0ec03dabe8b8ad28)
2008-05-16 08:51:53 +02:00
Stefan Metzmacher
734ade407e libreplace: include inet_ntoa.o when the system one is broken
metze
(cherry picked from commit 67845d3471711d24069636d0d4032f9d53748334)
2008-05-16 08:51:52 +02:00
Stefan Metzmacher
d7038405d6 libreplace: merge getifaddrs.m4 into libreplace_network.m4
metze
(cherry picked from commit 0234d397fefee8e1d0dcd3402f748c2251021c90)
2008-05-16 08:51:52 +02:00
Stefan Metzmacher
2f43e282e0 libreplace: merge getaddrinfo.m4 into libreplace_network.m4
metze
(cherry picked from commit 64591d064dc3da6074f0f7539911a6e433d9cc43)
2008-05-16 08:51:52 +02:00
Stefan Metzmacher
9aa0f6626d libreplace: merge socketpair.m4 into libreplace_network.m4
metze
(cherry picked from commit f9f8f93adcc7161ebb18f5a0bf28c73d951a15ad)
2008-05-16 08:51:51 +02:00
Stefan Metzmacher
b078ae2b56 libreplace: merge inet_pton.m4 into libreplace_network.m4
metze
(cherry picked from commit 3a70274c908e31453942b442351eab8423c1a53d)
2008-05-16 08:51:51 +02:00
Stefan Metzmacher
438ddd9c81 libreplace: merge inet_ntop.m4 into libreplace_network.m4
metze
(cherry picked from commit 223ef6c08efb52251d0a772bb0c481b2803cf0ce)
2008-05-16 08:51:49 +02:00
Stefan Metzmacher
7669daa9f5 libreplace: merge inet_aton.m4 into libreplace_network.m4
metze
(cherry picked from commit fba00736c870f449c0eee32fe0d7b0d539dca51f)
2008-05-16 08:51:49 +02:00
Stefan Metzmacher
09632f9694 libreplace: merge inet_ntoa.m4 into libreplace_network.m4
metze
(cherry picked from commit 82e826253b6d18832931dbb5c1dda009889bf9e0)
2008-05-16 08:51:49 +02:00
Stefan Metzmacher
c48b2d8679 libreplace: merge socket.m4 into libreplace_network.m4
metze
(cherry picked from commit c70eba87dbbac6c2c1e68c343cdd410577c1686f)
2008-05-16 08:51:48 +02:00
Jelmer Vernooij
6f5f736867 Fix typo.
(cherry picked from commit bd089818a3182698dfe85039c1b2e22d8c2835bb)
2008-05-16 08:51:48 +02:00
William Jojo
1043168845 Add undefined symbol flag for AIX.
(cherry picked from commit dabdf24e86f038e3afc67532fa5bf60a37992161)
2008-05-16 08:51:47 +02:00
Stefan Metzmacher
a3d675a773 libreplace: also use AC_LIBREPLACE_NETWORK_CHECKS for the standalone build
metze
(cherry picked from commit 04f4523ed032946b8f0e74ac6f7458010159e3bb)
2008-05-16 08:51:47 +02:00
Stefan Metzmacher
0987c32645 libreplace: use AC_LIBREPLACE_NETWORK_CHECKS only for samba
metze
(cherry picked from commit 3451b54bf7f5e37a589ec261d28c2a8b6f9788ed)
2008-05-16 08:51:46 +02:00
Stefan Metzmacher
2a3ddc23cc libreplace: split out network checks into a AC_LIBREPLACE_NETWORK_CHECKS macro
Note: moving it out of AC_LIBREPLACE_BROKEN_CHECKS will be the next step

metze
(cherry picked from commit 55a904b1d7aeca849d450e371b18afca5b0c6218)
2008-05-16 08:51:46 +02:00
Stefan Metzmacher
8a241cf150 libreplace: always provide utime() and utimes()
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)
2008-05-16 08:51:46 +02:00
Kai Blin
c84d494291 AFS: The dummy afs_createtoken_str should return NULL, not False. 2008-05-14 09:07:24 +02:00
Volker Lendecke
368454a27c Remove "user" from connection_struct 2008-05-10 11:17:01 +02:00
Volker Lendecke
2834dacc8d Remove the unix token info from connection_struct 2008-05-10 11:17:01 +02:00
Volker Lendecke
124a2c7185 Use TALLOC_ZERO_P instead of separate ZERO_STRUCTP in dup_nt_token 2008-05-10 11:17:00 +02:00
Jeremy Allison
e54c71954a Fix replacement getpass. If we ^C at the prompt echo was left off.
Jeremy.
2008-05-09 14:51:45 -07:00
Günther Deschner
7889516a38 dsgetdcname: use existing messaging_context if possible.
Guenther
2008-05-09 14:59:20 +02:00
Günther Deschner
82cbb3269b Use strip_hostname after dsgetdcname/getdcname calls.
Guenther
2008-05-09 14:59:19 +02:00
Günther Deschner
dbf96120d8 util: add strip_hostname() to strip of leading '\\'.
Guenther
2008-05-09 14:59:19 +02:00
Jeremy Allison
687275cd53 Fix bug #5452 - smbclient put always creates zero length
files. Thanks to Kai Engert <kengert@redhat.com> for
reporting.
Jeremy.
2008-05-08 22:07:35 -07:00
Günther Deschner
ec9f8c4cf6 gencache: add some const.
Guenther
2008-05-08 01:10:54 +02:00
Günther Deschner
47146effc1 netdomjoin-gui: before prompting for creds, ask dsgetdcname for a dc.
Guenther
2008-05-08 01:09:14 +02:00
Günther Deschner
3feaa9829c netapi: add -f switch for DsGetDCName() example and be more verbose on output.
Guenther
2008-05-07 10:42:29 +02:00
Jeremy Allison
ec2d301a7a Enable tests for splice on Linux. Add a static (vl, I hate this)
so we can detect broken Linux recvfile splice and correctly fall
back.
Jeremy.
2008-05-06 15:44:39 -07:00
Stefan Metzmacher
fa443081ea libreplace: check how portable utimes() and futimes() are
metze
(cherry picked from commit 8798ce3c744025b94973784dcb44d099427ef190)
2008-05-06 12:44:37 +02:00
Volker Lendecke
420de03523 Remove "userdom_struct user" from "struct user_struct" 2008-05-05 18:28:59 +02:00
Volker Lendecke
e7ce4bce5c Make the namelist arg to set_namearray const 2008-05-05 18:28:58 +02:00
Günther Deschner
d077ef64cd Fix client authentication with -P switch in client tools (Bug 5435).
Guenther
2008-05-05 16:59:53 +02:00
Günther Deschner
0e8e05d556 netapi: fix returned name buffer in NetGetJoinInformation_r().
Guenther
2008-04-29 20:22:01 +02:00