1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

29104 Commits

Author SHA1 Message Date
Derrell Lipman
a13ba4347f What to do about debugging in a multi-threaded application?
- For now, punt. Any thread that requests debug to stderr will establish that
  for all threads.

Derrell
2009-05-13 14:51:43 -04:00
Derrell Lipman
636fbd1028 Thread-safe protection: libsmbclient initialization
- Begin converting init functions to use SMB_THREAD_ONCE. libsmbclient
  module-wide initialization is now moved into a separate function and called
  via SMB_THREAD_ONCE.

- libsmbclient counts users (contexts) so that it can release global resources
  when the last context is closed. That count of contexts is now protected by
  a mutex.

Derrell
2009-05-13 14:37:28 -04:00
Stefan Metzmacher
b9f3a78169 s3:libsmb: move read_smb_send/recv() static in async_smb.c
metze
2009-05-13 18:27:50 +02:00
Stefan Metzmacher
ca6ec5ecd7 s3:libsmb: let cli_smb_chain_send() also return NTSTATUS
metze
2009-05-13 18:27:50 +02:00
Bo Yang
6ff09b323e s3:libsmb: return NT_STATUS_CONNECTION_INVALID if the fd is -1
This way we can destinguish between requests which failed
because the connection broke after they were triggered
and the requests which are started on an already broken
connection.

This also moves the check to cli_smb_req_iov_send()
where it really belongs.

metze
2009-05-13 18:27:41 +02:00
Bo Yang
83ff460401 Revert "s3: checkin .po for pam_winbind" because of license issue.
This reverts commit 8611f03dbb0c45d8755725232508cff258b426d5.
2009-05-13 22:00:05 +08:00
Günther Deschner
652251701d s3-printing: no need to define struct table_node 4 times.
Guenther
2009-05-13 15:27:06 +02:00
Günther Deschner
077327a923 s3-net: Fix bug 6340: don't segfault when cleartext trustdom pwd could not be retrieved.
Guenther
2009-05-13 15:19:41 +02:00
Volker Lendecke
c62cc96b1e Remove an unused struct definition 2009-05-13 13:00:19 +02:00
Bo Yang
8611f03dbb s3: checkin .po for pam_winbind
Signed-off-by: Bo Yang <boyang@samba.org>
2009-05-13 18:59:55 +08:00
Bo Yang
05379f0125 s3: return proper error code in cli_smb_req_send
Signed-off-by: Bo Yang <boyang@samba.org>
2009-05-13 18:47:00 +08:00
Zack Kirsch
3627ceb5e2 s3 onefs: Self-contend level2 oplocks on BRL 2009-05-12 17:53:16 -07:00
Tim Prouty
c2482d6b23 s3 onefs: Fix ignore sacl parameter 2009-05-12 17:52:00 -07:00
Tim Prouty
c60bb39df3 s3: Fix strict locking with chained reads
Move the strict lock/unlock code down a level for reads to avoid
calling chain_reply before the unlock.
2009-05-12 17:13:40 -07:00
Aravind Srinivasan
5aefb44bf0 s3: Fallback to the legacy sid_to_(uid|gid) instead of returning NULL.
This is very similar to be1dfff02d562e42a7847bd02fed8538630d3f41
2009-05-12 17:13:40 -07:00
Dan Sledz
c71d4530b4 s3 auth: Make debug message louder and more useful 2009-05-12 17:13:40 -07:00
Günther Deschner
7403dd39d6 s3-spoolss: move SPL_ARCH_X defines to IDL.
Guenther
2009-05-13 01:56:40 +02:00
Günther Deschner
6154b031f4 s3-netdomjoin-gui: prepare to call out for NetRenameMachineInDomain() to rename computers
in domains.

Guenther
2009-05-13 01:56:39 +02:00
Günther Deschner
d3a9ee689d s3-netdomjoin-gui: Fix join prompt dialog test.
Guenther
2009-05-12 23:52:34 +02:00
Günther Deschner
3e2975b3bd s3-netdomjoin-gui: use NetServerGetInfo() level 101 to get hostname.
Guenther
2009-05-12 22:49:05 +02:00
Günther Deschner
20b5fc02d2 s3-netdomjoin-gui: inspect the correct computername string before
enabling/disabling the change button.

Guenther
2009-05-12 22:49:04 +02:00
Jeremy Allison
ad9d64ee1b Clean up assignments to iov_base, ensure it's always cast to void *. This should quieten some warnings with picky compilers on the buildfarm.
Jeremy.
2009-05-12 11:45:37 -07:00
Jeremy Allison
196084d641 Fix the last few format arg missmatches I missed.
Jeremy.
2009-05-12 10:38:00 -07:00
Volker Lendecke
3fa69438b9 Convert response.extra_data.data from malloc to talloc 2009-05-12 18:02:00 +02:00
Volker Lendecke
c9efd454c5 Fix bug 6157
This patch picks the alphabetically smallest one of the multi-value attribute
"uid". This fixes a regression against 3.0 and also becomes deterministic.
2009-05-12 15:21:46 +02:00
Günther Deschner
94665adb48 s3-printing: Fix vlp testprinter application.
Jeremy, we cannot just access cache_path() here without calling lp_load and
friends as well as parsing configfile from the commandline in order to make
"make test/selftest" find the correct conffile with path, etc.

I just changed it to pass the target tdbfilename as an argument, ok ?

Guenther
2009-05-12 11:41:14 +02:00
Michael Adam
66dff4073d s3:build: extend the support fo Debian GNU/kFooBar to kOpenSolaris
As suggested by Robert Millan.

Michael
2009-05-12 08:41:01 +02:00
Michael Adam
5fba1e938c s3:build: support non-linux gnu ports
This is based on a patch by the debian package maintainers,
adapted for the merged branch.

Michael
2009-05-12 08:41:01 +02:00
Michael Adam
6708b926a4 s3:loadparm: free the file_list at the start of loadparm
This should reduce the waste of memory when using "config file"
or "config backend". It also reduces the risk of triggering
reloads due to some old unused files being checked.

Michael
2009-05-12 08:41:00 +02:00
Michael Adam
6aef9bbbf7 s3:loadparm: refactor freeing of file_list out into free_file_lists()
Michael
2009-05-12 08:41:00 +02:00
Michael Adam
a04bac7135 s3:proto.h: remove old param/params.c prototype
Michael
2009-05-12 08:41:00 +02:00
Jeremy Allison
ed443034ae Fix warning about unused label with no sendfile.
Jeremy.
2009-05-11 23:23:17 -07:00
Jeremy Allison
b4c9cfb2af Fix a bunch of compiler warnings about wrong format types.
Should make Solaris 10 builds look cleaner.
Jeremy.
2009-05-11 21:56:57 -07:00
Jeremy Allison
14c1e9fae2 Hopefully fix the buildfarm. Add some debug level 10 messages
I used to track down the vlp problem, change the vlp test printer
not to use a static path of /tmp/vlp.tdb for the virtual print
database (as this will eventually fill up). Cause it to use
a virtual print database inside the cachepath.
Jeremy.
2009-05-11 17:29:48 -07:00
Günther Deschner
0dc1b239eb s3-samr: implement _samr_RidToSid().
Guenther
2009-05-12 00:27:24 +02:00
Günther Deschner
4beb4395eb s3-samr: Let _samr_TestPrivateFunctionsDomain() return NT_STATUS_NOT_SUPPORTED to make RPC-SAMR happy.
Guenther
2009-05-12 00:27:24 +02:00
Volker Lendecke
de6ddda45e Fix some nonempty blank lines 2009-05-11 23:08:30 +02:00
Derrell Lipman
bd9d4e5212 Correct typos; semicolons instead of commas 2009-05-11 14:16:52 -04:00
Günther Deschner
6d1e21bd1b s3-samr: Fix Bug #5859, renaming of samr objects failed due to samr setuserinfo access checks.
Torture test to follow...

Guenther
2009-05-11 18:48:54 +02:00
Jeremy Allison
8a785a6047 Add checks for non_root mode to help buildfarm spoolss tests.
Reviewed by Guenther.
Jeremy.
2009-05-11 09:42:08 -07:00
Günther Deschner
a82bb4bd51 s3-lsa: Fix _lsa_LookupNames2() server implementation which always returned a NULL sid_array since 3.2.0.
Found by torture test.

This makes it possible to search for users while adding them to groups via
windows usermanager.

Guenther
2009-05-11 18:31:46 +02:00
Günther Deschner
f5cab8913b s3-selftest: enable RPC-LSA-LOOKUPNAMES against Samba 3.
Guenther
2009-05-11 16:44:39 +02:00
Günther Deschner
b1a4649438 s3-net: add "net dom renamecomputer" to rename machines in a domain.
dmarkey, please test :)

Guenther
2009-05-11 10:55:40 +02:00
Derrell Lipman
db69ebcbce Provide a libsmbclient interface for programs requiring threads
- This adds two functions: smbc_thread_posix() which provides access to the
  internal threading implementation using pthread; and smbc_thread_impl()
  where the user provides each of the functions required by Samba, to give
  access to the thread implementation's native capabilities.

Derrell
2009-05-10 22:45:12 -04:00
Volker Lendecke
46dea8c247 wb_int_trans -> wb_simple_trans in wbclient.c 2009-05-09 21:50:24 +02:00
Volker Lendecke
af2189cfed Add wb_simple_trans_send/recv 2009-05-09 21:50:24 +02:00
Simo Sorce
efa9bc9dc6 Pass also sername to check password script 2009-05-09 11:44:12 -04:00
Volker Lendecke
efbc4315d2 Fix the mangle1 test 2009-05-09 14:09:42 +02:00
Volker Lendecke
c291a55a35 Do not call SMB_VFS_GET_REAL_FILENAME if the name is mangled
The GPFS get_real_file name does not know about mangled names. Tim, if onefs
does not either, you need this bugfix :-)

In case onefs does 8.3 names, we need to pass the mangled flag down to
SMB_VFS_GET_REAL_FILENAME to give GPFS a chance say ENOTSUPP and do the
fallback.
2009-05-09 14:09:41 +02:00
Stefan Metzmacher
5c76472491 s3:libsmb: fix layering of cli_ntrename_internal and its callers
It's easier to have cli_ntrename_internal as a semetric async
tevent_req function. cli_ntrename() and cli_nt_hardlink() should
be callers on top of cli_ntrename_internal().

metze
2009-05-09 09:26:15 +02:00