1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-07 09:49:30 +03:00
Commit Graph

53449 Commits

Author SHA1 Message Date
3e2975b3bd s3-netdomjoin-gui: use NetServerGetInfo() level 101 to get hostname.
Guenther
2009-05-12 22:49:05 +02:00
20b5fc02d2 s3-netdomjoin-gui: inspect the correct computername string before
enabling/disabling the change button.

Guenther
2009-05-12 22:49:04 +02:00
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
196084d641 Fix the last few format arg missmatches I missed.
Jeremy.
2009-05-12 10:38:00 -07:00
3fa69438b9 Convert response.extra_data.data from malloc to talloc 2009-05-12 18:02:00 +02:00
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
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
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
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
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
6aef9bbbf7 s3:loadparm: refactor freeing of file_list out into free_file_lists()
Michael
2009-05-12 08:41:00 +02:00
a04bac7135 s3:proto.h: remove old param/params.c prototype
Michael
2009-05-12 08:41:00 +02:00
ed443034ae Fix warning about unused label with no sendfile.
Jeremy.
2009-05-11 23:23:17 -07:00
6bc1ce996d Fix definition of smb_thread_once - must return int not void as
it's used in a ? : comparison macro.
Jeremy.
2009-05-11 22:33:32 -07:00
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
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
d0865aeb5d Ensure documentation matches the tdb_util function usage.
Jeremy.
2009-05-11 17:29:16 -07:00
0dc1b239eb s3-samr: implement _samr_RidToSid().
Guenther
2009-05-12 00:27:24 +02:00
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
54d925a304 s4-smbtorture: skip SetMemberAttributesOfGroup in RPC-SAMR for s3 as well.
Guenther
2009-05-12 00:27:24 +02:00
59cb8fd58d s4-smbtorture: Skip secdesc set calls for non-user objects in RPC-SAMR for Samba3.
Note that they are skipped for all objects while testing Samba4.

Guenther
2009-05-12 00:27:23 +02:00
1fb9b65921 s4-smbtorture: Fix order of assert args in test_TestPrivateFunctionsDomain() in RPC-SAMR.
Guenther
2009-05-12 00:27:23 +02:00
ff7ebdf317 s4-smbtorture: switch to use torture_context in RPC-SAMR.
Guenther
2009-05-12 00:27:23 +02:00
0f88b3cc94 s4-smbtorture: remove trailing whitespace in RPC-SAMR.
Guenther
2009-05-12 00:27:23 +02:00
de6ddda45e Fix some nonempty blank lines 2009-05-11 23:08:30 +02:00
bd9d4e5212 Correct typos; semicolons instead of commas 2009-05-11 14:16:52 -04:00
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
8a785a6047 Add checks for non_root mode to help buildfarm spoolss tests.
Reviewed by Guenther.
Jeremy.
2009-05-11 09:42:08 -07:00
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
f5cab8913b s3-selftest: enable RPC-LSA-LOOKUPNAMES against Samba 3.
Guenther
2009-05-11 16:44:39 +02:00
5f015920a8 s4-smbtorture: add very basic RPC-LSA-LOOKUPNAMES test.
Guenther
2009-05-11 16:44:39 +02:00
7347373e7c s4-smbtorture: add optional very simple reply checks to lsa lookup name tests.
Guenther
2009-05-11 16:44:39 +02:00
d51bb8e4e6 s4:smb_server: return after we have processed an invalid smb2 request
metze
2009-05-11 15:59:46 +02:00
993bdd87b5 Move SMB2 constants to a separate file 2009-05-11 15:54:24 +02:00
ce8f3528f1 Fix SMB2_CAP_DFS 2009-05-11 15:54:24 +02:00
7672a033ef s4-smbtorture: remove trailing whitespace in RPC-LSA test.
Guenther
2009-05-11 15:06:20 +02:00
410f17cdeb s4-smbtorture: use struct torture_context in RPC-LSA.
Guenther
2009-05-11 15:06:16 +02:00
fe474861f8 s3-docs: document "net dom renamecomputer".
Guenther
2009-05-11 10:56:22 +02:00
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
915518c0db Use bool instead of int for a boolean variable 2009-05-10 23:04:00 -04:00
9a93dc092c Optimize smb_thread_once usage by not calling it if known already called
- The macro SMB_THREAD_ONCE now tests whether the "once" variable is already
  set, and if so avoids calling smb_thread_once().

Derrell
2009-05-10 22:58:12 -04:00
404327ad41 Panic upon mutex lock or unlock failure
- It's a serious error if we can't lock or unlock a mutex in
  smb_thread_once(). Panic instead of just displaying a DEBUG message.

Derrell
2009-05-10 22:45:12 -04:00
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
418a2eeae8 Don't require external use of internal enum smb_thread_lock_type
- Internally, when locking or unlocking a mutex, we'll pass one of the
  values of enum smb_thread_lock_type. That enum is not available to users
  providing a thread implementation. Externally, we'll document the integer
  values which will be passed to their lock_mutex function, but not require
  them to access our internal header file.

Derrell
2009-05-10 22:45:12 -04:00
d3434477e6 Replace external thread "once" with an internal implementation
Jeremy, please check...

- I'm in the process of providing an interface in libsmbclient to the
  recently-added threading capabilities. In the process, I discovered that
  different thread implementations have varying types for the variable passed
  to the thread_impl_once() function. pthreads, for example, uses type
  pthread_once_t. Since Samba needs to internally declare these variables, it
  would need to know the exact type required by each thread implementation's
  function. After considering multiple methods of obtaining an appropriately
  sized variable, I decided that for the basic "once" functionality required
  by Samba, it would be much simpler to just implement our own "once"
  functionality. We don't require cancellation points et all. This commit adds
  an smb_thread_once() function that is implemented using an internal
  mutex. The mutex itself uses the implementation's create_mutex
  function. This eliminates the need for the user to provide a smb_thread_once
  function pointer and the entire issue of that function's first parameter.

Derrell
2009-05-10 22:45:12 -04:00
831b73ec82 Fix an unitialized variable warning 2009-05-10 07:43:24 +02:00
46dea8c247 wb_int_trans -> wb_simple_trans in wbclient.c 2009-05-09 21:50:24 +02:00
af2189cfed Add wb_simple_trans_send/recv 2009-05-09 21:50:24 +02:00
efa9bc9dc6 Pass also sername to check password script 2009-05-09 11:44:12 -04:00
efbc4315d2 Fix the mangle1 test 2009-05-09 14:09:42 +02:00